diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html index fecc2f00a1..e7df1fc3d7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/setmonth/index.html @@ -9,15 +9,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMonth <div>{{EmbedInteractiveExample("pages/js/date-setmonth.html")}}</div> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><var>dateObj</var>.setMonth(<em>monthValue</em>[, <em>dayValue</em>])</pre> -<h3 id="Versions_prior_to_JavaScript_1.3" name="Versions_prior_to_JavaScript_1.3">JavaScript 1.3版本之前</h3> +<h3 id="Versions_prior_to_JavaScript_1.3">JavaScript 1.3版本之前</h3> <pre class="syntaxbox"><var>dateObj</var>.setMonth(<em>monthValue</em>)</pre> -<h3 id="Parameter" name="Parameter">参数</h3> +<h3 id="Parameter">参数</h3> <dl> <dt><code>monthValue</code></dt> @@ -31,15 +31,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMonth <dd>基于 1 January 1970 00:00:00 UTC 开始计算的毫秒数</dd> </dl> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>如果不指定 <code>dayValue</code> 参数,就会使用 {{jsxref("Date.getDate", "getDate")}} 方法的返回值。</p> <p>如果有一个指定的参数超出了合理范围,<code>setMonth</code> 会相应地更新日期对象中的日期信息。例如,为 <code>monthValue</code> 指定 15,则年份会加 1,月份将会使用 3。</p> -<h2 id="Examples" name="Examples">例子</h2> +<h2 id="Examples">例子</h2> -<h3 id="Example_Using_setMonth" name="Example:_Using_setMonth">例子:使用<code>setMonth方法</code></h3> +<h3 id="Example_Using_setMonth">例子:使用<code>setMonth方法</code></h3> <pre class="brush: js">var theBigDay = new Date(); theBigDay.setMonth(6); @@ -76,7 +76,7 @@ theBigDay.setMonth(6); <p>{{Compat("javascript.builtins.Date.setMonth")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Date.prototype.getMonth()")}}</li> |
