aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html
index 2acc9d6d73..955cbc9d6a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html
@@ -61,7 +61,7 @@ Array(3).fill(4); // [4, 4, 4]
// Objects by reference.
var arr = Array(3).fill({}) // [{}, {}, {}];
-// 需要注意如果fill的参数为引用类型,会导致都执行都一个引用类型
+// 需要注意如果fill的参数为引用类型,会导致都执行同一个引用类型
// 如 arr[0] === arr[1] 为true
arr[0].hi = "hi"; // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }]</pre>