摘要: 动态路由匹配 const router = new VueRouter({ routes: [ // 动态路径参数 以冒号开头 { path: '/user/:id', component: User } ] })当匹配到一个路由时,参数值会被设置到 this.$route.params 响应路由参 阅读全文
posted @ 2019-02-08 19:19 ZJT_T 阅读(195) 评论(0) 推荐(0) 编辑