diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:07:31 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | d9e9adb5f80a819fe46349bcf6d1faec734b09cd (patch) | |
tree | e856dc5e31aad0a7d5e8c2f98c9ee139d9569a86 /files/zh-cn/web/javascript/reference/operators/new | |
parent | 7c2556fe79c44d7c31108b8c8b048d2b7704a95e (diff) | |
download | translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.tar.gz translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.tar.bz2 translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.zip |
remove span tag in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/new')
-rw-r--r-- | files/zh-cn/web/javascript/reference/operators/new/index.html | 6 |
1 files changed, 3 insertions, 3 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 dac61b1b8c..488a6a647b 100644 --- a/files/zh-cn/web/javascript/reference/operators/new/index.html +++ b/files/zh-cn/web/javascript/reference/operators/new/index.html @@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Operators/new --- <div>{{jsSidebar("Operators")}}</div> -<p><span class="seoSummary"><strong><code>new</code> 运算符</strong>创建一个用户定义的对象类型的实例或具有构造函数的内置对象的实例。</span></p> +<p><strong><code>new</code> 运算符</strong>创建一个用户定义的对象类型的实例或具有构造函数的内置对象的实例。</p> <ol> </ol> @@ -39,12 +39,12 @@ translation_of: Web/JavaScript/Reference/Operators/new <ol> <li>创建一个空的简单JavaScript对象(即<code><strong>{}</strong></code>);</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新创建的对象添加属性<font face="consolas, Liberation Mono, courier, monospace"><strong>__proto__</strong></font>,将该属性链接至构造函数的原型对象 ;</li> <li>将步骤1新创建的对象作为<code><strong>this</strong></code>的上下文 ;</li> <li>如果该函数没有返回对象,则返回<code><strong>this</strong></code>。</li> </ol> -<p>(译注:关于对象的 <font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);"><strong>constructor</strong></span></font>,参见 <font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);"><strong>Object.prototype.constructor</strong></span></font>)</p> +<p>(译注:关于对象的 <font face="consolas, Liberation Mono, courier, monospace"><strong>constructor</strong></font>,参见 <font face="consolas, Liberation Mono, courier, monospace"><strong>Object.prototype.constructor</strong></font>)</p> <p>创建一个用户自定义的对象需要两步:</p> |