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 | 563ca0a35e98678e2b7d5f154f31f496851e8d60 (patch) | |
tree | 7c99e7e037128217eca2080df671a742076c615b /files/zh-cn/web/javascript/reference/global_objects/parsefloat | |
parent | d7b2995cabe8d85a1827aa18bc270bdf739f3d13 (diff) | |
download | translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.gz translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.bz2 translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.zip |
remove code tag inside pre tag for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/parsefloat')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html index 21d4e0bfbd..f32b3bbf90 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/parsefloat/index.html @@ -55,13 +55,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseFloat <p>下面的例子都返回<strong>3.14</strong></p> -<pre class="brush: js line-numbers language-js"><code class="language-js">parseFloat(3.14); +<pre class="brush: js line-numbers language-js">parseFloat(3.14); parseFloat('3.14'); parseFloat(' 3.14 '); parseFloat('314e-2'); parseFloat('0.0314E+2'); parseFloat('3.14some non-digit characters'); -parseFloat({ toString: function() { return "3.14" } });</code></pre> +parseFloat({ toString: function() { return "3.14" } });</pre> <h3 id="parseFloat返回NaN"><code>parseFloat</code>返回NaN</h3> @@ -74,8 +74,8 @@ parseFloat({ toString: function() { return "3.14" } });</code></pre> <p>以下例子均返回 <code>900719925474099300</code>,当整数太大以至于不能被转换时将失去精度。</p> -<pre class="brush: js line-numbers language-js"><code class="language-js">parseFloat(900719925474099267n); -parseFloat('900719925474099267n');</code></pre> +<pre class="brush: js line-numbers language-js">parseFloat(900719925474099267n); +parseFloat('900719925474099267n');</pre> <h2 id="规范">规范</h2> |