Vue的路由模式 Vue路由的实现Vue路由模式中hash和history的概念Vue路由模式中hash和history的区别 Vue路由的实现 hash模式和history模式 Vue路由模式中hash和history的概念 1.hash模式:hash模式url里面永远带着#号,在开发当中默认使用这个模式 2.history模式:history模式没有#号 Vue路由模式中hash和history的区别 1.Url显示层面: hash:有# history:无#,美观 2.回车刷新 hash:可以加载到hash值对应页面 history:一般就是404刷新掉了 3.支持版本 hash:支持低版本浏览器和IE浏览器 history:HTML5新推出的API