0
点赞
收藏
分享

微信扫一扫

dayjs获取两个时间之间的间隔天数

我是小小懒 2023-02-24 阅读 97


import dayjs from "dayjs";

const intervalDay = dayjs(this.queryDate.endTime).diff(
this.queryDate.beginTime,
"day"
);
if (intervalDay > 2) {
return this.$message.warning("日期间隔不能大于3天");
}


举报

相关推荐

0 条评论