首页 > 其他 > 详细

1. vue路由跳转及传参、获取参数

时间:2021-05-12 20:22:08      阅读:20      评论:0      收藏:0      [点我收藏+]

vue路由跳转及传参、获取参数

1. query方式

  跳转传参:this.$router.push({

        name:‘customerView‘,// 要跳转页面的名字(router文件里的name)

        query:{

          customerNo:this.customerNo, //参数1

          customerName:this.customerName, //参数2

          }

        })

  获取参数:this.$route.query.customerNo

       this.$route.query.customerName

 

1. vue路由跳转及传参、获取参数

原文:https://www.cnblogs.com/lige1234/p/14761168.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!