会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
只有一
博客园
首页
新随笔
联系
管理
2023年8月28日
使用postMessage实现iframe和父页面通信
摘要: ## 语法 语法 otherWindow.postMessage(message, targetOrigin, [transfer]); otherWindow 其他窗口的一个引用,例如向子窗口发送 则otherWindow 是子窗口的window对象 ## 父页面向子页面Iframe通信 ```
阅读全文
posted @ 2023-08-28 15:32 DurianTRY
阅读(287)
评论(0)
推荐(0)
编辑