1.标签跳转
<router-link to ='xxx.html'><button>下一个页面</button></router-link>
2,点击事件跳转
html :
<button @click="nextPage">下一个页面</button>
js :
methods:{ //跳转页面
nextPage(){
this.$router.push({ path:'/xxx.html' })
}
}
1.标签跳转
<router-link to ='xxx.html'><button>下一个页面</button></router-link>
2,点击事件跳转
html :
<button @click="nextPage">下一个页面</button>
js :
methods:{ //跳转页面
nextPage(){
this.$router.push({ path:'/xxx.html' })
}
}