diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getmonth')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html index 63a953f263..ce008a4ba0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html @@ -18,21 +18,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox language-html">dateObj.getMonth()</pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <p>无</p> -<h3 id="Description" name="Description">返回值</h3> +<h3 id="Description">返回值</h3> <p><code>getMonth</code>返回一个0 到 11的整数值: 0 代表一月份,1 代表二月份, 2 代表三月份,依次类推。</p> -<h2 id="Examples" name="Examples">例子</h2> +<h2 id="Examples">例子</h2> -<h3 id="Example:_Using_getMonth" name="Example:_Using_getMonth">使用 <code>getMonth()</code></h3> +<h3 id="Example:_Using_getMonth">使用 <code>getMonth()</code></h3> <p>下面第二条语句,基于 {{jsxref("Date")}} 对象 Xmas95 的值,把11赋值给变量 <code>month。</code></p> @@ -79,7 +79,7 @@ console.log(month); // 11</pre> <p>{{Compat("javascript.builtins.Date.getMonth")}}</p> </div> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Date.prototype.getUTCMonth()")}}</li> |
