diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/zh-cn/web/javascript/reference/operators/object_initializer/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 }</pre> <p> </p> -<p>ECMAScript 提案(第3阶段)的<a href="https://github.com/tc39/proposal-object-rest-spread">剩余/扩展属性</a>将<a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_operator">扩展</a>属性添加到对象文字。它将自己提供的对象的枚举属性复制到一个新的对象上。</p> +<p>ECMAScript 提案(第3阶段)的<a href="https://github.com/tc39/proposal-object-rest-spread">剩余/扩展属性</a>将<a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_operator">扩展</a>属性添加到对象字面量。它将自己提供的对象的枚举属性复制到一个新的对象上。</p> <p>使用比{{jsxref("Object.assign()")}}更短的语法,可以轻松克隆(不包括原型)或合并对象。</p> |