From b892717f0b65a2fde38d1c4cbbb38a61b31f5d9f Mon Sep 17 00:00:00 2001 From: xiefangqing <72127264+xiefangqing@users.noreply.github.com> Date: Sun, 25 May 2025 23:14:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E2=80=9C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E2=80=9D=E6=94=B9=E6=88=90=E2=80=9C=E5=A4=9A=E4=B8=AA=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-js/11-async/08-async-await/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/11-async/08-async-await/article.md b/1-js/11-async/08-async-await/article.md index 6c9c88c20f..9b65060b60 100644 --- a/1-js/11-async/08-async-await/article.md +++ b/1-js/11-async/08-async-await/article.md @@ -307,4 +307,4 @@ Promise 前的关键字 `await` 使 JavaScript 引擎等待该 promise settle, 这两个关键字一起提供了一个很好的用来编写异步代码的框架,这种代码易于阅读也易于编写。 -有了 `async/await` 之后,我们就几乎不需要使用 `promise.then/catch`,但是不要忘了它们是基于 promise 的,因为有些时候(例如在最外层作用域)我们不得不使用这些方法。并且,当我们需要同时等待需要任务时,`Promise.all` 是很好用的。 +有了 `async/await` 之后,我们就几乎不需要使用 `promise.then/catch`,但是不要忘了它们是基于 promise 的,因为有些时候(例如在最外层作用域)我们不得不使用这些方法。并且,当我们需要同时等待多个任务时,`Promise.all` 是很好用的。