方法 | 语法 |
isBefore |
moment().isBefore(Moment|String|Number|Date|Array);
moment().isBefore(Moment|String|Number|Date|Array, String);
|
isSame |
moment().isSame(Moment|String|Number|Date|Array);
moment().isSame(Moment|String|Number|Date|Array, String);
|
isAfter |
moment().isAfter(Moment|String|Number|Date|Array);
moment().isAfter(Moment|String|Number|Date|Array, String);
|
isSameOrBefore |
moment().isSameOrBefore(Moment|String|Number|Date|Array);
moment().isSameOrBefore(Moment|String|Number|Date|Array, String);
|
isSameOrAfter |
moment().isSameOrAfter(Moment|String|Number|Date|Array);
moment().isSameOrAfter(Moment|String|Number|Date|Array, String);
|
isBetween |
moment().isBetween(moment-like, moment-like);
moment().isBetween(moment-like, moment-like, String);
|
isDST |
时刻().isDST();
|
isLeapYear |
时刻().isLeapYear();
|
isMoment |
moment.isMoment(obj);
|
isDate |
moment.isDate(obj);
|