aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:07 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitc40612041809fe289aba58aefa170bbe784aba1f (patch)
tree8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity
parent12a899ab8540bc84f56a0dc6491be80a48499d49 (diff)
downloadtranslated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz
translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2
translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
index 1078f84668..62112cb949 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/negative_infinity/index.html
@@ -5,11 +5,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY
---
<div>
{{JSRef("Global_Objects", "Number")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Number.NEGATIVE_INFINITY</strong></code> 属性表示负无穷大。</p>
<p>不用创建一个 {{jsxref("Global_Objects/Number", "Number")}} 实例,使用 <code>Number.NEGATIVE_INFINITY</code> 来访问该静态属性。</p>
<p>{{js_property_attributes(0,0,0)}}</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p><code>Number.NEGATIVE_INFINITY</code> 的值和全局对象的 {{jsxref("Global_Objects/Infinity", "Infinity")}} 属性的负值相同。</p>
<p>该值的行为同数学上的无穷大(infinity)有一点儿不同:</p>
<ul>
@@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY
<li>任何数除以 <code>NEGATIVE_INFINITY</code> 为 0。</li>
</ul>
<p>为了成功返回一个有限值,你可能会使用 <code>Number.NEGATIVE_INFINITY</code> 属性来判断是否显示一个条件错误 。然而 {{jsxref("Global_Objects/isFinite", "isFinite")}} 方法更适合这种情况。</p>
-<h2 id="Example" name="Example">示例</h2>
+<h2 id="Example">示例</h2>
<p>下例中,赋值给变量 <code>smallNumber</code> 一个明显小于 JavaScript 中的最小值的值。当 <code>if</code> 语句执行时,<code>smallNumber</code> 值为 "<code>-Infinity</code>",因此在继续执行代码前,<code>smallNumber</code> 被设为一个更容易管理的值。</p>
<pre class="brush:js">var smallNumber = (-Number.MAX_VALUE) * 2
@@ -104,7 +104,7 @@ if (smallNumber == Number.NEGATIVE_INFINITY) {
</tbody>
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Number.POSITIVE_INFINITY")}}</li>
<li>{{jsxref("Global_Objects/Infinity", "Infinity")}}</li>