1.学习源代码的地址
https://github.com/vuejs/vue-resource
2.安装route-resource
npm install vue-router vue-resource --save
3.
https://blog.csdn.net/lucky_lxg/article/details/58605664 https://www.tuicool.com/articles/7nYnIba
4.报错处理
1.Uncaught TypeError: Cannot read property 'get' of undefined
解决:
在main.js里面添加
import VueResource from 'vue-resource';
Vue.use(VueResource);