var timer = new Date()
var year = timer.getFullYear()
if(year%4==0){
alert('是闰年')
}else{
alert('不是闰年')
}