vue 前端路由
有两种方式实现:
1是引入vue-router库;
2是不引入router库,使用H5的API实现。
https://www.jianshu.com/p/9a7d79249741
window.location.pathname获得路径"/…"
vue 前端路由
有两种方式实现:
1是引入vue-router库;
2是不引入router库,使用H5的API实现。
https://www.jianshu.com/p/9a7d79249741
window.location.pathname获得路径"/…"