From f73476ee1503c3765f586bb5196279cff3634b9c Mon Sep 17 00:00:00 2001 From: aotushi <75104303+aotushi@users.noreply.github.com> Date: Tue, 15 Mar 2022 21:49:22 +0800 Subject: fix translation (#4605) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 翻译错误 --- .../web/javascript/reference/operators/object_initializer/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference') diff --git a/files/zh-cn/web/javascript/reference/operators/object_initializer/index.html b/files/zh-cn/web/javascript/reference/operators/object_initializer/index.html index 0cf6e54f9d..0b7bc92a88 100644 --- a/files/zh-cn/web/javascript/reference/operators/object_initializer/index.html +++ b/files/zh-cn/web/javascript/reference/operators/object_initializer/index.html @@ -194,7 +194,7 @@ console.log(config); // { size: 12, mobileSize: 4 }

 

-

ECMAScript 提案(第3阶段)的剩余/扩展属性扩展属性添加到对象文字。它将自己提供的对象的枚举属性复制到一个新的对象上。

+

ECMAScript 提案(第3阶段)的剩余/扩展属性扩展属性添加到对象字面量。它将自己提供的对象的枚举属性复制到一个新的对象上。

使用比{{jsxref("Object.assign()")}}更短的语法,可以轻松克隆(不包括原型)或合并对象。

-- cgit v1.2.3-54-g00ecf