iframe 通信之坑

iframe,如果是不同域名的iframe资源,直接调用:window.parent.flag = true, 会报跨域的错误。只能通过poseMessage方式来通信。

原文地址:https://www.cnblogs.com/tianmuxi/p/13501690.html