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

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

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

原文地址:https://www.cnblogs.com/luyuefeng/p/8618944.html