中心思想,设置日期为每月的第一天
var oDate=new Date(); oDate.setDate(1); alert(oDate.getDay());
求本月的第一天星期几?
原文:http://www.cnblogs.com/wujidns/p/4435338.html