//传参
this.$router.push({
path:'/Show_blog',//地址,路由跳转 index里面的地址
query:{//传的参数
id:id,
userName:name
}
})
//取参
//在跳转到的那个页面
const id = this.$route.query.id
const userName = this.$route.query.userName
vue跳转页面传参取参
猜你喜欢
转载自blog.csdn.net/darkCloudss/article/details/103289524
今日推荐
周排行