html5 window.postMessage();解决跨域问题
otherWindow.postMessage(message, targetOrigin, [transfer]);otherWindow: 其他窗口(目标窗口)的一个引用,比如iframe的contentWindow属性、执行window.open返回的窗口对象、或者是命名过或数值索引的window.frames(如父窗口向内嵌的iframe窗口发送信息)message :信息内容,低...
原创
2019-09-21 18:19:08 ·
980 阅读 ·
0 评论