diff options
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"> |