functionisRunYear(year){var flag =false;if(year %4==0&& year %100!=0|| year %400==0){
flag =true;}return flag;}var arr1 =isRunYear(1900)
console.log(arr1);
判断二月份有几天
functionisRunYear(year){var flag =false;if(year %4==0&& year %100!=0|| year %400==0){
flag =true;}return flag;}functionbackDay(){var year =prompt("请你输入年份");if(isRunYear(year)){//函数中调用函数alert("是闰年 29")}else{alert("是平年 28")}}backDay();