var tmpDate = new Date('2019-10-01');//指定日期,不写就是当前日期
return (tmpDate.getDay());//返回0-6的数值,分别对应周日到周六
获取当前或指定日期是星期几
猜你喜欢
转载自blog.csdn.net/half_sugar/article/details/102934013
今日推荐
周排行