var aTime = new Date();
var aYear = aTime.getFullYear();
var aMonth = aTime.getMonth()+1;
function isLeapyear(aYear){
if(aYear%4==0 && aYear%100!=0 || aYear%4==0 && aYear%400==0){
return true;
}else{
return false;
}
};
isLeapyear(aYear); //返回是不是闰年(闰年二月有29天)