//=================取一個(gè)月的最后一天
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@]
網(wǎng)站題目:script取一個(gè)月的最后一天
文章地址:
http://weahome.cn/article/pehdpj.html