aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorWeiqi Wu <295290708@qq.com>2021-04-22 12:34:07 +0800
committerIrvin <irvinfly@gmail.com>2021-04-26 09:40:56 +0800
commit1868a168471b94cf90ccd9eb43eec44c172bba01 (patch)
tree5f4d45dd108c8c162a004e5eaddcf5e6d09bc47b /files
parentc67ce077634cb01371614cbcc82234678c9a8809 (diff)
downloadtranslated-content-1868a168471b94cf90ccd9eb43eec44c172bba01.tar.gz
translated-content-1868a168471b94cf90ccd9eb43eec44c172bba01.tar.bz2
translated-content-1868a168471b94cf90ccd9eb43eec44c172bba01.zip
Fix typo
Diffstat (limited to 'files')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
index 6f0711e765..9bec7a7f02 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
@@ -45,7 +45,7 @@ p.finally(function() {
<li>调用内联函数时,不需要多次声明该函数或为该函数创建一个变量保存它。</li>
<li>由于无法知道<code>promise</code>的最终状态,所以<code>finally</code>的回调函数中不接收任何参数,它仅用于无论最终结果如何都要执行的情况。</li>
<li>与<code>Promise.resolve(2).then(() =&gt; {}, () =&gt; {})</code> (resolved的结果为<code>undefined</code>)不同,<code>Promise.resolve(2).finally(() =&gt; {})</code> resolved的结果为 <code>2</code>。</li>
- <li>同样,<code>Promise.reject(3).then(() =&gt; {}, () =&gt; {})</code> (resolved 的结果为<code>undefined</code>), <code>Promise.reject(3).finally(() =&gt; {})</code> rejected 的结果为 <code>3</code>。</li>
+ <li>同样,<code>Promise.reject(3).then(() =&gt; {}, () =&gt; {})</code> (fulfilled的结果为<code>undefined</code>), <code>Promise.reject(3).finally(() =&gt; {})</code> rejected 的结果为 <code>3</code>。</li>
</ul>
<div class="note">