Skip to content
On this page

获取当前月的天数

javascript
const newDate = new Date()
const year = newDate.getFullYear()
const month = newDate.getMonth() + 1
const day = new Date(year, month, 0).getDate()

更新时间: