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/valueof/index.html | |
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/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> |