vue2.0 $router和$route的区别

在vue2.0里页面参数是 this.$route.query或者 this.$route.params 接收router-link传的参数。vue 在路由跳转的时候除了用router-link标签之外须要在script标签在事件里面跳转,因此有个方法就是在script标签里面写this.$router.push('要跳转的路径名'),this  在写的时候发现这两个为何不一样,在控制台打出thi
相关文章
相关标签/搜索