p8 路由传递参数 分别有三种方式,普通字符串、模板字符串、对象形式。例如传递params参数、query参数 this.$router.push('/search/'+this.params+'?q='+this.query) this.$router.push(`/search/${this.params}?q=${this.query}`) this.$router.push({name:'search'; params:{p:this.params}; query:{q:this.query}}) 需注意的是,路由传递参数的对象形式中,path不能与params一起用,路径会出错...