aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/number/tofixed
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:07 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitc40612041809fe289aba58aefa170bbe784aba1f (patch)
tree8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/number/tofixed
parent12a899ab8540bc84f56a0dc6491be80a48499d49 (diff)
downloadtranslated-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/number/tofixed')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
index fcf55b0517..95787ab74f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/number/tofixed/index.html
@@ -9,22 +9,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toFixed
<div>{{EmbedInteractiveExample("pages/js/number-tofixed.html")}}</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>numObj</em>.toFixed(<em>digits</em>)</code></pre>
-<h3 id="Parameter" name="Parameter">参数</h3>
+<h3 id="Parameter">参数</h3>
<dl>
<dt>digits</dt>
<dd>小数点后数字的个数;介于 0 到 20 (包括)之间,实现环境可能支持更大范围。如果忽略该参数,则默认为 0。</dd>
</dl>
-<h3 id="Returns" name="Returns">返回值</h3>
+<h3 id="Returns">返回值</h3>
<p>使用定点表示法表示给定数字的字符串。</p>
-<h3 id="Throws" name="Throws">抛出异常</h3>
+<h3 id="Throws">抛出异常</h3>
<dl>
<dt>{{jsxref("RangeError")}}</dt>
@@ -44,7 +44,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toFixed
<p><strong>Warning:</strong> 浮点数不能精确地用二进制表示所有小数。这可能会导致意外的结果,例如 <code>0.1 + 0.2 === 0.3</code> 返回 <code>false</code> .</p>
</div>
-<h2 id="Example" name="Example">示例</h2>
+<h2 id="Example">示例</h2>
<h3 id="使用_toFixed">使用 <code>toFixed</code></h3>