From 8fa8486a913466c012e0376c1d1a0075220aabb4 Mon Sep 17 00:00:00 2001 From: Tackoil Date: Tue, 27 Jul 2021 23:14:40 +0800 Subject: improve Web/JavaScript/Reference/Operators/new, zh-CN (#1728) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, I make a modification about the description of the second step on the page about `new` operator. The orignal one was confused me because of the two 对象. According to the English version, I make this change to match that one. Please let me know if there are any question. Thanks. 您好,我对 `new` 操作符中的第二步描述做了修改。 原始版本中的两个“对象”存在歧义,在我第一次阅读时理解很困难。对照英文版本,我做了对应的修改进行匹配。 如果该 PR 存在哪些问题,请联系我。谢谢~ --- files/zh-cn/web/javascript/reference/operators/new/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/zh-cn/web/javascript/reference/operators/new/index.html b/files/zh-cn/web/javascript/reference/operators/new/index.html index e5b6ef0795..dac61b1b8c 100644 --- a/files/zh-cn/web/javascript/reference/operators/new/index.html +++ b/files/zh-cn/web/javascript/reference/operators/new/index.html @@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Operators/new
  1. 创建一个空的简单JavaScript对象(即{});
  2. -
  3. 链接该对象(设置该对象的constructor)到另一个对象 ;
  4. +
  5. 为步骤1新创建的对象添加属性__proto__,将该属性链接至构造函数的原型对象 ;
  6. 将步骤1新创建的对象作为this的上下文 ;
  7. 如果该函数没有返回对象,则返回this
-- cgit v1.2.3-54-g00ecf