aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html
index b22a9cfbf0..b61a894262 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/setseconds/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setSeconds
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><var>dateObj</var>.setSeconds(<em>secondsValue</em>[, <em>msValue</em>])</pre>
@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setSeconds
<pre class="syntaxbox"><var>dateObj</var>.setSeconds(<em>secondsValue</em>)</pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>secondsValue</code></dt>
@@ -28,15 +28,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setSeconds
<dd>一个 0 到 999 的数字,表示微秒数。</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>如果没有指定 <code>msValue</code> 参数,就会使用 {{jsxref("Date.getMilliseconds", "getMilliseconds()")}} 方法的返回值。</p>
<p>如果一个参数超出了合理范围, <code>setSeconds</code> 方法会相应地更新日期对象的时间信息。例如,为 <code>secondsValue</code> 指定 100,则日期对象的分钟数会相应地加 1,秒数将会使用 40。</p>
-<h2 id="Examples" name="Examples">例子</h2>
+<h2 id="Examples">例子</h2>
-<h3 id="Example:_Using_setSeconds" name="Example:_Using_setSeconds">例子:使用<code>setSeconds方法</code></h3>
+<h3 id="Example:_Using_setSeconds">例子:使用<code>setSeconds方法</code></h3>
<pre class="brush:js">var theBigDay = new Date();
theBigDay.setSeconds(30)
@@ -73,7 +73,7 @@ theBigDay.setSeconds(30)
<p>{{Compat("javascript.builtins.Date.setSeconds")}}</p>
-<h2 id="See_Also" name="See_Also">相关链接</h2>
+<h2 id="See_Also">相关链接</h2>
<ul>
<li>{{jsxref("Date.prototype.getSeconds()")}}</li>