此 Demo 用来测试Vue 实现 SPA的三种方式, 包括路由的功能.
步骤:
npm install
- 修改
config.js
的on
的三个配置参数NoRouter
,NoRouterWithIs
,Router
, 来分别查看三种实现方式 npm run dev
- 使用访问
localhost:4000
查看页面 - (可选)
npm run build
输出静态文件
注: 浏览器移动调试模式效果更佳
Type | Name | Latest commit message | Commit time |
---|---|---|---|
.. | |||
Failed to load latest commit information. | |||
![]() |
app | ||
![]() |
.babelrc | ||
![]() |
README.md | ||
![]() |
config.js | ||
![]() |
package.json | ||
![]() |
webpack.config.js |
步骤:
npm install
config.js
的 on
的三个配置参数 NoRouter
, NoRouterWithIs
, Router
, 来分别查看三种实现方式npm run dev
localhost:4000
查看页面npm run build
输出静态文件注: 浏览器移动调试模式效果更佳