diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html index 2a441189e5..2b61fccc35 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/valueof/index.html @@ -16,15 +16,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/valueOf <div>{{EmbedInteractiveExample("pages/js/date-valueof.html")}}</div> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code><var>dateObj</var>.valueOf()</code></pre> -<h3 id="Parameters" name="Parameters">返回值</h3> +<h3 id="Parameters">返回值</h3> <p>从1970年1月1日0时0分0秒(UTC,即协调世界时)到该日期的毫秒数。</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>valueOf</code> 方法返回以数值格式表示的一个 <code>Date</code> 对象的原始值,从1970年1月1日0时0分0秒(UTC,即协调世界时)到该日期对象所代表时间的毫秒数。</p> @@ -32,9 +32,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/valueOf <p>该方法通常在 JavaScript 内部被调用,而不是在代码中显式调用。</p> -<h2 id="Examples" name="Examples">例子</h2> +<h2 id="Examples">例子</h2> -<h3 id="Example:_Using_valueOf" name="Example:_Using_valueOf">使用 <code>valueOf()</code></h3> +<h3 id="Example:_Using_valueOf">使用 <code>valueOf()</code></h3> <pre class="brush:js">var x = new Date(56, 6, 17); var myVar = x.valueOf(); // assigns -424713600000 to myVar @@ -76,7 +76,7 @@ var myVar = x.valueOf(); // assigns -424713600000 to myVar <p>{{Compat("javascript.builtins.Date.valueOf")}}</p> -<h2 id="See_Also" name="See_Also">相关链接</h2> +<h2 id="See_Also">相关链接</h2> <ul> <li>{{jsxref("Object.prototype.valueOf()")}}</li> |
