參考博文:https://blog.csdn.net/yufengaotian/article/details/81456685
例子如下:傳遞參數(shù)
jumpresume(id){
//跳轉(zhuǎn)路由的時候攜帶參數(shù)傳遞到跳轉(zhuǎn)的頁面
this.$router.push({path:'/resume',query:{'Id':id}})
},
接收參數(shù):
created(){
//用route的實(shí)例化對象接收
? ? let id = this.$route.query.Id;
? ? alert(id);
}