Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
> new Date() ISODate("2013-07-19T02:38:45.520Z") > new Date().getDay() 5 >
谁能告诉我为什么要getDay退货?52013-07-19
getDay
5
2013-07-19
因为“2013-07-19”是星期五。来自MDN:
根据本地时间返回指定日期的星期几,其中 0 表示星期日。