mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-26 17:11:20 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<p><code><strong>valueOf()</strong></code> 方法返回一个 <a href="Reference/Date" title="此页面仍未被本地化, 期待您的翻译!"><code>Date</code></a> 对象的原始值。</p>
|
||||
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/date-valueof.html" width="100%"></iframe></div>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox"><code><var>dateObj</var>.valueOf()</code></pre>
|
||||
<pre><code class="language-javascript"><code><var>dateObj</var>.valueOf()</code></code></pre>
|
||||
<h3 id="Parameters" name="Parameters">返回值</h3>
|
||||
<p>从1970年1月1日0时0分0秒(UTC,即协调世界时)到该日期的毫秒数。</p>
|
||||
<h2 id="Description" name="Description">描述</h2>
|
||||
@@ -12,9 +12,9 @@
|
||||
<p>该方法通常在 JavaScript 内部被调用,而不是在代码中显式调用。</p>
|
||||
<h2 id="Examples" name="Examples">例子</h2>
|
||||
<h3 id="Example:_Using_valueOf" name="Example:_Using_valueOf">使用 <code>valueOf()</code></h3>
|
||||
<pre class="brush:js">var x = new Date(56, 6, 17);
|
||||
<pre><code class="language-js">var x = new Date(56, 6, 17);
|
||||
var myVar = x.valueOf(); // assigns -424713600000 to myVar
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user