枫繁﹑叶 的个人博客 / 0 / 0 / 创建于 4年前 / 更新于 4年前
1、标签跳转
<router-link to='two'> <button>点我到第二个页面</button> </router-link>
2、点击事件跳转
<button @click="hreftwo" class="test-one">点我到第二个页面</button> js : methods:{ //跳转页面 hreftwo(){ this.$router.push({path:'/two'}) } }
本作品采用《CC 协议》,转载必须注明作者和本文链接
我要举报该,理由是: