-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue-router路由有几种模式?说说它们的区别? #416
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
Comments
共有两种模式 |
默认为 hash 模式,在 VueRouter 实例中添加 mode 属性并设值为 'history' 更改为 history 模式,此模式基于 html5 |
hash模式和history模式,一般的前端使用hash模式,hash表示的是url中#的变化,当#变化是引起路由跳转 |
hash模式: |
hash模式: history模式: |
难道不是有三种模式吗?
|
harsh模式 默认的模式 hash值url#及部分 |
[vue] vue-router路由有几种模式?说说它们的区别?
The text was updated successfully, but these errors were encountered: