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

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

@@ -4,7 +4,7 @@
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/date-getmonth.html" width="100%"></iframe></div>
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox language-html">dateObj.getMonth()</pre>
<pre><code class="language-html">dateObj.getMonth()</code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<p></p>
<h3 id="Description" name="Description">返回值</h3>
@@ -12,10 +12,10 @@
<h2 id="Examples" name="Examples">例子</h2>
<h3 id="Example:_Using_getMonth" name="Example:_Using_getMonth">使用 <code>getMonth()</code></h3>
<p>下面第二条语句,基于 <a href="Reference/Date" title="此页面仍未被本地化, 期待您的翻译!"><code>Date</code></a> 对象 Xmas95 的值把11赋值给变量 <code>month。</code></p>
<pre class="brush:js language-js">var Xmas95 = new Date('December 25, 1995 23:15:30');
<pre><code class="language-js language-js">var Xmas95 = new Date('December 25, 1995 23:15:30');
var month = Xmas95.getMonth();
console.log(month); // 11</pre>
console.log(month); // 11</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>