From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../web/javascript/reference/global_objects/math/pi/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html') 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 ---
{{JSRef("Global_Objects", "Math")}}
-

概述

+

概述

Math.PI 表示一个圆的周长与直径的比例,约为 3.14159:

@@ -13,13 +13,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
{{js_property_attributes(0,0,0)}}
-

描述

+

描述

由于 PIMath 的静态属性,所以应该像这样使用:Math.PI,而不是作为你创建的 Math 实例的属性(Math 不是构造函数)。

-

示例

+

示例

-

使用 Math.PI

+

使用 Math.PI

下面的函数使用 Math.PI 计算给定半径的圆周长:

@@ -108,7 +108,7 @@ calculateCircumference(1); // 6.283185307179586 -

相关链接

+

相关链接