diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getday')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html index 584180a8fb..d9c68dacb4 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/getday/index.html @@ -11,18 +11,18 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDay -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox language-html"><em>dateObj</em>.getDay() </pre> -<h3 id="Description" name="Description">返回值</h3> +<h3 id="Description">返回值</h3> <p>根据本地时间,返回一个0到6之间的整数值,代表星期几: 0 代表星期日, 1 代表星期一,2 代表星期二, 依次类推。</p> -<h2 id="Examples" name="Examples">例子</h2> +<h2 id="Examples">例子</h2> -<h3 id="Example_Using_getDay" name="Example:_Using_getDay">使用<code>getDay()</code></h3> +<h3 id="Example_Using_getDay">使用<code>getDay()</code></h3> <p>下面第二条语句,基于{{jsxref("Date")}}对象 <code>Xmas95</code> 的值,把 1 赋值给 <code>weekday</code>。也就是说1995年12月25日是星期一。</p> @@ -77,7 +77,7 @@ console.log(new Intl.DateTimeFormat('de-DE', options).format(Xmas95)); <p>{{Compat("javascript.builtins.Date.getDay")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Date.prototype.getUTCDate()")}}</li> |