moment

moment(时间戳).diff(时间戳,'days') // 计算相差几天,时间戳需要是number格式,字符串格式,moment执行之后是无效的时间

posted @ 2022-11-25 11:44  Running00  阅读(127)  评论(0编辑  收藏  举报