取得指定时间所在月份的天数,如果不传参,则指定当前时间
指定时间
0.0.1
getDaysInMonth(new Date('2021/03/01')) // 31getDaysInMonth(new Date('2021/02/05')) // 28getDaysInMonth(new Date('2020/09/03')) // 30getDaysInMonth(new Date('2024/02/08')) // 29 Copy
getDaysInMonth(new Date('2021/03/01')) // 31getDaysInMonth(new Date('2021/02/05')) // 28getDaysInMonth(new Date('2020/09/03')) // 30getDaysInMonth(new Date('2024/02/08')) // 29
取得指定时间所在月份的天数,如果不传参,则指定当前时间