search

Home  >  Q&A  >  body text

javascript - Jump between vue.js and html pages

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

PHP中文网PHP中文网2732 days ago1241

reply all(5)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-05 10:40:43

    window.open()

    reply
    0
  • 黄舟

    黄舟2017-07-05 10:40:43

    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.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-07-05 10:40:43

    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"

    reply
    0
  • 天蓬老师

    天蓬老师2017-07-05 10:40:43

    This address can help you

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 10:40:43

    Trust me, there is no more appropriate way than a tag^_^

    reply
    0
  • Cancelreply