diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/math/cbrt/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 506e303660..4df408bf28 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 @@ -54,7 +54,7 @@ Math.cbrt(2); // 1.2599210498948734</pre> <p>为了与旧版浏览器兼容, 可使用下方函数模拟cbrt():</p> -<pre class="brush: js" dir="rtl">if (!Math.cbrt) { +<pre class="brush: js">if (!Math.cbrt) { Math.cbrt = function(x) { var y = Math.pow(Math.abs(x), 1/3); return x < 0 ? -y : y; |