diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:08:24 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 (patch) | |
tree | fcf531cdea6491c848cc17fc44efe5b18466e54b /files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html | |
parent | a2617e517fe48fbd0fc283e05c82e32765a3fb12 (diff) | |
download | translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.tar.gz translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.tar.bz2 translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.zip |
remove font tag in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html b/files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html index ff68e4fc49..c9578649f5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html @@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AggregateError <p>{{JSRef}}{{Draft}}{{SeeCompatTable}}</p> </blockquote> -<p><code><strong>AggregateError</strong></code><font><font>当多个错误需要包装在一个错误中时,</font><font>该</font><font>对象表示一个错误。</font></font></p> +<p><code><strong>AggregateError</strong></code>当多个错误需要包装在一个错误中时,该对象表示一个错误。</p> <h2 id="语法">语法</h2> @@ -22,15 +22,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AggregateError <dd>AggregateError错误的提示信息。</dd> </dl> -<h2 id="描述"><font><font>描述</font></font></h2> +<h2 id="描述">描述</h2> -<p><font><font>一个</font></font><code>AggregateError</code><font><font>当需要由操作报告多个错误被抛出,例如通过</font></font><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any"><code>Promise.any()</code></a><font><font>,在传递给它的所有</font></font><a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any"><code>Promise</code></a><font><font>拒绝。</font></font></p> +<p>一个<code>AggregateError</code>当需要由操作报告多个错误被抛出,例如通过<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any"><code>Promise.any()</code></a>,在传递给它的所有<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any"><code>Promise</code></a>拒绝。</p> <h2 id="属性">属性</h2> <dl> <dt><code>AggregateError.prototype</code></dt> - <dd><code>AggregateError</code><font><font>的原</font></font><font><font>型</font></font></dd> + <dd><code>AggregateError</code>的原型</dd> </dl> <h2 id="AggregateError_实例">AggregateError 实例</h2> @@ -41,14 +41,14 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AggregateError <dt><code>AggregateError.prototype.constructor</code></dt> <dd>指定创建实例原型的函数。</dd> <dt>{{JSxRef("Error.prototype.message", "AggregateError.prototype.message")}}</dt> - <dd><font><font>错误消息,默认为</font></font><code>""</code><font><font>。</font></font></dd> + <dd>错误消息,默认为<code>""</code>。</dd> <dt>{{JSxRef("Error.prototype.name", "AggregateError.prototype.name")}}</dt> - <dd><font><font>错误名称,默认为</font></font><code>"AggregateError"</code><font><font>。</font></font></dd> + <dd>错误名称,默认为<code>"AggregateError"</code>。</dd> </dl> <h2 id="示例">示例</h2> -<h3 id="捕获一个AggregateError"><font face="x-locale-heading-primary, zillaslab, Palatino, Palatino Linotype, x-locale-heading-secondary, serif">捕获一个</font>AggregateError</h3> +<h3 id="捕获一个AggregateError">捕获一个AggregateError</h3> <pre class="brush: js; notranslate">Promise.any([ Promise.reject(new Error("some error")), |