diff options
author | Weiqi Wu <295290708@qq.com> | 2021-04-22 12:34:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-04-26 09:40:56 +0800 |
commit | 1868a168471b94cf90ccd9eb43eec44c172bba01 (patch) | |
tree | 5f4d45dd108c8c162a004e5eaddcf5e6d09bc47b /files | |
parent | c67ce077634cb01371614cbcc82234678c9a8809 (diff) | |
download | translated-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.html | 2 |
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(() => {}, () => {})</code> (resolved的结果为<code>undefined</code>)不同,<code>Promise.resolve(2).finally(() => {})</code> resolved的结果为 <code>2</code>。</li> - <li>同样,<code>Promise.reject(3).then(() => {}, () => {})</code> (resolved 的结果为<code>undefined</code>), <code>Promise.reject(3).finally(() => {})</code> rejected 的结果为 <code>3</code>。</li> + <li>同样,<code>Promise.reject(3).then(() => {}, () => {})</code> (fulfilled的结果为<code>undefined</code>), <code>Promise.reject(3).finally(() => {})</code> rejected 的结果为 <code>3</code>。</li> </ul> <div class="note"> |