js 判断当前页面是否为顶层窗口

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

 

posted @ 2020-08-20 15:08  宋健安  阅读(1346)  评论(0编辑  收藏  举报