aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math/sqrt
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/math/sqrt
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/math/sqrt')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html
index badb08802a..320bb70e74 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html
@@ -11,26 +11,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sqrt
<p>{{EmbedInteractiveExample("pages/js/math-sqrt.html")}}</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.sqrt(<em>x</em>) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
<dd>一个数值</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>如果参数 <code>number</code> 为负值,则 <code>sqrt</code> 返回{{jsxref("NaN")}}。</p>
<p>由于 <code>sqrt</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.sqrt()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.sqrt" name="Example:_Using_Math.sqrt">使用 <code>Math.sqrt</code></h3>
+<h3 id="Example_Using_Math.sqrt">使用 <code>Math.sqrt</code></h3>
<pre><code>Math.sqrt(9); // 3
Math.sqrt(2); // 1.414213562373095