aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
index ce008a4ba0..f4baba5270 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getmonth/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth
<h2 id="Syntax">语法</h2>
-<pre class="syntaxbox language-html">dateObj.getMonth()</pre>
+<pre class="brush: js">dateObj.getMonth()</pre>
<h3 id="Parameters">参数</h3>
@@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth
<p>下面第二条语句,基于 {{jsxref("Date")}} 对象 Xmas95 的值,把11赋值给变量 <code>month。</code></p>
-<pre class="brush:js language-js">var Xmas95 = new Date('December 25, 1995 23:15:30');
+<pre class="brush:js">var Xmas95 = new Date('December 25, 1995 23:15:30');
var month = Xmas95.getMonth();
console.log(month); // 11</pre>