理论描述 $router : 是路由操作对象,只写对象; $route : 路由信息对象,只读对象。 实践展示 //操作 路由跳转 this.$router.push({ name:‘hello’, params:{ name:‘word’, age:‘11’ } }) //读取 路由参数接收 this.name = this.$route.params.name; this.age = this.$route.params.age; 总结 使用$router传递, 使用$route接收