开发者社区 问答 正文

【Vue基础】路由跳转的方式有哪几种?

展开
收起
前端问答 2019-11-23 19:20:27 892 分享 版权
1 条回答
写回答
取消 提交回答
  • 前端问答小助手
    1. a标签进行跳转;

      <a href='#/test'>测试</a>
      
    2. router-link进行跳转;

      <router-link to='/test'>测试</router-link>
      
    3. 编程式路由。

      this.$router.push()
      
      ...
      
    2019-11-24 12:26:36
    赞同 1 展开评论