data(){ return{ abc:[] }}數(shù)據(jù)請求:created() { axios .get("http://goods") .then(response => { this.abc = (JSON.parse(response.data)); }) .catch(error => { console.log("請刷新網(wǎng)絡(luò)"); }); },數(shù)據(jù)格式:問題:數(shù)據(jù)始終無法渲染到頁面上。
axios請求的數(shù)據(jù)如何通過data渲染到頁面上呢?
一只斗牛犬
2019-03-12 17:14:00