会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
瓶子
首页
联系
管理
2018年8月29日
this.$route和this.$router的区别
摘要: 1. this.$router: 表示全局路由器对象,项目中通过router路由参数注入路由之后,在任何一个页面都可以通过此方法获取到路由器对象,并调用其push(), go()等方法; 2. this.$route: 表示当前正在用于跳转的路由器对象,可以调用其name、path、query、pa
阅读全文
posted @ 2018-08-29 21:20 夯
阅读(3966)
评论(1)
推荐(1)
公告