vue 页面跳转及参数传递和接收

跳转:
this.$router.push({name: ' My', params:{ id:'1',name:'anson'}});
 
接收:
{{this.$route. params.id}}


猜你喜欢

转载自www.cnblogs.com/vxianfeng/p/10013354.html
今日推荐