diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/number/min_value')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html index b61649b58b..ba746ab29c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/min_value/index.html @@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE --- <div> {{JSRef("Global_Objects", "Number")}}</div> -<h2 id="Summary" name="Summary">概述</h2> +<h2 id="Summary">概述</h2> <p><code><strong>Number.MIN_VALUE</strong></code> 属性表示在 JavaScript 中所能表示的最小的正值。</p> <p>{{js_property_attributes(0,0,0)}}</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>MIN_VALUE</code> 属性是 JavaScript 里最接近 0 的正值,而不是最小的负值。</p> <p><code>MIN_VALUE</code> 的值约为 5e-324。小于 <code>MIN_VALUE</code> ("underflow values") 的值将会转换为 0。</p> <p>因为 <code>MIN_VALUE</code> 是 <code>Number</code> 的一个静态属性,因此应该直接使用: <code>Number.MIN_VALUE,</code> 而不是作为一个创建的 <code>Number</code> 实例的属性。</p> -<h2 id="Examples" name="Examples">示例</h2> -<h3 id="Example:_Using_MIN_VALUE" name="Example:_Using_MIN_VALUE">例子:使用 <code>MIN_VALUE</code></h3> +<h2 id="Examples">示例</h2> +<h3 id="Example:_Using_MIN_VALUE">例子:使用 <code>MIN_VALUE</code></h3> <p>下面的代码里两个数值相除。如果结果大于或等于 <code>MIN_VALUE</code>,则调用 <code>func1</code> 函数;否则,调用 <code>func2</code> 函数。</p> <pre class="brush:js">if (num1 / num2 >= Number.MIN_VALUE) { func1(); @@ -93,7 +93,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE </tbody> </table> </div> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li>{{jsxref("Number.MAX_VALUE")}}</li> </ul> |
