我定義了一個(gè)myCollection.json文件然后我用axios獲取json文件this.$http.get('http://localhost:8081/static/json/myCollection.json').then( function(response){ console.log(response.data); }, function(response){ alert("連接json文件失敗"); });//axio如果是console.log(response.data);可以打印出json文件,可是console.log(response.data.collection);的話就會(huì)輸出undefined。請(qǐng)問(wèn)要怎么解決
vue獲取json結(jié)果undefined
海綿寶寶撒
2019-02-12 17:19:47