From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../reference/global_objects/date/setfullyear/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setfullyear') 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 e5693e9e07..5c85e43084 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 @@ -11,11 +11,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear -

语法

+

语法

dateObj.setFullYear(yearValue[, monthValue[, dayValue]])
-

参数

+

参数

yearValue
@@ -26,15 +26,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setFullYear
一个1到31之间的整数值,表示月份中的第几天。如果你指定了 dayValue 参数,就必须同时指定 monthValue
-

描述

+

描述

如果没有指定 monthValuedayValue 参数,将会使用 getMonthgetDate 方法的返回值。

如果有一个参数超出了合理的范围,setFullYear 方法会更新其他参数值,日期对象的日期值也会被相应更新。 例如,为 monthValue 指定 15, 则年份会加1,月份值会为3。

-

例子

+

例子

-

例子:使用setFullYear方法

+

例子:使用setFullYear方法

var theBigDay = new Date();
 theBigDay.setFullYear(1997);
@@ -70,7 +70,7 @@ theBigDay.setFullYear(1997);

{{Compat("javascript.builtins.Date.setFullYear")}}

-

相关链接

+

相关链接