Vue.js(读音 /vjuː/, 类似于 view) 是一套构建用户界面的渐进式框架。
Vue 只关注视图层, 采用自底向上增量开发的设计。
Vue 的目标是通过尽可能简单的 API 实现响应的数据绑定和组合的视图组件。
版本(2.9.6)
中文文档:
https://cn.vuejs.org/v2/guide/syntax.html
项目仓库:https://gitee.com/QiHanXiBei/newvue
安装流程
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| npm cache clean --force
npm set registry https://registry.npmjs.org/
npm install npm -g
安装 vue.js
npm install -g vue-cli
npm cache clean --force
建立项目 vue init webpack nvue
project name(项目名称) 按回车
project description(项目描述) 按回车
author(作者) 按回车
vue build(解释器) 按回车
Install vue-router(路由) 按y按回车
use aslantto lint your code(代码检查) 按n按回车
set up unit tests(测试模块) 按n按回车
setup e2e tests with night watch(是否安装e2e) 按n按回车
should we run ’npm install’(是否选择npm方式)选第一个,按回车
cd <项目名>
npm install jquery --save
npm install axios --save
npm install vue-resource —-save
npm install style-loader —-save
npm i element-ui -S
进入项目 热启动 npm run dev
退出服务 ctrl + c
|