为什么$http.get获取数据失败
cartView:function(){
var _this = this;
this.$http.get("data/cartP.json").then(function (res){
_this.productList = res.result.productList;
_this.totalMoney = res.result.totalMoney;
},function (err){
console.log(err);
})
}
cartView:function(){
var _this = this;
this.$http.get("data/cartP.json").then(function (res){
_this.productList = res.result.productList;
_this.totalMoney = res.result.totalMoney;
},function (err){
console.log(err);
})
}
2017-02-23
举报