//闰年能被4整除且不能被100整除,或能被400整除。function year(){ if(year%4==0&&year%100!=0||year%400==0){ console.log(“闰年”); }else{
console.log(“平年”);
}