iframe+postMessage实现跨域通信

2018-05-16
阅读 2 分钟
18.7k
考虑到两个系统是不同的端口号,存在跨域问题,这时发现HTML5新增了一个API-window.postMessage(),于是就决定用iframe结合window.postMessage()实现