安装vue-resource项目main.js引入使用:Vue.use(VueResource)调用:this.$http.get(url).then(response=>{ console.log(response) },err=>{ console.log(err) })