aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/getfullyear
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/date/getfullyear
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/date/getfullyear')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html
index c29a10aa45..2791749e86 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html
@@ -19,12 +19,12 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getFullYear
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="brush: html">dateObj.getFullYear()
</pre>
-<h3 id="Description" name="Description">返回值</h3>
+<h3 id="Description">返回值</h3>
<p>根据当地时间,返回一个对应于给定日期的年份数字。</p>
@@ -32,9 +32,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getFullYear
<p><code>getFullYear()</code>返回的值是绝对数。 对于1000到9999之间的日期,<code>getFullYear()</code>返回一个四位数字,如1995。使用此函数确保在2000年后兼容。</p>
-<h2 id="Examples" name="Examples">例子</h2>
+<h2 id="Examples">例子</h2>
-<h3 id="Example:_Using_getFullYear" name="Example:_Using_getFullYear">使用<code>getFullYear()</code></h3>
+<h3 id="Example:_Using_getFullYear">使用<code>getFullYear()</code></h3>
<p>下面的例子将当前年份的四位数值分配给变量<code>year</code>。</p>
@@ -78,7 +78,7 @@ var year = today.getFullYear();
<p>{{Compat("javascript.builtins.Date.getFullYear")}}</p>
-<h2 id="See_Also" name="See_Also">相关链接</h2>
+<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Date.prototype.getUTCFullYear()")}}</li>