this.$http.get("data/cartData.json").then()获取json数据出错
cartView: function() {
var _this = this;
this.$http.get("data/cartData.json").then(function(res) {
_this.productList = res.body.result.list;
}).catch(function(res) {
console.log(res);
})
}
cartView: function() {
var _this = this;
this.$http.get("data/cartData.json").then(function(res) {
_this.productList = res.body.result.list;
}).catch(function(res) {
console.log(res);
})
}
2019-08-15
举报