diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html index 8eb81b8572..2c299fde7e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html @@ -4,12 +4,12 @@ slug: Web/JavaScript/Reference/Global_Objects/Math/SQRT2 translation_of: Web/JavaScript/Reference/Global_Objects/Math/SQRT2 --- <p>{{JSRef("Global_Objects", "Math")}}</p> -<h2 id="Summary" name="Summary">概述</h2> +<h2 id="Summary">概述</h2> <p><code><strong>Math.SQRT2</strong></code> 属性表示 2 的平方根,约为 1.414:</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>由于 <code>SQRT2</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.SQRT2</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是构造函数)。</p> -<h2 id="Examples" name="Examples">示例</h2> -<h3 id="Example:_Using_Math.SQRT2" name="Example:_Using_Math.SQRT2">例子:使用 <code>Math.SQRT2</code></h3> +<h2 id="Examples">示例</h2> +<h3 id="Example:_Using_Math.SQRT2">例子:使用 <code>Math.SQRT2</code></h3> <p>下面的函数返回 2 的平方根:</p> <pre class="brush:js">function getRoot2() { return Math.SQRT2; @@ -89,7 +89,7 @@ getRoot2(); // 1.4142135623730951</pre> </tbody> </table> </div> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li> </ul> |