Appearance
function daysInMonth(date): number;
Number of days in the month of date (local calendar). 该日期所在自然月的天数(本地日历)。
date
Date
number
daysInMonth(new Date(2026, 1, 1)) // 2026-02 → 28
1.0.0