diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:08:24 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 (patch) | |
tree | fcf531cdea6491c848cc17fc44efe5b18466e54b /files/zh-cn/web/javascript/reference/classes | |
parent | a2617e517fe48fbd0fc283e05c82e32765a3fb12 (diff) | |
download | translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.tar.gz translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.tar.bz2 translated-content-8d1313c84cc82d81363ed62b75baedb9a65ff2e3.zip |
remove font tag in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/classes')
-rw-r--r-- | files/zh-cn/web/javascript/reference/classes/extends/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/reference/classes/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/classes/extends/index.html b/files/zh-cn/web/javascript/reference/classes/extends/index.html index 3b748a622d..c7dbb72d18 100644 --- a/files/zh-cn/web/javascript/reference/classes/extends/index.html +++ b/files/zh-cn/web/javascript/reference/classes/extends/index.html @@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Classes/extends <p><code>extends</code>关键字用来创建一个普通类或者内建对象的子类。</p> -<p><font face="Open Sans, Arial, sans-serif">继承的</font><code>.prototype</code>必须是一个{{jsxref("Object")}} 或者 {{jsxref("null")}}。</p> +<p>继承的<code>.prototype</code>必须是一个{{jsxref("Object")}} 或者 {{jsxref("null")}}。</p> <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/javascript/reference/classes/index.html b/files/zh-cn/web/javascript/reference/classes/index.html index fdf7cd4f6e..3b0c5f408f 100644 --- a/files/zh-cn/web/javascript/reference/classes/index.html +++ b/files/zh-cn/web/javascript/reference/classes/index.html @@ -143,7 +143,7 @@ console.log(Point.distance(p1, p2)); <h3 id="用原型和静态方法绑定_this">用原型和静态方法绑定 this</h3> -<p>当调用静态或原型方法时没有指定 <em>this </em>的值,那么方法内的 <em>this </em>值将被置为 <strong><code>undefined</code></strong>。即使你未设置 <font face="consolas, Liberation Mono, courier, monospace">"use strict"</font> ,因为 <code>class</code> 体内部的代码总是在严格模式下执行。</p> +<p>当调用静态或原型方法时没有指定 <em>this </em>的值,那么方法内的 <em>this </em>值将被置为 <strong><code>undefined</code></strong>。即使你未设置 <code>"use strict"</code> ,因为 <code>class</code> 体内部的代码总是在严格模式下执行。</p> <pre class="brush: js notranslate">class Animal { speak() { |