vue this.$router.push和this.$route.path的区别

this.$router 实际上就是全局路由对象任何页面都可以调用 push(), go()等方法;

this.$route  表示当前正在用于跳转的路由器对象,可以调用其name、path、query、params等属性。

 

posted @ 2018-11-30 09:30  叶子玉  阅读(11426)  评论(0编辑  收藏  举报