aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
index 5f7d438415..57f12998f6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/date/getdate/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDate
<h2 id="Syntax" name="Syntax">语法</h2>
-<pre class="syntaxbox language-html"><code class="language-html">dateObj.getDate()</code></pre>
+<pre class="syntaxbox language-html">dateObj.getDate()</pre>
<h2 id="Parameters" name="Parameters">参数</h2>
@@ -29,10 +29,10 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDate
<p>下面第二条语句将值25赋给 day 变量,该值基于日期对象 <code>Xmax95</code>的值。</p>
-<pre class="brush:js language-js"><code class="language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
+<pre class="brush:js language-js">var Xmas95 = new Date("December 25, 1995 23:15:00");
var day = Xmas95.getDate();
-alert(day); // 25</code></pre>
+alert(day); // 25</pre>
<h2 id="规范">规范</h2>