diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/reflect')
4 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/comparing_reflect_and_object_methods/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/comparing_reflect_and_object_methods/index.html index 0bfa4fcb10..cbecc77f37 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/comparing_reflect_and_object_methods/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/comparing_reflect_and_object_methods/index.html @@ -129,7 +129,7 @@ original_slug: Web/JavaScript/Reference/Global_Objects/Reflect/比较_Reflect_ <td><code>ownKeys()</code></td> <td>N/A</td> <td> - <p>{{jsxref("Reflect.ownKeys()")}}返回一个属性名称<font face="consolas, Liberation Mono, courier, monospace">数组</font>,该属性名称映射到目标对象自己的属性键。如果目标不是<code>Object</code>,则抛出<code>TypeError</code>。</p> + <p>{{jsxref("Reflect.ownKeys()")}}返回一个属性名称数组,该属性名称映射到目标对象自己的属性键。如果目标不是<code>Object</code>,则抛出<code>TypeError</code>。</p> </td> </tr> </tbody> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html index 174cab0ccb..b54e69bb3c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/construct/index.html @@ -40,7 +40,7 @@ var obj = Reflect.construct(Foo, args); </pre> <h3 id="Reflect.construct_vs_Object.create"><code>Reflect.construct()</code> vs <code>Object.create()</code></h3> -<p><code><font face="Arial, x-locale-body, sans-serif">在新语法</font>Reflect</code>出现之前,是通过明确指定构造函数和原型对象( 使用{{jsxref("Object.create()")}})来创建一个对象的。</p> +<p><code>在新语法Reflect</code>出现之前,是通过明确指定构造函数和原型对象( 使用{{jsxref("Object.create()")}})来创建一个对象的。</p> <pre class="brush: js notranslate">function OneClass() { this.name = 'one'; @@ -68,7 +68,7 @@ console.log(obj2 instanceof OtherClass); // true</pre> <p>虽然两种方式结果相同,但在创建对象过程中仍一点不同。 </p> -<p><font face="Arial, x-locale-body, sans-serif">当使用</font><code>Object.create()</code>和{{jsxref("Function.prototype.apply()")}}时,如果不使用<code>new</code>操作符调用构造函数,构造函数内部的<code>new.target</code>值会指向<code>undefined</code>。</p> +<p>当使用<code>Object.create()</code>和{{jsxref("Function.prototype.apply()")}}时,如果不使用<code>new</code>操作符调用构造函数,构造函数内部的<code>new.target</code>值会指向<code>undefined</code>。</p> <p>当调用<code>Reflect.construct()</code>来创建对象,<code>new.target</code>值会自动指定到<code>target</code>(或者newTarget,前提是newTarget指定了)。</p> @@ -97,7 +97,7 @@ OneClass.apply(obj3, args); // OneClass // undefined</pre> -<h2 id="举例"><font face="x-locale-heading-primary, zillaslab, Palatino, Palatino Linotype, x-locale-heading-secondary, serif"><strong>举例</strong></font></h2> +<h2 id="举例"><strong>举例</strong></h2> <h3 id="使用_Reflect.construct">使用 <code>Reflect.construct()</code></h3> diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html index 340178d61f..b41fb920c4 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/get/index.html @@ -37,7 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect/get <h2 id="实例">实例</h2> -<h3 id="使用_Reflect.get"><code><font face="Open Sans, Arial, sans-serif">使用 </font>Reflect.get()</code></h3> +<h3 id="使用_Reflect.get"><code>使用 Reflect.get()</code></h3> <pre class="brush: js">// Object var obj = { x: 1, y: 2 }; diff --git a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html index a04fbd5fb0..2e7e33a136 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/reflect/isextensible/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect/isExtensible --- <div>{{JSRef}}</div> -<p><code><font face="Open Sans, Arial, sans-serif">静态方法 </font><strong>Reflect</strong></code><strong><code>.isExtensible()</code></strong> 判断一个对象是否可扩展 (即是否能够添加新的属性)。与它 {{jsxref("Object.isExtensible()")}} 方法相似,但有一些不同,详情可见 {{anch("Difference to Object.isExtensible()", "differences")}}。</p> +<p><code>静态方法 <strong>Reflect</strong></code><strong><code>.isExtensible()</code></strong> 判断一个对象是否可扩展 (即是否能够添加新的属性)。与它 {{jsxref("Object.isExtensible()")}} 方法相似,但有一些不同,详情可见 {{anch("Difference to Object.isExtensible()", "differences")}}。</p> <h2 id="语法">语法</h2> |