参考博文:https://blog.csdn.net/yufengaotian/article/details/81456685
例子如下:传递参数
jumpresume(id){
//跳转路由的时候携带参数传递到跳转的页面
this.$router.push({path:'/resume',query:{'Id':id}})
},
接收参数:
created(){
//用route的实例化对象接收
let id = this.$route.query.Id;
alert(id);
}
网友评论