页面结构如下,在页面中潜嵌套了微信的登录页面,但是在ie浏览器中扫码后无法跳转
解决: 添加 ‘sandbox‘ 属性即可,允许 iframe 中进行页面的跳转
<iframe :src="link" frameborder="0" height="400px" width="300px" sandbox="allow-scripts allow-top-navigation allow-same-origin"></iframe>
属性值和兼容性:
参考: https://blog.csdn.net/Mangojjx/article/details/91992519
https://www.w3school.com.cn/tags/att_iframe_sandbox.asp