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

[vue] route和router有什么区别? #369

Open
haizhilin2013 opened this issue Jun 20, 2019 · 5 comments
Open

[vue] route和router有什么区别? #369

haizhilin2013 opened this issue Jun 20, 2019 · 5 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] route和router有什么区别?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 20, 2019
@tjNane
Copy link

tjNane commented Jun 28, 2019

route代表当前路由对象,router代表整个vue实例下的路由对象

@szwShen
Copy link

szwShen commented Nov 7, 2019

router是new vueRouter的实例,route是当前路由的对象

@lancelote-zpc
Copy link

rorute 它是一条路由, ,routes只是配置了一组路由, router 是一个机制 相当于管理者 ,用来管理路由 ,我是这么认为的 不知道对不对

@WenJieLi1998
Copy link

route:代表当前路由信息对象,可以获取到当前路由的信息参数
router:代表路由实例的对象,包含了路由的跳转方法,钩子函数等

@yxllovewq
Copy link

route:代表当前路由的对象,包含了一些基本信息。
router:代表路由实例对象,包含了路由跳转的一些方法。

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

No branches or pull requests

6 participants