fetch的使用
fetch('./00 data.json')
.then(function (response){
//resolve
console.log(response)
return response.json();
})
.then(function (data) {
console.log(data);
}).catch(function(){
//reject
});

浙公网安备 33010602011771号