aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math
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
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')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/e/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html20
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/max/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/min/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/random/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/round/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html14
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html10
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html12
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html8
37 files changed, 212 insertions, 212 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
index 397ad9724b..e86e8064c2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html
@@ -9,24 +9,24 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/abs
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.abs</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mrow><mo stretchy="false">|</mo><mi>x</mi><mo stretchy="false">|</mo></mrow><mo>=</mo><mrow><mo>{</mo><mtable columnalign="left left"><mtr><mtd><mi>x</mi></mtd><mtd><mtext>if</mtext><mspace width="1em"></mspace><mi>x</mi><mo>≥</mo><mn>0</mn></mtd></mtr><mtr><mtd><mo>-</mo><mi>x</mi></mtd><mtd><mtext>if</mtext><mspace width="1em"></mspace><mi>x</mi><mo>&lt;</mo><mn>0</mn></mtd></mtr></mtable></mrow></mrow><annotation encoding="TeX">{\mathtt{\operatorname{Math.abs}(x)}} = {|x|} = \begin{cases} x &amp; \text{if} \quad x \geq 0 \\ -x &amp; \text{if} \quad x &lt; 0 \end{cases} </annotation></semantics></math></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.abs(<em>x</em>);</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>由于 Math.abs()</code> <code>是</code> <code>Math</code> 中的一个静态方法,你应该通过 <code>Math.abs()</code> <code>调用。</code>(Math 不是构造器)</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example:_Math.abs_behavior" name="Example:_Math.abs_behavior"><code>Math.abs()函数的行为</code></h3>
+<h3 id="Example:_Math.abs_behavior"><code>Math.abs()函数的行为</code></h3>
<p>传入一个非数字形式的字符串或者 undefined/empty 变量,将返回 <code>NaN</code>。传入 null 将返回 0。</p>
@@ -115,7 +115,7 @@ Math.abs(); // NaN</pre>
</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
index 032174b53e..b50eb69568 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/acos/index.html
@@ -5,23 +5,23 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/acos
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.acos()</strong></code> 返回一个数的反余弦值(单位为弧度),即:</p>
<p><math display="block"><semantics><mrow><mo>∀</mo><mi>x</mi><mo>∊</mo><mo stretchy="false">[</mo><mrow><mo>-</mo><mn>1</mn></mrow><mo>;</mo><mn>1</mn><mo stretchy="false">]</mo><mo>,</mo><mspace width="thickmathspace"></mspace><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.acos</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">arccos</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext> the unique </mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mo>∊</mo><mo stretchy="false">[</mo><mn>0</mn><mo>;</mo><mi>π</mi><mo stretchy="false">]</mo><mspace width="thinmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">cos</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x \in [{-1};1],\;\mathtt{\operatorname{Math.acos}(x)} = \arccos(x) = \text{ the unique } \; y \in [0; \pi] \, \text{such that} \; \cos(y) = x</annotation></semantics></math></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.acos(<em>x</em>) </pre>
-<h2 id="Parameters" name="Parameters">参数</h2>
+<h2 id="Parameters">参数</h2>
<dl>
<dt>
<code>x</code></dt>
<dd>
一个数值</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p><code>acos</code> 方法以 -1 到 1 的一个数为参数,返回一个 0 到 pi (弧度)的数值。如果传入的参数值超出了限定的范围,将返回 <code>NaN</code>。</p>
<p>由于 <code>acos</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.acos()</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.acos" name="Example:_Using_Math.acos">例子:使用 <code>Math.acos</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.acos">例子:使用 <code>Math.acos</code></h3>
<pre class="brush:js">Math.acos(-2); // NaN
Math.acos(-1); // 3.141592653589793
Math.acos(0); // 1.5707963267948966
@@ -103,7 +103,7 @@ Math.acos(2); // NaN
</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>
<li>{{jsxref("Math.asin()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
index 7e6017abbd..2386375e80 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/asin/index.html
@@ -5,23 +5,23 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/asin
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.asin()</strong></code> 方法返回一个数值的反正弦(单位为弧度),即:</p>
<p><math display="block"><semantics><mrow><mo>∀</mo><mi>x</mi><mo>∊</mo><mo stretchy="false">[</mo><mrow><mo>-</mo><mn>1</mn></mrow><mo>;</mo><mn>1</mn><mo stretchy="false">]</mo><mo>,</mo><mspace width="thickmathspace"></mspace><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.asin</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">arcsin</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext> the unique </mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mo>∊</mo><mrow><mo>[</mo><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac><mo>;</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><mo>]</mo></mrow><mspace width="thinmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">sin</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x \in [{-1};1],\;\mathtt{\operatorname{Math.asin}(x)} = \arcsin(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \sin(y) = x</annotation></semantics></math></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.asin(<em>x</em>)</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>asin</code> 方法接受 -1 到 1 之间的数值作为参数,返回一个介于 <math><semantics><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><annotation encoding="TeX">-\frac{\pi}{2}</annotation></semantics></math> 到 <math><semantics><mfrac><mi>π</mi><mn>2</mn></mfrac><annotation encoding="TeX">\frac{\pi}{2}</annotation></semantics></math> 弧度的数值。如果接受的参数值超出范围,则返回 <code>NaN</code>。</p>
<p>由于 <code>asin</code> 是 <code>Math</code> 的静态方法,所有应该像这样使用:<code>Math.asin()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.asin" name="Example:_Using_Math.asin">例子:使用 <code>Math.asin()</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.asin">例子:使用 <code>Math.asin()</code></h3>
<pre class="brush:js">Math.asin(-2); // NaN
Math.asin(-1); // -1.5707963267948966 (-pi/2)
Math.asin(0); // 0
@@ -102,7 +102,7 @@ Math.asin(2); // NaN</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>
<li>{{jsxref("Math.acos()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
index 460bd0de51..0bdf09d234 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html
@@ -5,23 +5,23 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/atan
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.atan()</strong></code> 函数返回一个数值的反正切(以弧度为单位),即:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.atan</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">arctan</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext> the unique </mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mo>∊</mo><mrow><mo>[</mo><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac><mo>;</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><mo>]</mo></mrow><mspace width="thinmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">tan</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\mathtt{\operatorname{Math.atan}(x)} = \arctan(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \tan(y) = x</annotation></semantics></math></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.atan(<em>x</em>)</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>atan</code> 返回一个 <math><semantics><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><annotation encoding="TeX">-\frac{\pi}{2}</annotation></semantics></math> 到 <math><semantics><mfrac><mi>π</mi><mn>2</mn></mfrac><annotation encoding="TeX">\frac{\pi}{2}</annotation></semantics></math> 弧度之间的数值。</p>
<p>由于 <code>atan</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.atan()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.atan" name="Example:_Using_Math.atan">例子:使用 <code>Math.atan</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.atan">例子:使用 <code>Math.atan</code></h3>
<pre class="brush:js">Math.atan(1); // 0.7853981633974483
Math.atan(0); // 0
</pre>
@@ -98,7 +98,7 @@ Math.atan(0); // 0
</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>
<li>{{jsxref("Math.acos()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
index 64064017c7..b4ded024ac 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan2/index.html
@@ -5,22 +5,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/atan2
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.atan2(</strong></code><code><strong>)</strong></code> 返回从原点(0,0)到(x,y)点的线段与x轴正方向之间的平面角度(弧度值),也就是Math.atan2(y,x)</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.atan2(<em>y</em>, <em>x</em>) </pre>
-<h2 id="Parameters" name="Parameters">参数</h2>
+<h2 id="Parameters">参数</h2>
<dl>
<dt><code>y, x</code></dt>
<dd>数值</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p><code>atan2</code> 方法返回一个 -pi 到 pi 之间的数值,表示点 (x, y) 对应的偏移角度。这是一个逆时针角度,以弧度为单位,正X轴和点 (x, y) 与原点连线 之间。注意此函数接受的参数:先传递 y 坐标,然后是 x 坐标。</p>
@@ -28,9 +28,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/atan2
<p>由于 <code>atan2</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.atan2()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.atan2" name="Example:_Using_Math.atan2">例子:使用 <code>Math.atan2</code></h3>
+<h3 id="Example_Using_Math.atan2">例子:使用 <code>Math.atan2</code></h3>
<pre class="brush:js">Math.atan2(90, 15) // 1.4056476493802699
Math.atan2(15, 90) // 0.16514867741462683
@@ -127,7 +127,7 @@ Math.atan2(15, 90) // 0.16514867741462683
</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
index 22f37c402a..506e303660 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/cbrt
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.cbrt()</strong></code> 函数返回任意数字的立方根.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.cbrt(<em>x</em>)</pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/cbrt
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>该方法为Math的静态方法,因此请直接通过Math.cbrt()方式调用.</p>
@@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/cbrt
<p>cbrt 是 "cube root" 的缩写, 意思是立方根.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<h3 id="使用_Math.cbrt">使用 Math.cbrt()</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
index 6112c6e45e..20139dec2f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html
@@ -5,16 +5,16 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/clz32
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.clz32() </strong></code>函数返回一个数字在转换成 32 无符号整形数字的二进制形式后, 开头的 0 的个数, 比如 <code>1000000</code> 转换成 32 位无符号整形数字的二进制形式后是 <code>00000000000011110100001001000000</code>, 开头的 0 的个数是 12 个, 则 <code>Math.clz32(1000000)</code> 返回 <code>12</code>.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.clz32 (x)
</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt>x</dt>
@@ -45,7 +45,7 @@ Math.clz32(true) // 31
Math.clz32(3.5) // 30
</pre>
-<h2 id="Compatibility" name="Compatibility">计算前导1的个数</h2>
+<h2 id="Compatibility">计算前导1的个数</h2>
<p>目前javascript尚未提供<code>Math.clon</code>函数来计算前导1的个数(之所以叫“clon”而非“clo”,是因为“clo”与“clz”太过相似,特别对那些母语不是英语的人来说),但是你可以通过将一个数取反并将其作为<code>Math.clz32</code>的参数来实现clon函数。其中的原理非常简单,因为对1取反是0,反之亦然,所以用<code>Math.clz32</code>计算前导0的个数就变成计算前导1的个数。</p>
@@ -122,7 +122,7 @@ function ctron(integer){ // 计算尾随1个数
var ctrz = countTrailsMethods.a;
var ctron = countTrailsMethods.b;</pre>
-<h2 id="Compatibility" name="Compatibility">Polyfill</h2>
+<h2 id="Compatibility">Polyfill</h2>
<p>这个polyfill效率最高。</p>
@@ -157,7 +157,7 @@ var ctron = countTrailsMethods.b;</pre>
<p>{{Compat("javascript.builtins.Math.clz32")}}</p>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
index 482f2fa09a..d0741e46a4 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/cos/index.html
@@ -5,22 +5,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/cos
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.cos()</strong></code> 函数返回一个数值的余弦值。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.cos(<em>x</em>)</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>cos</code> 方法返回一个 -1 到 1 之间的数值,表示角度(单位:弧度)的余弦值。</p>
<p>由于 <code>cos</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.cos()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.cos" name="Example:_Using_Math.cos">例子:使用 <code>Math.cos</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.cos">例子:使用 <code>Math.cos</code></h3>
<pre class="brush:js">Math.cos(0); // 1
Math.cos(1); // 0.5403023058681398
@@ -100,7 +100,7 @@ Math.cos(2 * Math.PI); // 1
</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
index 2a0afca6ab..adb71b9f29 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/e/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/E
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.E</strong></code> 属性表示自然对数的底数(或称为基数),e,约等于 2.718。</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.E</mi></mstyle><mo>=</mo><mi>e</mi><mo>≈</mo><mn>2.718</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.E}} = e \approx 2.718</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>E</code> 是 <code>Math</code> 对象的静态属性,所以应该像这样使用:<code>Math.E</code>,而不是作为你创建的 <code>Math</code> 实例对象的属性(<code>Math</code> 不是构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.E" name="Example:_Using_Math.E">例子:使用 <code>Math.E</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.E">例子:使用 <code>Math.E</code></h3>
<p>下面的函数返回 e:</p>
<pre class="brush:js">function getNapier() {
return Math.E
@@ -93,7 +93,7 @@ getNapier() // 2.718281828459045</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
index 0da94f62c2..14f5af47c3 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
@@ -5,21 +5,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.exp()</strong></code> 函数返回 <code>e<sup>x</sup></code>,<code>x</code> 表示参数,<code>e</code> 是<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/E">欧拉常数(Euler's constant)</a>,自然对数的底数。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.exp(<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>exp</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.exp()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.exp" name="Example:_Using_Math.exp">例子:使用 <code>Math.exp</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.exp">例子:使用 <code>Math.exp</code></h3>
<pre class="brush:js">Math.exp(-1); // 0.36787944117144233
Math.exp(0); // 1
Math.exp(1); // 2.718281828459045</pre>
@@ -96,7 +96,7 @@ Math.exp(1); // 2.718281828459045</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>
<li>{{jsxref("Math.E")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
index ff321fb664..0fd773ece9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
@@ -5,28 +5,28 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/expm1
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.expm1()</strong></code> 函数返回 <code>E<sup>x</sup> - 1</code>, 其中 <code>x</code> 是该函数的参数, <code>E</code> 是自然对数的底数 <code>2.718281828459045.</code></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.expm1(<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>参数 <code>x</code> 会被自动类型转换成 <code>number </code>类型.</code></p>
<p><code>expm1 是 "exponent minus 1" 的缩写.</code></p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.expm1(1) // 1.7182818284590453
Math.expm1(-38) // -1
@@ -112,7 +112,7 @@ Math.expm1("foo") // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
index 84f4f3b8b6..3f9deb45c0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
@@ -15,11 +15,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
<p>Note:  可以理解 <code><strong>Math.floor()</strong></code>为向下取整</p>
</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.floor(<em>x</em>) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -31,13 +31,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
</dt>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>floor</code> 是 <code>Math</code> 的一个静态方法,你总是应该像这样使用它 <code>Math.floor()</code>,而不是作为你创建的一个Math对象的一种方法(Math不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.floor" name="Example:_Using_Math.floor">例子:使用 <code>Math.floor</code></h3>
+<h3 id="Example_Using_Math.floor">例子:使用 <code>Math.floor</code></h3>
<pre class="brush:js">Math.floor( 45.95);
// 45
@@ -52,7 +52,7 @@ Math.floor(-45.95);
</pre>
-<h3 id="Example_Decimal_adjustment" name="Example:_Decimal_adjustment">例子:十进制调整</h3>
+<h3 id="Example_Decimal_adjustment">例子:十进制调整</h3>
<pre class="brush:js">// Closure
(function(){
@@ -210,7 +210,7 @@ Math.ceil10(-59, 1); // -50
</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
index f5118b4a22..b4790b6448 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
@@ -5,26 +5,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/fround
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><strong><code>Math.fround()</code></strong> 可以将任意的数字转换为离它最近的<a class="external" href="https://en.wikipedia.org/wiki/Single-precision_floating-point_format" title="link to the wikipedia page on single-precision floating-point format">单精度浮点数</a>形式的数字。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="brush: js"><code>Math.fround(<var>doubleFloat</var>)</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>doubleFloat</code></dt>
<dd>一个 {{jsxref("Number")}}。若参数为非数字类型,则会被转投成数字。无法转换时,设置成{{jsxref("NaN")}}。</dd>
</dl>
-<h3 id="Parameters" name="Parameters">返回值</h3>
+<h3 id="Parameters">返回值</h3>
<p>指定数字最接近的<a href="https://en.wikipedia.org/wiki/Single-precision_floating-point_format">32位单精度</a>浮点数表示。</p>
-<h2 id="Examples" name="Examples">描述</h2>
+<h2 id="Examples">描述</h2>
<p>JavaScript 内部使用64位的双浮点数字,支持很高的精度。但是,有时你需要用32位浮点数字,比如你从一个{{jsxref("Float32Array")}} 读取值时。这时会产生混乱:检查一个64位浮点数和一个32位浮点数是否相等会失败,即使二个数字几乎一模一样。</p>
@@ -32,7 +32,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/fround
<p>因为<code>fround()</code> 是<code>Math</code> 的静态方法,你必须通过 <code>Math.fround()</code> 来使用,而不是调用你创建的<code>Math</code> 对象的一个实例方法(<code>Math</code>不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<h3 id="使用_Math.fround()">使用 Math.fround()</h3>
@@ -70,7 +70,7 @@ function equal(v1, v2) {
equal(0.1 + 0.2, 0.3); //true
</pre>
-<h2 id="Polyfill" name="Polyfill">Polyfill</h2>
+<h2 id="Polyfill">Polyfill</h2>
<p>下面的函数可以模拟这个 API,前提是浏览器必须已经支持 {{jsxref("Float32Array")}}:</p>
@@ -80,7 +80,7 @@ equal(0.1 + 0.2, 0.3); //true
};
})(new Float32Array(1));</pre>
-<h2 id="Specifications" name="Specifications">规范</h2>
+<h2 id="Specifications">规范</h2>
<table class="standard-table">
<tbody>
@@ -95,7 +95,7 @@ equal(0.1 + 0.2, 0.3); //true
</tbody>
</table>
-<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="Browser_compatibility">浏览器兼容性</h2>
<div>{{CompatibilityTable}}</div>
@@ -147,7 +147,7 @@ equal(0.1 + 0.2, 0.3); //true
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.round()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html
index dc368fddb6..844e2b0895 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html
@@ -17,11 +17,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.hypot([<em>value1</em>[,<em>value2</em>, ...]]) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>value1, value2, ...</code></dt>
@@ -32,7 +32,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot
<p>将所提供的参数求平方和后开平方根。如果有参数不能转换为数字,则返回 {{jsxref("NaN")}}。</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>计算直角三角形的斜边,或复数的幅值时可以使用函数 <code>Math.sqrt(v1*v1 + v2*v2)</code> ,其中 v1 和 v2 是三角形的两个直角边或复数的实部和虚部。如果想计算更多维度,那么只需要在后面添加更多的数的平方就可以了,比如 <code>Math.sqrt(v1*v1 + v2*v2 + v3*v3 + v4*v4)</code>。</p>
@@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot
<p>如果只传入一个参数,  <code>Math.hypot(x)</code> 等同于 <code>Math.abs(x)</code>.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<h3 id="Using_Math.hypot">Using <code>Math.hypot()</code></h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
index a3daf8f633..42c9565c28 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/imul/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/imul
<pre class="syntaxbox"><code>var<em> product</em> = Math.imul(a, b)</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>a</code></dt>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
index a4eba0051e..763340918a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln10/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/LN10
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.LN10</strong></code> 属性表示 10 的自然对数,约为 2.302:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.LN10</mi></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">ln</mo><mo stretchy="false">(</mo><mn>10</mn><mo stretchy="false">)</mo><mo>≈</mo><mn>2.302</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.LN10}} = \ln(10) \approx 2.302</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>LN10</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.LN10</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.LN10" name="Example:_Using_Math.LN10">例子:使用 <code>Math.LN10</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.LN10">例子:使用 <code>Math.LN10</code></h3>
<p>下面的函数返回 10 的自然对数:</p>
<pre class="brush:js">function getNatLog10() {
return Math.LN10
@@ -93,7 +93,7 @@ getNatLog10() // 2.302585092994046</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
index b8d7dd049e..f1d8fd9c23 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/ln2/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/LN2
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.LN2</strong></code> 属性表示 2 的自然对数,约为 0.693:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.LN2</mi></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">ln</mo><mo stretchy="false">(</mo><mn>2</mn><mo stretchy="false">)</mo><mo>≈</mo><mn>0.693</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.LN2}} = \ln(2) \approx 0.693</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>LN2</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.LN2</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.LN2" name="Example:_Using_Math.LN2">例子:使用 <code>Math.LN2</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.LN2">例子:使用 <code>Math.LN2</code></h3>
<p>下面的函数返回 2 的自然对数:</p>
<pre class="brush:js">function getNatLog2() {
return Math.LN2
@@ -93,7 +93,7 @@ getNatLog2() // 0.6931471805599453</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
index 5be95016a8..fc1a647ccc 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
@@ -5,24 +5,24 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log
---
<p>{{JSRef("Global_Objects", "Math")}}</p>
-<h2 name="Summary">概述</h2>
+<h2>概述</h2>
<p><code><strong>Math.log()</strong></code> 函数返回一个数的自然对数,即:</p>
<p><math><semantics><mrow><mo>∀</mo><mi>x</mi><mo>&gt;</mo><mn>0</mn><mo>,</mo><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.log</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">ln</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext>the unique</mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mspace width="thickmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><msup><mi>e</mi><mi>y</mi></msup><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x &gt; 0, \mathtt{\operatorname{Math.log}(x)} = \ln(x) = \text{the unique} \; y \; \text{such that} \; e^y = x</annotation></semantics></math></p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.log(<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>NaN</code>。</p>
@@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log
<h2 id="示例">示例</h2>
-<h3 id="Example:_Using_Math.log" name="Example:_Using_Math.log">例子1:使用<code>Math.log</code></h3>
+<h3 id="Example:_Using_Math.log">例子1:使用<code>Math.log</code></h3>
<p>下面的函数返回指定变量的自然对数:</p>
@@ -128,7 +128,7 @@ Math.log(10); // 2.302585092994046</pre>
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<p></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
index 80dc91b6ca..1f6d67437a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10/index.html
@@ -7,26 +7,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log10
<div>{{JSRef("Global_Objects", "Math")}}</div>
</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.log10()</strong></code> 函数返回一个数字以 10 为底的对数.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.log10(<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>如果传入的参数小于 0, 则返回 NaN.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.log10(10) // 1
Math.log10(100) // 2
@@ -106,7 +106,7 @@ Math.log10("foo")// NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
index 1e5f1ae035..43e10e9ed5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log10e/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/LOG10E
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.LOG10E</strong></code> 属性表示以 10 为底数,e 的对数,约为 0.434:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.LOG10E</mi></mstyle><mo>=</mo><msub><mo lspace="0em" rspace="0em">log</mo><mn>10</mn></msub><mo stretchy="false">(</mo><mi>e</mi><mo stretchy="false">)</mo><mo>≈</mo><mn>0.434</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.LOG10E}} = \log_10(e) \approx 0.434</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>LOG10E</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.LOG10E</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.LOG10E" name="Example:_Using_Math.LOG10E">例子:使用 <code>Math.LOG10E</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.LOG10E">例子:使用 <code>Math.LOG10E</code></h3>
<p>下面的函数返回以 10为底数,E的对数:</p>
<pre class="brush:js">function getLog10e() {
return Math.LOG10E
@@ -93,7 +93,7 @@ getLog10e() // 0.4342944819032518</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
index e80f580580..139283bc81 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html
@@ -7,22 +7,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log1p
<div>{{JSRef("Global_Objects", "Math")}}</div>
</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.log1p()</strong></code> 函数返回一个数字加1后的自然对数 (底为 <code>E</code>), 既<code>log(x+1)</code>.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.log1p(<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> -1</code>, 则返回 <code>NaN.</code></p>
@@ -109,7 +109,7 @@ Math.log1p("foo") // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
index 78f1c43b93..1811e1b183 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
@@ -7,26 +7,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log2
<div>{{JSRef("Global_Objects", "Math")}}</div>
</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.log2()</strong></code> 函数返回一个数字以 2 为底的对数.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.log2(<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>如果传入的参数小于 0, 则返回 <code>NaN</code>.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.log2(2) // 1
Math.log2(1024) // 10
@@ -106,7 +106,7 @@ Math.log2("foo") // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
index 9ede75f09c..79f6800f6e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2e/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/LOG2E
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.LOG2E</strong></code> 属性表示以 2 为底数,e 的对数,约为 1.442:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.LOG2E</mi></mstyle><mo>=</mo><msub><mo lspace="0em" rspace="0em">log</mo><mn>2</mn></msub><mo stretchy="false">(</mo><mi>e</mi><mo stretchy="false">)</mo><mo>≈</mo><mn>1.442</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.LOG2E}} = \log_2(e) \approx 1.442</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>LOG2E</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.LOG2E</code>,而不是作为你创建的 <code>Math</code> 对象的属性(<code>Math</code> 不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.LOG2E" name="Example:_Using_Math.LOG2E">例子:使用 <code>Math.LOG2E</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.LOG2E">例子:使用 <code>Math.LOG2E</code></h3>
<p>下面的函数返回以 2 为底数,E 的对数:</p>
<pre class="brush:js">function getLog2e() {
return Math.LOG2E
@@ -93,7 +93,7 @@ getLog2e() // 1.4426950408889634</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/max/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/max/index.html
index 593776318e..73e3914dce 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/max/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/max/index.html
@@ -12,11 +12,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/max
<p>{{EmbedInteractiveExample("pages/js/math-max.html")}}</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.max(<em>value1</em>[,<em>value2</em>, ...]) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>value1, value2, ...</code></dt>
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/max
<p>返回给定的一组数字中的最大值。如果给定的参数中至少有一个参数无法被转换成数字,则会返回 {{jsxref("NaN")}}。</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>max</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.max()</code>,而不是创建的 <code>Math</code> 实例的方法(<code>Math</code> 不是构造函数)。</p>
@@ -35,9 +35,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/max
<p>如果有任一参数不能被转换为数值,则结果为 {{jsxref("NaN")}}。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.max" name="Example:_Using_Math.max">使用 <code>Math.max()</code></h3>
+<h3 id="Example_Using_Math.max">使用 <code>Math.max()</code></h3>
<pre>Math.max(10, 20); // 20
Math.max(-10, -20); // -10
@@ -92,7 +92,7 @@ var max = Math.max(...arr);
<p>{{Compat("javascript.builtins.Math.max")}}</p>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.min()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
index a5a5a6defc..068ffd7bd6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/min/index.html
@@ -13,11 +13,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/min
<p><code><strong>Math.min()</strong></code> 返回零个或更多个数值的最小值。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.min([<em>value1</em>[,<em>value2</em>, ...]]) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>value1, value2, ...</code></dt>
@@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/min
<p>给定数值中最小的数。如果任一参数不能转换为数值,则返回{{jsxref("NaN")}}。</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>min</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.min()</code>,而不是作为你创建的 <code>Math</code> 实例的方法(Math 不是构造函数)。</p>
@@ -36,9 +36,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/min
<p>如果有任一参数不能被转换为数值,结果为 {{jsxref("NaN")}}。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example:_Using_Math.min" name="Example:_Using_Math.min">使用 <code>Math.min()</code></h3>
+<h3 id="Example:_Using_Math.min">使用 <code>Math.min()</code></h3>
<p>下例找出 x 和 y 的最小值,并把它赋值给 z:</p>
@@ -46,7 +46,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/min
var z = Math.min(x, y);
</pre>
-<h3 id="Example.3A_Clipping_a_value_with_Math.min" name="Example.3A_Clipping_a_value_with_Math.min">使用 <code>Math.min()</code> 裁剪值(Clipping a value)</h3>
+<h3 id="Example.3A_Clipping_a_value_with_Math.min">使用 <code>Math.min()</code> 裁剪值(Clipping a value)</h3>
<p><code>Math.min</code> 经常用于裁剪一个值,以便使其总是小于或等于某个边界值。例如:</p>
@@ -148,7 +148,7 @@ if (x &gt; boundary) {
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.max()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
index efc463d5b7..3fc466cb3b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.PI</strong></code> 表示一个圆的周长与直径的比例,约为 3.14159:</p>
@@ -13,13 +13,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
<div>{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>PI</code> 是 <code>Math</code> 的静态属性,所以应该像这样使用:<code>Math.PI</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example:_Using_PI" name="Example:_Using_PI">使用 <code>Math.PI</code></h3>
+<h3 id="Example:_Using_PI">使用 <code>Math.PI</code></h3>
<p>下面的函数使用 Math.PI 计算给定半径的圆周长:</p>
@@ -108,7 +108,7 @@ calculateCircumference(1); // 6.283185307179586</pre>
</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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
index 9138f6d635..7e9b8ba09e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
@@ -9,11 +9,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
<p>{{EmbedInteractiveExample("pages/js/math-pow.html")}}</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.pow(<em>base</em>, <em>exponent</em>) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>base</code></dt>
@@ -22,13 +22,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
<dd>指数</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>pow</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.pow()</code>,而不是作为你创建的 <code>Math</code> 对象的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.pow" name="Example:_Using_Math.pow">使用 <code>Math.pow</code></h3>
+<h3 id="Example_Using_Math.pow">使用 <code>Math.pow</code></h3>
<pre class="brush:js">function raisePower(x,y) {
return Math.pow(x,y)
@@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
<p>{{Compat("javascript.builtins.Math.pow")}}</p>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.cbrt()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
index 04602b2699..6924bb32c5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
@@ -19,15 +19,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random
<p><code>Math.random()</code> <em>不能</em>提供像密码一样安全的随机数字。不要使用它们来处理有关安全的事情。使用Web Crypto API 来代替, 和更精确的{{domxref("RandomSource.getRandomValues()", "window.crypto.getRandomValues()")}} 方法.</p>
</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.random()</code></pre>
-<h3 id="Parameters" name="Parameters">返回值</h3>
+<h3 id="Parameters">返回值</h3>
<p>一个浮点型伪随机数字,在<code>0</code>(包括0)和<code>1</code>(不包括)之间。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<p>请注意, 由于 JavaScript 中的数字是 IEEE 754 浮点数字,具有最近舍入( round-to-nearest-even)的行为, 因此以下函数的范围 (不包括<code>Math.random()</code> 本身) 并不准确。如果选择了非常大的边界 (2<sup>53</sup> 或更高), 在极罕见的情况下会计算通常-排除(usually-excluded)的上界。(注:round-to-nearest-even采用最近舍入的去偶数舍入的方式,对.5的舍入上,采用取偶数的方式)</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
index 409b9dbaa1..8cc263a27d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
@@ -10,11 +10,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/round
<p><code><strong>Math.round()</strong></code> 函数返回一个数字四舍五入后最接近的整数。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.round(<em>x</em>) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -26,13 +26,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/round
</dt>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>如果参数的小数部分大于 0.5,则舍入到相邻的绝对值更大的整数。 如果参数的小数部分小于 0.5,则舍入到相邻的绝对值更小的整数。如果参数的小数部分恰好等于0.5,则舍入到相邻的在正无穷(+∞)方向上的整数。<strong>注意,与很多其他语言中的<code>round()函数</code>不同,<code>Math.round()并不总是舍入到远离0的方向(尤其是在负数的小数部分恰好等于0.5的情况下)。</code></strong></p>
<p>因为 <code>round()</code> 是 <code>Math</code> 的静态方法,你应该直接使用 <code>Math.round()</code>,而不是作为你创建的 <code>Math</code> 对象的一个实例方法来使用(<code>Math</code>没有构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">x = Math.round(20.49); //20
x = Math.round(20.5); //21
@@ -40,7 +40,7 @@ x = Math.round(-20.5); //-20
x = Math.round(-20.51); //-21
</pre>
-<h3 id="Example:_Decimal_rounding" name="Example:_Decimal_rounding">小数舍入</h3>
+<h3 id="Example:_Decimal_rounding">小数舍入</h3>
<pre class="brush: js">// 闭包
(function(){
@@ -203,7 +203,7 @@ round(1.005, 2); //1.01
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<p></p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
index 590089e3c1..3501c97fd8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sign/index.html
@@ -13,18 +13,18 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sign
<p><strong><code>Math.sign()</code></strong> 函数返回一个数字的符号, 指示数字是正数,负数还是零。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.sign(<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>sign </code>是 <code>Math </code>的一个静态方法,所以你应该使用 Math.sign() ,而不是作为你创建的一个Math对象的一种方法 (Math不是一个构造函数)。</p>
@@ -34,7 +34,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sign
<p>传入该函数的参数会被<strong>隐式转换</strong>成数字类型。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<h3 id="使用Math.sign()">使用Math.sign()</h3>
@@ -48,7 +48,7 @@ Math.sign("foo"); // NaN
Math.sign(); // NaN
</pre>
-<h2 id="Compatibility" name="Compatibility">Polyfill</h2>
+<h2 id="Compatibility">Polyfill</h2>
<pre class="brush: js language-js">function sign(x) {
x = +x ;// convert to a number
@@ -145,7 +145,7 @@ Math.sign(); // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html
index fffb0dc1a1..866091c8b8 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sin/index.html
@@ -5,30 +5,30 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sin
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.sin()</strong></code> 函数返回一个数值的正弦值。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.sin(<em>x</em>)</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>sin</code> 方法返回一个 -1 到 1 之间的数值,表示给定角度(单位:弧度)的正弦值。</p>
<p>由于 <code>sin</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.sin()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.sin" name="Example:_Using_Math.sin">例子:使用 <code>Math.sin</code></h3>
+<h3 id="Example_Using_Math.sin">例子:使用 <code>Math.sin</code></h3>
<pre class="brush:js">Math.sin(0); // 0
Math.sin(1); // 0.8414709848078965
@@ -68,7 +68,7 @@ Math.sin(Math.PI / 2); // 1</pre>
<div></div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.acos()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
index 7ba28b5f3d..899783ca75 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sinh/index.html
@@ -5,28 +5,28 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sinh
---
<div>{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p> <code><strong>Math.sinh()</strong></code> 函数返回一个数字(单位为角度)的双曲正弦值.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.sinh(<em>x</em>)</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>双曲正弦的图像如下:</p>
<p><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/1/17/Sinh.png" style="height: 300px; width: 300px;"></p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.sinh(0) // 0
Math.sinh(1) // 1.1752011936438014
@@ -111,7 +111,7 @@ Math.sinh("foo") // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Math.acos()")}}</li>
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
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
index 2c3c139abe..413f66b993 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
@@ -5,15 +5,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.SQRT1_2</strong></code> 属性表示 1/2 的平方根,约为 0.707:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mi>Math.SQRT1_2</mi></mstyle><mo>=</mo><msqrt><mfrac><mn>1</mn><mn>2</mn></mfrac></msqrt><mo>=</mo><mfrac><mn>1</mn><msqrt><mn>2</mn></msqrt></mfrac><mo>≈</mo><mn>0.707</mn></mrow><annotation encoding="TeX">\mathtt{\mi{Math.SQRT1_2}} = \sqrt{\frac{1}{2}} = \frac{1}{\sqrt{2}} \approx 0.707</annotation></semantics></math></p>
<div>
{{js_property_attributes(0,0,0)}}</div>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>SQRT1_2</code> 是 <code>Math</code> 对象的静态属性,所以应该像这样使用:<code>Math.SQRT1_2</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_SQRT1_2" name="Example:_Using_SQRT1_2">例子:使用 <code>SQRT1_2</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_SQRT1_2">例子:使用 <code>SQRT1_2</code></h3>
<p>下面的函数返回 1/2 的平方根:</p>
<pre class="brush:js">function getRoot1_2() {
return Math.SQRT1_2
@@ -94,7 +94,7 @@ getRoot1_2() // 0.7071067811865476</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>
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>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
index 49e0f3c7c2..3ecf39169a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/tan/index.html
@@ -5,22 +5,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/tan
---
<div>
{{JSRef("Global_Objects", "Math")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.tan()</strong></code> 方法返回一个数值的正切值。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.tan(<em>x</em>)</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>tan</code> 方法返回一个数值,表示一个角的正切值。</p>
<p>由于 <code>tan</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用 <code>Math.tan()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
-<h2 id="Examples" name="Examples">示例</h2>
-<h3 id="Example:_Using_Math.tan" name="Example:_Using_Math.tan">例子:使用 <code>Math.tan</code></h3>
+<h2 id="Examples">示例</h2>
+<h3 id="Example:_Using_Math.tan">例子:使用 <code>Math.tan</code></h3>
<p>下面的函数返回变量 <code>x</code> 的正切值:</p>
<pre class="brush:js">function getTan(x) {
return Math.tan(x);
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
index 485a96e75d..3568f3bd78 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html
@@ -12,11 +12,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/trunc
<p><code><strong>Math.trunc()</strong></code> 方法会将数字的小数部分去掉,只保留整数部分。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox">Math.trunc(<em>value</em>)</pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>value</code></dt>
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/trunc
<p>给定数字的整数部分</p>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>不像 <code>Math</code> 的其他三个方法: {{jsxref("Math.floor()")}}、{{jsxref("Math.ceil()")}}、{{jsxref("Math.round()")}} ,<code>Math.trunc()</code> 的执行逻辑很简单,仅仅是<strong>删除</strong>掉数字的小数部分和小数点,不管参数是正数还是负数。</p>
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/trunc
<p>因为 <code>trunc()</code> 是 <code>Math</code> 对象的静态方法,你必须用 <code>Math.trunc()</code> 来使用,而不是调用你创建的 <code>Math</code> 对象的一个实例方法(<code>Math</code> 没有构造函数)</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.trunc(13.37) // 13
Math.trunc(42.84) // 42