前端js时间的一些处理 云博小周宇2024年5月5日2023年8月11日1 Min Read 判断是否为同一天 function isSameFay(t) { return new Date(t).toDateString() === new Date().toDateString(); }