From 012ee621791b6895e637f96e6523027951768f25 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:03:27 +0800 Subject: remove inline style for zh-CN --- .../zh-cn/web/javascript/reference/global_objects/array/of/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/of') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html index 25e4a88a23..9013ce9446 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html @@ -45,7 +45,7 @@ Array(1, 2, 3); // [1, 2, 3]

示例

-
Array.of(1);         // [1]
+
Array.of(1);         // [1]
 Array.of(1, 2, 3);   // [1, 2, 3]
 Array.of(undefined); // [undefined]
 
@@ -54,7 +54,7 @@ Array.of(undefined); // [undefined]

如果原生不支持的话,在其他代码之前执行以下代码会创建 Array.of() 。

-
if (!Array.of) {
+
if (!Array.of) {
   Array.of = function() {
     return Array.prototype.slice.call(arguments);
   };
-- 
cgit v1.2.3-54-g00ecf