$route为当前router跳转对象 里面可以获取name、path、query、params等 $router为VueRouter实例,想要导航到不同URL,则使用$router.push方法 返回上一个history也是使用$router.go方法 总结:感觉$route是$router的子集(纯属个人理解) 原文地址:https://www.cnblogs.com/fewhj/p/9264483.html 时间: 2024-08-30 07:39:07