# router **Repository Path**: cwq1211/router ## Basic Information - **Project Name**: router - **Description**: 原生 js 实现一个前端路由 router;H5的项目是用原生 js 写的,要用到路由,但是现在好用的路由都是和某些框架绑定在一起的,比如 vue-router ,framework7 的路由;但是又没必要为了一个路由功能而加入一套框架,现在自己写一个轻量级的路由。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-18 - **Last Updated**: 2022-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 这是一个原生 js 实现的轻量级路由,且页面跳转间有缓存功能。 某些简单的 H5 的项目是用原生 js 写的,要用到路由,但是现在好用的路由都是和某些框架绑定在一起的,比如 vue-router ,framework7 的路由。 但是又没必要为了一个路由功能而加入一套框架,所以便有了这个轻量级的路由。 文章详情:[原生 js 实现一个前端路由 router](https://www.jianshu.com/p/12faf86e41c0) ## 效果 效果图 效果体验地址: [1. 滑动效果: https://gitee.com/cwq1211/router/route/index.html](https://gitee.com/cwq1211/router/route/index.html) [2. 淡入淡出效果: https://gitee.com/cwq1211/router/route/index2.html](https://gitee.com/cwq1211/router/route/index2.html)