$router
:指整个路由实例,可操控整个路由,通过‘$router.push’往其中添加任意的路由对象(跳转方法、钩子函数等)。
$route
:指当前路由实例跳转到的路由对象,包括path,params,hash,query,
fullPath,matched,meta,name等路由信息参数。
routes
:router路由实例的routes API,用来配置多个路由对象。即一组路由,把每一条route组合形成一个数组。
$router
:指整个路由实例,可操控整个路由,通过‘$router.push’往其中添加任意的路由对象(跳转方法、钩子函数等)。
$route
:指当前路由实例跳转到的路由对象,包括path,params,hash,query,
fullPath,matched,meta,name等路由信息参数。
routes
:router路由实例的routes API,用来配置多个路由对象。即一组路由,把每一条route组合形成一个数组。