diff options
| author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:13:18 +0800 |
|---|---|---|
| committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
| commit | 8ccfa93045a6c119303566370999f59a0aae3b25 (patch) | |
| tree | 972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/date | |
| parent | 3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff) | |
| download | translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2 translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip | |
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date')
3 files changed, 1 insertions, 13 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/index.html index f2b08d51d5..d7dd9f80b5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/index.html @@ -41,10 +41,7 @@ new Date(<var>year</var>, <var>monthIndex</var> [, <var>day</var> [, <var>hours< <dl> <dt><code>value</code></dt> <dd>一个 Unix 时间戳(<a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_16">Unix Time Stamp</a>),它是一个整数值,表示自1970年1月1日00:00:00 UTC(the Unix epoch)以来的毫秒数,忽略了闰秒。请注意大多数 Unix 时间戳功能仅精确到最接近的秒。</dd> - <dt> - <h4 id="时间戳字符串">时间戳字符串</h4> - </dt> - <dt><code>dateString</code></dt> + <dt><h4 id="时间戳字符串">时间戳字符串</h4><code>dateString</code></dt> <dd>表示日期的字符串值。该字符串应该能被 {{jsxref("Date.parse()")}} 正确方法识别(即符合 <a href="http://tools.ietf.org/html/rfc2822#page-14">IETF-compliant RFC 2822 timestamps</a> 或 <a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15">version of ISO8601</a>)。 <div class="note"> <p><strong>注意:</strong> 由于浏览器之间的差异与不一致性,强烈不推荐使用<code>Date</code>构造函数来解析日期字符串 (或使用与其等价的<code>Date.parse</code>)。对 RFC 2822 格式的日期仅有约定俗成的支持。 对 ISO 8601 格式的支持中,仅有日期的串 (例如 "1970-01-01") 会被处理为 UTC 而不是本地时间,与其他格式的串的处理不同。</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html index cb791e5a9c..761c087c10 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html @@ -24,14 +24,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMinutes <dl> <dt><code>minutesValue</code></dt> <dd>一个 0 到 59 的整数,表示分钟数。</dd> -</dl> - -<dl> <dt><code>secondsValue</code></dt> <dd>一个 0 到 59 的整数,表示秒数。如果指定了 <code>secondsValue</code> 参数,则必须同时指定 <code>minutesValue</code> 参数。</dd> -</dl> - -<dl> <dt><code>msValue</code></dt> <dd>一个 0 到 999 的数字,表示微秒数,如果指定了 <code>msValue</code> 参数,则必须同时指定 <code>minutesValue</code> 和<code>secondsValue</code> 参数。</dd> </dl> 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 e7df1fc3d7..47db4665a8 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 @@ -22,9 +22,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMonth <dl> <dt><code>monthValue</code></dt> <dd>介于 0 到 11 之间的整数(表示一月到十二月)。</dd> -</dl> - -<dl> <dt><code>dayValue</code></dt> <dd>从 1 到 31 之间的整数,表示月份中的第几天。0为上个月最后一天</dd> <dt>返回值!</dt> |
