diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html index 62d35dd713..2046e96d75 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/gethours/index.html @@ -15,17 +15,17 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getHours <pre class="syntaxbox language-html"><var>dateObj</var>.getHours()</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>getHours</code>返回一个0 到 23之间的整数值。</p> -<h2 id="Examples" name="Examples">例子</h2> +<h2 id="Examples">例子</h2> -<h3 id="Example:_Using_getHours" name="Example:_Using_getHours">例子:使用<code>getHours</code>方法</h3> +<h3 id="Example:_Using_getHours">例子:使用<code>getHours</code>方法</h3> <p>下面第二条语句,基于日期对象 <code>Xmas95 </code>的值,把 23 赋值给了变量 <code>hours。</code></p> @@ -65,7 +65,7 @@ alert(hours); // 23</pre> <p>{{Compat("javascript.builtins.Date.getHours")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Date.prototype.getUTCHours()")}}</li> |
