首页 > moment日期比较

moment日期比较

请问如何比较两个时间的大小

比如 2016-05-04 和 2016-05-16
一 、 moment(' 2016-05-04')>moment('2016-05-16')返回false


http://momentjs.cn/docs/#/query/is-before/


moment('2016-05-04').isBefore('2016-05-16')

就不能去看看API么???

【热门文章】
【热门文章】