From 909051892b9516117d7ba12fb6bf0aa91c587ee7 Mon Sep 17 00:00:00 2001 From: alexanderhess Date: Fri, 2 Apr 2021 09:32:25 +0200 Subject: Correction, Fixes #361 --- .../web/javascript/reference/global_objects/promise/then/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html index c41a74f379..9c70ab5924 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html @@ -54,7 +54,7 @@ p.then(value => {
  • 返回一个未定状态(pending)的 Promise,那么 then 返回 Promise 的状态也是未定的,并且它的终态与那个 Promise 的终态相同;同时,它变为终态时调用的回调函数参数与那个 Promise 变为终态时的回调函数的参数是相同的。
  • -

    下面是一个演示 then 方法的同步性的例子。

    +

    下面是一个演示 then 方法的异步性的例子。

    // using a resolved promise, the 'then' block will be triggered instantly,
     // but its handlers will be triggered asynchronously as demonstrated by the console.logs
    -- 
    cgit v1.2.3-54-g00ecf