diff options
author | alexanderhess <Hess.alexander1@web.de> | 2021-04-02 09:32:25 +0200 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-04-03 01:35:28 +0800 |
commit | 909051892b9516117d7ba12fb6bf0aa91c587ee7 (patch) | |
tree | 81b5943972a6fff86e0bd7c766f24f6aabd9950a /files/zh-cn/web/javascript | |
parent | 5d1e04e054a3b0cd2e2affb6db73733186b624c0 (diff) | |
download | translated-content-909051892b9516117d7ba12fb6bf0aa91c587ee7.tar.gz translated-content-909051892b9516117d7ba12fb6bf0aa91c587ee7.tar.bz2 translated-content-909051892b9516117d7ba12fb6bf0aa91c587ee7.zip |
Correction, Fixes #361
Diffstat (limited to 'files/zh-cn/web/javascript')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 => { <li>返回一个未定状态(<code>pending</code>)的 Promise,那么 <code>then</code> 返回 Promise 的状态也是未定的,并且它的终态与那个 Promise 的终态相同;同时,它变为终态时调用的回调函数参数与那个 Promise 变为终态时的回调函数的参数是相同的。</li> </ul> -<p>下面是一个演示<code> then</code> 方法的同步性的例子。</p> +<p>下面是一个演示<code> then</code> 方法的异步性的例子。</p> <pre class="brush: js">// using a resolved promise, the 'then' block will be triggered instantly, // but its handlers will be triggered asynchronously as demonstrated by the console.logs |