求本月的第一天星期几?

中心思想,设置日期为每月的第一天

var oDate=new Date();

oDate.setDate(1);

alert(oDate.getDay());
如果问题,欢迎大家及时指点,一同交流,共同提高
原文地址:https://www.cnblogs.com/wujidns/p/4435338.html