$route和$router的区别

$route是“路由信息对象”,包括path,params,hash,query,fullPath,matched,name等路由信息参数。 $router是“路由实例”对象包括了路由的跳转方法,钩子函数等。
相关文章
相关标签/搜索