diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/date/setutcdate | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2 translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip |
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setutcdate')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/setutcdate/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setutcdate/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setutcdate/index.html index d0f72b4a68..128188f71f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/setutcdate/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/setutcdate/index.html @@ -11,24 +11,24 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setUTCDate -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code><var>dateObj</var>.setUTCDate(<var>dayValue</var>)</code></pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <dl> <dt><code>dayValue</code></dt> <dd>一个1-31的整形数字,用来指定日期。</dd> </dl> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>如果你指定的参数超出了范围,setUTCDate()会尝试更新对应的{{jsxref("Global_Objects/Date", "Date")}} 中的日期信息。例如,如果你使用了40来作为参数,但是{{jsxref("Global_Objects/Date", "Date")}} 中存储的月份为6月,那么日期将被改写为10且月份被增到7月。</p> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> -<h3 id="Example:_Using_setUTCDate" name="Example:_Using_setUTCDate">使用Using <code>setUTCDate()</code></h3> +<h3 id="Example:_Using_setUTCDate">使用Using <code>setUTCDate()</code></h3> <pre class="brush: js">var theBigDay = new Date(); theBigDay.setUTCDate(20); @@ -67,7 +67,7 @@ theBigDay.setUTCDate(20); <p>{{Compat("javascript.builtins.Date.setUTCDate")}}</p> </div> -<h2 id="See_also" name="See_also">相关内容</h2> +<h2 id="See_also">相关内容</h2> <ul> <li>{{jsxref("Date.prototype.getUTCDate()")}}</li> |