Vue 中嵌套 Iframe,用postMessage通信 踩坑记

参考文章1:https://segmentfault.com/a/1190000016258735 (@load,只有iframe加载后,父级发消息,iframe才可以监听到父级发来的消息)

参考文章2:https://zhuanlan.zhihu.com/p/75467242 (destroyed注意移除监听!

 

原文地址:https://www.cnblogs.com/sakura-sakura/p/14990723.html