📅  最后修改于: 2022-03-11 15:02:24.340000             🧑  作者: Mango
const isToday = (someDate) => {
const today = new Date()
return someDate.getDate() == today.getDate() &&
someDate.getMonth() == today.getMonth() &&
someDate.getFullYear() == today.getFullYear()
}