aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/promise/catch/index.html
diff options
context:
space:
mode:
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>