aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math/floor
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/math/floor
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/math/floor')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
index 84f4f3b8b6..3f9deb45c0 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html
@@ -15,11 +15,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
<p>Note:  可以理解 <code><strong>Math.floor()</strong></code>为向下取整</p>
</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.floor(<em>x</em>) </code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -31,13 +31,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
</dt>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>由于 <code>floor</code> 是 <code>Math</code> 的一个静态方法,你总是应该像这样使用它 <code>Math.floor()</code>,而不是作为你创建的一个Math对象的一种方法(Math不是一个构造函数)。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example_Using_Math.floor" name="Example:_Using_Math.floor">例子:使用 <code>Math.floor</code></h3>
+<h3 id="Example_Using_Math.floor">例子:使用 <code>Math.floor</code></h3>
<pre class="brush:js">Math.floor( 45.95);
// 45
@@ -52,7 +52,7 @@ Math.floor(-45.95);
</pre>
-<h3 id="Example_Decimal_adjustment" name="Example:_Decimal_adjustment">例子:十进制调整</h3>
+<h3 id="Example_Decimal_adjustment">例子:十进制调整</h3>
<pre class="brush:js">// Closure
(function(){
@@ -210,7 +210,7 @@ Math.ceil10(-59, 1); // -50
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>