diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/getfullyear/index.html | 10 |
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> |
