matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

The response is become more #121

Closed imstone closed 7 years ago

imstone commented 7 years ago

I make a request to backend api , and found that the return of data becomes more;

.then(function(response) {
       // console.log(response.json())
      // result.length === 10
        return response.json();
    })
    .then(function(stories) {
       //  console.log(stories);
      // result.length === 24
    });

我再用中文说下:我发了个请求给后端接口,发现返回数据变多了,后端返回10条,结果打印出了24条,我在第一个then那里打印了下发现是10条,但是到第二个then就变成24个了