摘要:路由对象: 在使用了vue-router的应用中,路由对象会被注入每个组件中,赋值为this.$route,并且当路由切换时,路由对象会被时时更新。 路由对象会暴露一下属性: 1.$route.path 字符串,等于当前路由对象的路径,会被解析为绝对路径,例如:‘/home/news’。 2.$ro
阅读全文
posted @ 2017-03-06 16:46
posted @ 2017-03-06 16:46
posted @ 2017-03-02 15:41
posted @ 2017-03-02 11:25
posted @ 2017-03-01 18:48
posted @ 2017-03-01 15:16