//=================取一个月的最后一天
function getLastDay(year,nextMonth){
var theDay = new Date(year,nextMonth,0)
theDay = theDay-1
lastDay = theDay.getFullYear()+"-"+(theDay.getMonth()+1)+"-"+theDay.getDate()
Alert(lastDay);
return lastDay
}[@more@]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/106943/viewspace-921555/
,如需转载,请注明出处,否则将追究法律责任。