判断是否闰年 // 判断该年度是否是瑞年,2月份29日 isyear(year) { if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) { return true } else { return false } }