第一种:
<router-link to='xxx.html'>点击跳转</router-link>
第二种:
<button @click="changeto" >点击跳转</button>
methods:{
changeto(){
this.$router.push({ path:'xxx.html' })
}
}
第三种:
<button @click="changeto">点击跳转到上一页</button>
methods:{
changeto(){
this.$router.go(-1);
}
}