就講這點(diǎn)楞說(shuō)已經(jīng)覆蓋90%了,頂多30%,真正Vue的精髓組件化、各組件的通信、父組件子組件的通信、typescript的支持等都沒(méi)有提到,
2017-09-29
2017.09
提示Uncaught (in promise) TypeError: Cannot read property 'result' of undefined錯(cuò)誤的。
貌似是返回的 res 結(jié)構(gòu)又改了。
修改為_(kāi)this.productList = res.data.result.list; 就可以……
提示Uncaught (in promise) TypeError: Cannot read property 'result' of undefined錯(cuò)誤的。
貌似是返回的 res 結(jié)構(gòu)又改了。
修改為_(kāi)this.productList = res.data.result.list; 就可以……
2017-09-26
"currentIndex" is not defined.....
2017-09-26
有些人說(shuō)在瀏覽器上獲取不到carData.json,原因是你跨域了,在本地磁盤(pán)上是獲取不到的,你需要一個(gè)服務(wù)器,簡(jiǎn)單的做法是下載一個(gè)phpstudy,把項(xiàng)目文件放在根目錄下去跑,就OK。
2017-09-25
this.$http.get('../static/data/cartData.json',{"id":1}).then(function (res) {
console.log(res);
})
就算把data文件夾放入static目錄下,還是會(huì)報(bào)404錯(cuò),提示找不到文件
console.log(res);
})
就算把data文件夾放入static目錄下,還是會(huì)報(bào)404錯(cuò),提示找不到文件
2017-09-23