84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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^_^