js如何判断当前页面处于最顶级窗体 if(top== self){ //在顶级窗口 }else{ //不在 } https://zhidao.baidu.com/question/308150730026502444.html