- 链接地址:https://blog.csdn.net/weixin_33614878/article/details/117807624
- 链接标题:html页面怎么使用api,详解HTML5中的Communication API基本使用方法-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8961
文章浏览阅读2.6k次。1.跨文档消息通信跨文档消息通信可以确保iframe、标签页、窗口间安全地进行跨源通信。它把postMessage API定义为发送消息的标准方式。利用postMessage发送消息非常简单,代码如下所示:chatFrame.contextWindow.postMessage('Hello,world','http://www.example.com');接收消息时仅需在页面种增加一个事件处理函数..._html调用api
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:html调用api