【发布时间】:2019-04-14 05:18:05
【问题描述】:
我要使用这个 json
但我收到错误 TypeError: Cannot read property 'aFeeds' of undefined
如何获得价值?
return fetch('https://freemusicarchive.org/featured.json'
)
.then(respone => respone.json())
.then(json => console.log(json))
.then(json=> json.aFeeds.aTracks)
.catch(err=>console.log(err))
【问题讨论】:
标签: javascript json reactjs ecmascript-6