安装
//安装vue npm install vue //全局安装 vue-cli npm install --global vue-cli //创建一个基于 webpack 模板的新项目 vue init webpack my-project //安装依赖,运行项目 cd my-project npm run dev
常用工具(依赖项)
npm install vue-router --save //安装vue-router路由模块 npm install vuex --save //安装vuex状态管理模块 npm install axios --save //安装axios npm install vue-axios --save //安装vue-axios npm install --save calculatorjs //js四则运算