vue常用的两种跳转方式

1,标签跳转

    <router-link to='two.html'><button>点我到第二个页面</button></router-link>

2,点击事件跳转

   html :

      <button @click="hreftwo" class="test-one">点我到第二个页面</button>
   js :

      methods:{ //跳转页面

                    hreftwo(){

                              this.$router.push({ path:'/two.html'  })

                                }

                       }

原文地址:https://www.cnblogs.com/yugueilou/p/13997947.html