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'  })

                                }

                       }

3,如果你要的只是点击跳转返回上一页,请看我另一篇博文

       链接:https://www.cnblogs.com/lgnblog/p/9957661.html

                                                                                                                                                                                                                                                                                         

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2021-07-18
  • 2021-08-17
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案