Fetch API 在promise中返回响应流。响应流不是JSON,因此尝试对其进行调用
JSON.parse将失败。要正确解析JSON响应,您需要使用response.json函数。这将返回一个承诺,因此您可以继续进行连锁。
fetch('http://jsonplaceholder.typipre.com/users', { method: 'GET'}).then(function(response) { return response.json(); }).then(function(json) { // use the json});


