From 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:08:24 +0800 Subject: remove font tag in zh-CN --- .../reference/global_objects/aggregateerror/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/aggregateerror/index.html') 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

{{JSRef}}{{Draft}}{{SeeCompatTable}}

-

AggregateError当多个错误​​需要包装在一个错误中时,对象表示一个错误。

+

AggregateError当多个错误​​需要包装在一个错误中时,该对象表示一个错误。

语法

@@ -22,15 +22,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AggregateError
AggregateError错误的提示信息。
-

描述

+

描述

-

一个AggregateError当需要由操作报告多个错误被抛出,例如通过Promise.any(),在传递给它的所有Promise拒绝。

+

一个AggregateError当需要由操作报告多个错误被抛出,例如通过Promise.any(),在传递给它的所有Promise拒绝。

属性

AggregateError.prototype
-
AggregateError的原
+
AggregateError的原型

AggregateError 实例

@@ -41,14 +41,14 @@ translation_of: Web/JavaScript/Reference/Global_Objects/AggregateError
AggregateError.prototype.constructor
指定创建实例原型的函数。
{{JSxRef("Error.prototype.message", "AggregateError.prototype.message")}}
-
错误消息,默认为""
+
错误消息,默认为""
{{JSxRef("Error.prototype.name", "AggregateError.prototype.name")}}
-
错误名称,默认为"AggregateError"
+
错误名称,默认为"AggregateError"

示例

-

捕获一个AggregateError

+

捕获一个AggregateError

Promise.any([
   Promise.reject(new Error("some error")),
-- 
cgit v1.2.3-54-g00ecf