aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
index e5693e9e07..5c85e43084 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html
@@ -11,11 +11,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox language-html">dateObj.setFullYear(yearValue[, monthValue[, dayValue]])</pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>yearValue</code></dt>
@@ -26,15 +26,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear
<dd>一个1到31之间的整数值,表示月份中的第几天。如果你指定了 <code>dayValue</code> 参数,就必须同时指定 <code>monthValue</code>。</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>如果没有指定 <code>monthValue</code> 和<code>dayValue</code> 参数,将会使用 <code>getMonth</code> 和<code>getDate</code> 方法的返回值。</p>
<p>如果有一个参数超出了合理的范围,<code>setFullYear</code> 方法会更新其他参数值,日期对象的日期值也会被相应更新。 例如,为 <code>monthValue </code>指定 15, 则年份会加1,月份值会为3。</p>
-<h2 id="Examples" name="Examples">例子</h2>
+<h2 id="Examples">例子</h2>
-<h3 id="Example:_Using_setFullYear" name="Example:_Using_setFullYear">例子:使用<code>setFullYear</code>方法</h3>
+<h3 id="Example:_Using_setFullYear">例子:使用<code>setFullYear</code>方法</h3>
<pre class="brush:js language-js">var theBigDay = new Date();
theBigDay.setFullYear(1997);</pre>
@@ -70,7 +70,7 @@ theBigDay.setFullYear(1997);</pre>
<p>{{Compat("javascript.builtins.Date.setFullYear")}}</p>
-<h2 id="See_Also" name="See_Also">相关链接</h2>
+<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Date.prototype.getUTCFullYear()")}}</li>