vue $router $route

$route为当前router跳转对象里面可以获取name、path、query、params等

routerVueRouterURL使router为VueRouter实例,想要导航到不同URL,则使用router.push方法

转自https://www.cnblogs.com/mengfangui/p/9124675.html

猜你喜欢

转载自www.cnblogs.com/samsara-yx/p/9924141.html
今日推荐