vue-resource安装
- 进入项目cd到项目所在目录
- 运行命令
我们一般用第二种方式运行
1).npm install vue-resource
2).这种方式会将数据写入package.json这样将项目发送给其他用户时项目会有问题
cnpm install vue-resource --save
3.main.js导入vue-resource
我们一般用第二种方式运行
1).npm install vue-resource
2).这种方式会将数据写入package.json这样将项目发送给其他用户时项目会有问题
cnpm install vue-resource --save
3.main.js导入vue-resource