MomentJS - isLeapYear
如果当前年份是闰年,则此方法将返回 true 或 false。
语法
moment().isLeapYear();
示例
var isleapyear = moment([2000]).isLeapYear();
如果当前年份是闰年,则此方法将返回 true 或 false。
moment().isLeapYear();
var isleapyear = moment([2000]).isLeapYear();
如果您发现内容有误或提出修改建议,请随时向我们发送 E-mail 邮件:
421660149@qq.com
您的建议已发送到 W3schools。