便宜云服务器
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
首页
标签
greasemonkey
#
greasemonkey
关注
专栏文章
(1)
技术视频
(0)
互动问答
(2)
使用PostMessage刷新iframe的父文档?
2
回答
greasemonkey
、
iframe
、
表单
、
脚本
Maj_Lundy
在IFRAME: window.addEventListener('message', receiveMessage, false); 在父框架中: $(window).on('message', receiveMessage); function receiveMessage(e) { if ( e.originalEvent.origin === 'http://someurl.com' ) { console.log("Message: " + e.originalEvent.data); } }...
展开详请
赞
0
收藏
0
评论
0
分享
在IFRAME: window.addEventListener('message', receiveMessage, false); 在父框架中: $(window).on('message', receiveMessage); function receiveMessage(e) { if ( e.originalEvent.origin === 'http://someurl.com' ) { console.log("Message: " + e.originalEvent.data); } }
相关
产品
热门
专栏
WordPress果酱
1.2K 文章
32 订阅
领券
http://www.vxiaotou.com