js 实现页面跳出iframe页面

if(top.location !== self.location){
    top.location.href = self.location.href;
}

猜你喜欢

转载自blog.csdn.net/fzy629442466/article/details/84785378