- MomentJS 教程
- MomentJS - 主頁
- MomentJS - 概覽
- MomentJS - 環境設定
- MomentJS - 介紹
- MomentJS - 解析日期和時間
- MomentJS - 日期驗證
- MomentJS - getter 和 setter
- 操作日期和時間
- 日期和時間的格式化
- MomentJS - 日期查詢
- MomentJS - 國際化
- MomentJS - 自定義
- MomentJS - 時長
- MomentJS - 工具
- MomentJS - 外掛
- MomentJS - 示例
- MomentJS 有用資源
- MomentJS - 快速指南
- MomentJS - 有用資源
- MomentJS - 討論
MomentJS - 閏年判斷
如果 moment 年份是閏年,此方法將返回 true 或 false。
語法
moment().isLeapYear();
示例
var isleapyear = moment([2000]).isLeapYear();
輸出
momentjs_date_queries.htm
廣告