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