会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
思小娇
博客园
首页
博问
闪存
新随笔
订阅
管理
2016年9月27日
js如何判断是否在iframe中/JQuery调用iframe父页面元素与方法
摘要: //方式一 if (self.frameElement && self.frameElement.tagName == "IFRAME") { alert('在iframe中'); } //方式二 if (window.frames.length != parent.frames.length) {
阅读全文
posted @ 2016-09-27 10:39 思小娇
阅读(6680)
评论(0)
推荐(0)
编辑