export const isToday = date => {
const today = new Date()
return (
/* eslint-disable operator-linebreak */
date.getDate() === today.getDate() &&
date.getMonth() === today.getMonth() &&
date.getFullYear() === today.getFullYear()
/* eslint-enable */
)
}
判断是否是今天
猜你喜欢
转载自blog.csdn.net/weixin_41886421/article/details/129328979
今日推荐
周排行