会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ace007
博客园
首页
新随笔
联系
订阅
管理
2016年11月23日
html5 postMessage解决iframe跨协议跨域通信问题
摘要: a.html有个iframe载入b.com/login.html,当login完成时通知a.html页面登录完成并传递UserName 1.a.html 监听消息 2.iframe内嵌页login.html postMessage var ifr = window.parent; //获取父窗体 v
阅读全文
posted @ 2016-11-23 14:06 Ace001
阅读(2111)
评论(0)
推荐(0)
公告