diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
-rw-r--r-- | files/zh-cn/web/javascript/reference/operators/new/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <ol> <li>创建一个空的简单JavaScript对象(即<code><strong>{}</strong></code>);</li> - <li>链接该对象(设置该对象的<font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);"><strong>constructor</strong></span></font>)到另一个对象 ;</li> + <li>为步骤1新创建的对象添加属性<font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);"><strong>__proto__</strong></span></font>,将该属性链接至构造函数的原型对象 ;</li> <li>将步骤1新创建的对象作为<code><strong>this</strong></code>的上下文 ;</li> <li>如果该函数没有返回对象,则返回<code><strong>this</strong></code>。</li> </ol> |