我试图从我居住的城市获得假期,但每次我试图指定字段时,我都会得到未定义的语句。
function getHolidays() {
fetch('https://api.calendario.com.br/?json=true&ano=2020&ibge=3550308&token=bHVjYXNsdm81M0BnbWFpbC5jb20maGFzaD03ODE3NDM2MA')
.then(function (response) {
return response.json()
})
.then(function (verify) {
const test = verify
console.log(test.date)
})
}
console.log(getHolidays())
弑天下
波斯汪
汪汪一只猫
相关分类