Date 对象

用于处理日期和时间
有四种方式初始化

new Date();
new Date(value);
new Date(dateString);
new Date(year, monthIndex [, day [, hours [, minutes [, seconds [, milliseconds]]]]]);

例子:
file

方法

file

例子:
file

最后修改:2022 年 03 月 08 日
如果觉得我的文章对你有用,请随意赞赏