2017年10月10日
摘要: 需要的文件: angular.js ng-table.js ng-table.css bootrasp.css 注入依赖: 为ng-table设置数据 为 table 添加 ng-table 属性 阅读全文
posted @ 2017-10-10 17:12 不了无明 阅读(344) 评论(0) 推荐(0)
摘要: 别名 阅读全文
posted @ 2017-10-10 17:00 不了无明 阅读(210) 评论(0) 推荐(0)
摘要: //展示多个视图 const router = new VueRouter({ routes: [ { path: '/', components: { default: Foo, a: Bar } } ] }) 阅读全文
posted @ 2017-10-10 13:23 不了无明 阅读(630) 评论(0) 推荐(0)
摘要: 创建 Router 实例的时候,在 routes 配置中给某个路由设置名称 阅读全文
posted @ 2017-10-10 11:25 不了无明 阅读(169) 评论(0) 推荐(0)
摘要: 想要导航到不同的 URL,用 router.push 方法,会向 history 栈添加一个新的记录 <router-link> 《==》router.push 阅读全文
posted @ 2017-10-10 11:12 不了无明 阅读(355) 评论(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 不了无明 阅读(285) 评论(0) 推荐(0)
摘要: 同一个路径可以匹配多个路由,谁先定义的,谁的优先级就最高。 阅读全文
posted @ 2017-10-10 09:54 不了无明 阅读(248) 评论(0) 推荐(0)