时间:2024-10-14 05:49:25
1、使用new Date()获取当前日期。
3、使用new Date(year, month, 1)方法获取本月的开始日期,new Date(year, month + 1, 0)方法获取本月的结束日期。