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