I wrote an html page outside the vue.js project. How to jump to this html page in the vue.js page?
For example, the name of the html page is aaa.html.
This is the directory of vue.js
This is the html file I want to jump to How to jump
认证0级讲师
window.open()
If you don’t want to jump out of the single-page application, you can also write a preview page and use an iframe to load the external page. If it is a webApp, you can call the native method to create a new webview display.
You can use the a tag, but it’s a bit lowYou can also add a click event in the template and handle it in methods, window.location.href="aaa.html"
This address can help you
Trust me, there is no more appropriate way than a tag^_^
window.open()
If you don’t want to jump out of the single-page application, you can also write a preview page and use an iframe to load the external page. If it is a webApp, you can call the native method to create a new webview display.
You can use the a tag, but it’s a bit low
You can also add a click event in the template and handle it in methods, window.location.href="aaa.html"
This address can help you
Trust me, there is no more appropriate way than a tag^_^