我的要这样写才能得到结果
this.$http.get("data/cartData.json").then(function (res) {
console.log(res.data)
var data = res.data;
});
this.$http.get("data/cartData.json").then(function (res) {
console.log(res.data)
var data = res.data;
});
2017-03-21
老师讲的太好了,期待新的教学课程,这是我的源码练习
https://github.com/cwjie0229/Vue2.0-shoppingCart
https://github.com/cwjie0229/Vue2.0-shoppingCart