Skip to content

hhy5277/vue2.0-demos

Repository files navigation

demo

例子 将页面公共头部提取为组件(更新于2017-5-5)

新增城市列表demo(更新于2017-5-26)
主要涉及(前期准备):
1.引入汉字转拼音的插件,利用NPM安装 代码指令为 npm install pinyin --save ,详细步骤请到pinyin
2.引入vue-resource,调用json文件,可以参考目录中的city.json,有条件的也可以自己去扒

按照如下命令运行即可,具体步骤请参考我的博客

Build Setup

# install dependencies 安装依赖
npm install

# serve with hot reload at localhost:8080  运行程序
npm run dev

# build for production with minification    打包
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.6%
  • Vue 18.4%
  • CSS 1.8%
  • HTML 0.2%