- MomentJS 教程
- MomentJS - 主頁
- MomentJS - 概述
- MomentJS - 環境設定
- MomentJS - 介紹
- MomentJS - 解析日期和時間
- MomentJS - 日期驗證
- MomentJS - 獲取/設定
- 操縱日期和時間
- 格式化日期和時間
- MomentJS - 日期查詢
- MomentJS - 國際化
- MomentJS - 定製
- MomentJS - 持續時間
- MomentJS - 實用工具
- MomentJS - 外掛
- MomentJS - 示例
- MomentJS 有用資源
- MomentJS - 快速指南
- MomentJS - 有用資源
- MomentJS - 討論
MomentJS - 這是 Moment
如果待檢查的給定變數是一個時刻,此方法將返回真或假。
語法
moment.isMoment(obj);
示例
var ismoment = moment.isMoment(moment());
輸出
示例
var ismoment = moment.isMoment(moment([2010, 05, 01]));
輸出
momentjs_date_queries.htm
廣告