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/getmonth/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/getmonth') 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 63a953f263..ce008a4ba0 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 @@ -18,21 +18,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getMonth -

语法

+

语法

dateObj.getMonth()
-

参数

+

参数

-

返回值

+

返回值

getMonth返回一个0 到 11的整数值: 0 代表一月份,1 代表二月份, 2 代表三月份,依次类推。

-

例子

+

例子

-

使用 getMonth()

+

使用 getMonth()

下面第二条语句,基于 {{jsxref("Date")}} 对象 Xmas95 的值,把11赋值给变量 month。

@@ -79,7 +79,7 @@ console.log(month); // 11

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

-

相关链接

+

相关链接