语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,8 +3,8 @@
<p><strong><code>Date.now()</code></strong> 方法返回自1970年1月1日 00:00:00 UTC到当前时间的毫秒数。</p>
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/date-now.html" width="100%"></iframe></div>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox">var timeInMs = Date.now();
</pre>
<pre><code class="language-javascript">var timeInMs = Date.now();
</code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<p></p>
<h2 id="Description" name="Description">描述</h2>
@@ -12,12 +12,12 @@
<p>因为 now() 是<a href="Reference/Date" title="此页面仍未被本地化, 期待您的翻译!"><code>Date</code></a>的一个静态函数,所以必须以 Date.now() 的形式来使用。</p>
<h2 id="Compatibility" name="Compatibility">兼容旧环境</h2>
<p>该方法在 ECMA-262 第五版中被标准化,可以通过下面的代码来兼容那些不支持该方法的引擎。</p>
<pre class="brush: js">if (!Date.now) {
<pre><code class="language-javascript">if (!Date.now) {
Date.now = function now() {
return <code>new Date().getTime()</code>;
};
}
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>