首先你要明白fetch不是react的东西,而是ES的语法,fetch的格式是: fetch('url'+参数a, { method: "GET", body: json } .then(res => response.json()) .then(console.log(json)) ) 这就跟以前的js的XMLHttpRequest一样,只不过fetch完善了XMLH