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

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

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