month从零开始计算 let date = new Date(year, month, day) 此处year正常写,month应当是正常的month-1day如果写为0,就是上个月的最后一天 如果month不减一,day写成0,就是目正常的month的最后一天