Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Vue2】vue-router中$router和$route的区别 #8

Open
AmamiyaCx opened this issue Sep 3, 2022 · 0 comments
Open

【Vue2】vue-router中$router和$route的区别 #8

AmamiyaCx opened this issue Sep 3, 2022 · 0 comments

Comments

@AmamiyaCx
Copy link
Owner

$router

全局的router实例,可以进行路由的跳转

$route

当前激活路由的信息对象,可以获得当前路由配置的所有信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant