我定义了一个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);的话就会输出undefined。请问要怎么解决
海绵宝宝撒
翻过高山走不出你
随时随地看视频慕课网APP
相关分类