We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddf8384 commit e545fa3Copy full SHA for e545fa3
1 file changed
5-network/03-fetch-progress/article.md
@@ -91,7 +91,7 @@ alert(commits[0].author.login);
91
请注意,我们不能同时使用这两种方法来读取相同的响应。要么使用流读取器,要么使用 reponse 方法来获取结果。
92
2. 在读取数据之前,我们可以从 `Content-Length` header 中得到完整的响应长度。
93
94
- 跨域请求中可能不存在这个 header(请参见 <info:fetch-crossorigin>),并且从技术上讲,服务器可以不设置它。但是通常情况下它都会在那里。
+ 跨源请求中可能不存在这个 header(请参见 <info:fetch-crossorigin>),并且从技术上讲,服务器可以不设置它。但是通常情况下它都会在那里。
95
3. 调用 `await reader.read()`,直到它完成。
96
97
我们将响应块收集到数组 `chunks` 中。这很重要,因为在使用完(consumed)响应后,我们将无法使用 `response.json()` 或者其他方式(你可以试试,将会出现 error)去“重新读取”它。
0 commit comments