router:前端路由history与hash模式的简单实现

时间:2021-04-30 13:00:42
【文件属性】:
文件名称:router:前端路由history与hash模式的简单实现
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-30 13:00:42
JavaScript router 前端路由history与hash模式的简单实现 npm install 安装依赖 npm run server 开启本地服务器 修改static/index.js内的mode可查看对应mode的页面效果 在app.js内已有history模式对应的后端代码, 在history模式下刷新也不会404
【文件预览】:
router-master
----.gitignore(12B)
----README.md(291B)
----static()
--------components.js(412B)
--------router.js(1KB)
--------route.js(203B)
--------index.js(135B)
--------index.html(534B)
----app.js(309B)
----package.json(103B)
----yarn.lock(10KB)
----package-lock.json(13KB)

网友评论