为什么我尝试在下面运行的代码返回[object object]?Javascript抓取API [对象对象]
var request = new Request('data/some.json');
fetch(request).then(function(response) {
return response.json();
}).then(function(json) {
document.getElementById("test").innerHTML = json.items;
});
使用'response.data'。 – tomepejo