计算一个月有多少天
const monthHaveManyDays = (year, month) => { const map = [31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; const days = map[month - 1]; return days || (year % 4 == 0 && year % 100 != 0) || year % 400 == 0 ? 29 : 28; };
以自己现在的努力程度,还没有资格和别人拼天赋