先给你个苯法...一会在咨询个好法..function getLastDay(a, b, c) {
var d = new Date(a, parseInt(b, 10) - 1, c), od = d.getDate(), oy = d.getDay();
d.setDate(1);
d.setMonth(d.getMonth() + 1);
d.setDate(d.getDate() - 1);
return Math.ceil((od + 5 - oy) / 7) == Math.ceil((d.getDate() + 6 - d.getDay()) / 7);
}
alert(getLastDay(2008, 1, 8));
alert(getLastDay(2008, 1, 27));