diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html index 5c85e43084..b2393680ba 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/setfullyear/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear <h2 id="Syntax">语法</h2> -<pre class="syntaxbox language-html">dateObj.setFullYear(yearValue[, monthValue[, dayValue]])</pre> +<pre class="brush: js">dateObj.setFullYear(yearValue[, monthValue[, dayValue]])</pre> <h3 id="Parameters">参数</h3> @@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear <h3 id="Example:_Using_setFullYear">例子:使用<code>setFullYear</code>方法</h3> -<pre class="brush:js language-js">var theBigDay = new Date(); +<pre class="brush:js">var theBigDay = new Date(); theBigDay.setFullYear(1997);</pre> <h2 id="规范">规范</h2> |
