aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math/pi
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/pi')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html4
1 files changed, 2 insertions, 2 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 fcfc82fbd5..efc463d5b7 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
@@ -23,11 +23,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
<p>下面的函数使用 Math.PI 计算给定半径的圆周长:</p>
-<pre class="brush:js language-js"><code class="language-js">function calculateCircumference (radius) {
+<pre class="brush:js language-js">function calculateCircumference (radius) {
return 2 * Math.PI * radius;
}
-calculateCircumference(1); // 6.283185307179586</code></pre>
+calculateCircumference(1); // 6.283185307179586</pre>
<h2 id="规范">规范</h2>