頁面結構如下,在頁面中潛嵌套了微信的登錄頁面,但是在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