Js 之判断某月有几天
一、代码
function getDay(year, month){ var y = new Date(year,month,1,0,0,0); var yd = new Date(y-1000); return yd.getDate(); }
一、代码
function getDay(year, month){ var y = new Date(year,month,1,0,0,0); var yd = new Date(y-1000); return yd.getDate(); }