是否闰年
这指示 Day.js 对象的年份是否是闰年。
¥This indicates whether the Day.js object's year is a leap year or not.
This requires the
IsLeapYear
plugin to work
dayjs.extend(isLeapYear)
dayjs('2000-01-01').isLeapYear() // true
这指示 Day.js 对象的年份是否是闰年。
¥This indicates whether the Day.js object's year is a leap year or not.
This requires the
IsLeapYear
plugin to work
dayjs.extend(isLeapYear)
dayjs('2000-01-01').isLeapYear() // true