Words
0
Reading
0 min
Listen
Play
7y
<button @click='jumpto'> 点击跳转 </button>
<script>
methods: {
jumpto (){
this.$router.push('/cart')
//this.$router.push({path: '/cart'})
//this.$router.push({path: '/cart' + id})
}
}
</script>
<button @click='jumpto'> 点击跳转 </button>
<script>
methods: {
jumpto (){
this.$router.push('/cart')
//this.$router.push({path: '/cart'})
//this.$router.push({path: '/cart' + id})
}
}
</script>
RE: Vue.js实战笔记