vue本地运行项目使用iframe的跨域问题

1、获取iframe中的window对象

为了兼容大多数浏览器,应使用iframeElement.contentWindow来获取

https://blog.csdn.net/xiongzhengxiang/article/details/8486285

2、解决跨域问题

在属性目标栏添加 --args --disable-web-security --user-data-dir=D:\temp 限制chrome对跨域的限制最容易

https://blog.csdn.net/Jioho_chen/article/details/90203717

https://blog.csdn.net/qq_38277228/article/details/117950132