diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html')
| -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 83fd96107e..bf7a3d736a 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 @@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/finally --- <div>{{JSRef}}</div> -<div></div> + <div><code><strong>finally()</strong></code> 方法返回一个{{jsxref("Promise")}}。在promise结束时,无论结果是fulfilled或者是rejected,都会执行指定的回调函数。这为在<code>Promise</code>是否成功完成后都需要执行的代码提供了一种方式。</div> |
