📅  最后修改于: 2022-03-11 15:01:13.556000             🧑  作者: Mango
// if your json data doesn't show then just replace this code.
handleGetJson = () =>{
fetch(`./data.json`, {
headers : {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
})
.then(res=> res.json())
.then(data=> console.log(data))
}