this.$router.go()和this.$router.push()的差别

1.this.$router.go(val) => 在history记录中前进或者后退val步,当val为0时刷新当前页面。

2.this.$router.push(path) => 在history栈中添加一条新的记录。

posted @ 2018-03-21 18:51  code-luyf  阅读(3984)  评论(0编辑  收藏  举报