diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-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/pi/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
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> |