摘要:
创建 Router 实例的时候,在 routes 配置中给某个路由设置名称 阅读全文
posted @ 2017-10-10 11:25
不了无明
阅读(163)
评论(0)
推荐(0)
摘要:
想要导航到不同的 URL,用 router.push 方法,会向 history 栈添加一个新的记录 <router-link> 《==》router.push 阅读全文
posted @ 2017-10-10 11:12
不了无明
阅读(351)
评论(0)
推荐(0)
摘要:
const User = { template: ` User {{ $route.params.id }} ` } const router = new VueRouter({ routes: [ { path: '/user/:id', component: User, children: [ ... 阅读全文
posted @ 2017-10-10 10:11
不了无明
阅读(284)
评论(0)
推荐(0)
摘要:
同一个路径可以匹配多个路由,谁先定义的,谁的优先级就最高。 阅读全文
posted @ 2017-10-10 09:54
不了无明
阅读(248)
评论(0)
推荐(0)


浙公网安备 33010602011771号