From 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:08:24 +0800 Subject: remove font tag in zh-CN --- files/zh-cn/web/javascript/reference/operators/new/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/operators/new/index.html') 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 488a6a647b..0b2d5c24c7 100644 --- a/files/zh-cn/web/javascript/reference/operators/new/index.html +++ b/files/zh-cn/web/javascript/reference/operators/new/index.html @@ -39,12 +39,12 @@ translation_of: Web/JavaScript/Reference/Operators/new
  1. 创建一个空的简单JavaScript对象(即{});
  2. -
  3. 为步骤1新创建的对象添加属性__proto__,将该属性链接至构造函数的原型对象 ;
  4. +
  5. 为步骤1新创建的对象添加属性__proto__,将该属性链接至构造函数的原型对象 ;
  6. 将步骤1新创建的对象作为this的上下文 ;
  7. 如果该函数没有返回对象,则返回this
-

(译注:关于对象的 constructor,参见 Object.prototype.constructor

+

(译注:关于对象的 constructor,参见 Object.prototype.constructor

创建一个用户自定义的对象需要两步:

-- cgit v1.2.3-54-g00ecf