请问如何比较两个时间的大小
比如 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么???
请问如何比较两个时间的大小
比如 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么???