diff options
author | btea <2356281422@qq.com> | 2021-12-15 20:25:35 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 10:25:35 +0800 |
commit | c364394690051c83fff04a38c1d5b3247b425c6f (patch) | |
tree | bc1b397cf27195ccbfa882029611af9f9e6c377e | |
parent | cb94746c3cee436f07e57371f6a74c7686cee763 (diff) | |
download | translated-content-c364394690051c83fff04a38c1d5b3247b425c6f.tar.gz translated-content-c364394690051c83fff04a38c1d5b3247b425c6f.tar.bz2 translated-content-c364394690051c83fff04a38c1d5b3247b425c6f.zip |
Fix typo in Web/JavaScript/Reference/Global_Objects/Array/fill, zh-CN (#3353)
Co-authored-by: julieng <julien.gattelier@gmail.com>
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/array/fill/index.html | 2 |
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> |