介绍
Vue.js是数据驱动,和JQuery思路不同,几乎不需要自己进行复杂低效的dom操作
使用
配置好nodejs后,切到项目文件夹,cmd;
cnpm是阿里巴巴镜像库,可解决下载慢问题
下载依赖:cnpm i
运行项目:npm run serve
报错处理
遇到报错:check python checking for Python executable “python2” in the PATH
1.删除node_modules文件夹。
2.cmd执行:cnpm install --global windows-build-tools --save
遇到报错:Node Sass could not find a binding for your current environment
cmd执行:cnpm rebuild node-sass