(自用面试题)$router和$route的区别是什么? 光头络腮胡 2023-04-14 174 阅读1分钟 $router是路由实例对象,包括了路由的跳转方法、钩子函数等,可以使用$router.push()、$router.replace()、$router.go()等。 $route是路由信息对象,包括name、path、params(parameters/参数的缩写)、query、meta、fullPath、hash、matched等路由信息参数。