aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/number/isfinite
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/number/isfinite')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/isfinite/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/isfinite/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/isfinite/index.html
index aef163cfb6..47a2ee8f0b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/isfinite/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/isfinite/index.html
@@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/isFinite
<h2 id="Syntax" name="Syntax">语法</h2>
-<pre class="syntaxbox notranslate"><code>Number.isFinite(v<var>alue</var>)</code></pre>
+<pre class="syntaxbox"><code>Number.isFinite(v<var>alue</var>)</code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
@@ -36,13 +36,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/isFinite
<h2 id="Polyfill">Polyfill</h2>
-<pre class="brush: js notranslate">if (Number.isFinite === undefined) Number.isFinite = function(value) {
+<pre class="brush: js">if (Number.isFinite === undefined) Number.isFinite = function(value) {
    return typeof value === 'number' &amp;&amp; isFinite(value);
}</pre>
<h2 id="示例">示例</h2>
-<pre class="brush: js notranslate">Number.isFinite(Infinity); // false
+<pre class="brush: js">Number.isFinite(Infinity); // false
Number.isFinite(NaN); // false
Number.isFinite(-Infinity); // false