From 0907eee0d0d37d0e9d44a4787aaf412bff68feda Mon Sep 17 00:00:00 2001
From: 李轻舟 <30641714+lqzo@users.noreply.github.com>
Date: Tue, 7 Dec 2021 21:56:17 +0800
Subject: Remove weird styles (#3244)
* Update index.html
* Update index.html
Remove weird code and font face
---
.../zh-cn/web/javascript/reference/statements/async_function/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'files/zh-cn')
diff --git a/files/zh-cn/web/javascript/reference/statements/async_function/index.html b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
index 3fe81b81fb..37aad08974 100644
--- a/files/zh-cn/web/javascript/reference/statements/async_function/index.html
+++ b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
@@ -234,7 +234,7 @@ setTimeout(parallelPromise, 13000); // same as parallel
虽然parallelPromise
函数示例看起来很简单,但它根本不会处理错误! 这样做需要一个类似于return
Promise.all([])
处理方式。
使用
async函数重写 promise 链返回 {{jsxref("Promise")}}的 API 将会产生一个 promise 链,它将函数肢解成许多部分。例如下面的代码:
-- cgit v1.2.3-54-g00ecf