aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:13:18 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit8ccfa93045a6c119303566370999f59a0aae3b25 (patch)
tree972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
parent3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff)
downloadtranslated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz
translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2
translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html12
1 files changed, 4 insertions, 8 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
index 2beb165c9f..e48f5c2a61 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
@@ -23,16 +23,12 @@ p.catch(function(reason) {
<dl>
<dt><strong>onRejected</strong></dt>
- <dd>当Promise 被rejected时,被调用的一个{{jsxref("Function")}}。 该函数拥有一个参数:</dd>
- <dd><code>reason</code>    rejection 的原因。</dd>
- <dd>
- <p> 如果 <code>onRejected</code> 抛出一个错误或返回一个本身失败的 Promise ,  通过 <code>catch()</code> 返回的Promise 被rejected;否则,它将显示为成功(resolved)。 </p>
+ <dd>当Promise 被rejected时,被调用的一个{{jsxref("Function")}}。 该函数拥有一个参数:<code>reason</code>    rejection 的原因。如果 <code>onRejected</code> 抛出一个错误或返回一个本身失败的 Promise ,  通过 <code>catch()</code> 返回的Promise 被rejected;否则,它将显示为成功(resolved)。</dd>
+</dl>
- <h3 id="返回值">返回值</h3>
+<h3 id="返回值">返回值</h3>
- <p>一个{{jsxref("Promise")}}.</p>
- </dd>
-</dl>
+<p>一个{{jsxref("Promise")}}.</p>
<h2 id="Description">描述</h2>