Skip to content

本实例分别实现了 Hash 模式和 History 模式的路由

Notifications You must be signed in to change notification settings

fengshi123/router-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

router_example

本实例通过简单实现 Hash 路由和 History 路由,效果图分别如下所示:

  • Hash 路由:

1.png

  • History 路由:

1.png

构建步骤

1、需要 Node.js 6+ (作者使用的版本为:node.js 8.2.1 npm 5.3.0)

2、步骤如下:

  • 安装插件:npm install

  • 运行示例:npm run dev

About

本实例分别实现了 Hash 模式和 History 模式的路由

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages