Skip to content

Commit e545fa3

Browse files
authored
Fix minor typo error
1 parent ddf8384 commit e545fa3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

5-network/03-fetch-progress/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ alert(commits[0].author.login);
9191
请注意,我们不能同时使用这两种方法来读取相同的响应。要么使用流读取器,要么使用 reponse 方法来获取结果。
9292
2. 在读取数据之前,我们可以从 `Content-Length` header 中得到完整的响应长度。
9393

94-
跨域请求中可能不存在这个 header(请参见 <info:fetch-crossorigin>),并且从技术上讲,服务器可以不设置它。但是通常情况下它都会在那里。
94+
跨源请求中可能不存在这个 header(请参见 <info:fetch-crossorigin>),并且从技术上讲,服务器可以不设置它。但是通常情况下它都会在那里。
9595
3. 调用 `await reader.read()`,直到它完成。
9696

9797
我们将响应块收集到数组 `chunks` 中。这很重要,因为在使用完(consumed)响应后,我们将无法使用 `response.json()` 或者其他方式(你可以试试,将会出现 error)去“重新读取”它。

0 commit comments

Comments
 (0)