获取当前或指定日期是星期几

var tmpDate = new Date('2019-10-01');//指定日期,不写就是当前日期
return (tmpDate.getDay());//返回0-6的数值,分别对应周日到周六
发布了10 篇原创文章 · 获赞 0 · 访问量 314

猜你喜欢

转载自blog.csdn.net/half_sugar/article/details/102934013