if ( top.location != location ) { top.location = self.location; } 转载于:https://blog.51cto.com/yuanq20/1323823