读取json内容 fetch('./xxx.json') .then((response) => response.json()) .then((json) => console.log(json));