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/setminutes/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/date/setminutes') diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html index fbc30b83fc..cb791e5a9c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/setminutes/index.html @@ -11,15 +11,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMinutes -

语法

+

语法

dateObj.setMinutes(minutesValue[, secondsValue[, msValue]])
-

 JavaScript 1.3之前版本

+

 JavaScript 1.3之前版本

dateObj.setMinutes(minutesValue)
-

参数

+

参数

minutesValue
@@ -36,15 +36,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setMinutes
一个 0 到 999 的数字,表示微秒数,如果指定了 msValue 参数,则必须同时指定 minutesValuesecondsValue 参数。
-

描述

+

描述

如果没有指定 secondsValuemsValue 参数,就会使用 {{jsxref("Date.getSeconds", "getSeconds()")}} 和 {{jsxref("Date.getMilliseconds", "getmilliseconds()")}} 方法的返回值。

如果有一个指定的参数超出了合理范围,setMinutes 会相应地更新日期对象中的时间信息。例如,为 secondsValue 指定 100,分钟数将会加 1,而秒数会为 40。

-

例子

+

例子

-

例子:使用setMinutes方法

+

例子:使用setMinutes方法

var theBigDay = new Date();
 theBigDay.setMinutes(45);
@@ -81,7 +81,7 @@ theBigDay.setMinutes(45);
 
 

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

-

相关链接

+

相关链接