◆◆0 如何判断当前页面是否在iframe中 joycode 2022年5月18日 Web 573 通过如下代码: if(window!=window.top) { alert("在iframe中"); } 或: if(self!=top) { alert("在iframe中"); }
评论已关闭