vue中mode的设置

在学过渡效果的时候,里边有一个mode的设置,但是在路由的属性中还有一个mode。

mode的两个值

  1. histroy:当你使用 history 模式时,URL 就像正常的 url,例如 http://localhost:8080/hi,也好看!
  2. hash:默认’hash’值,但是hash看起来就像无意义的字符排列,不太好看也不符合我们一般的网址浏览习惯。
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43248623/article/details/107789869