设置到期日期const expirationDate = new Date2023-07-19; 计算提醒日期到期日期减去7天const reminderDate = new DateexpirationDategetTime - 7 24 60 60 1000; 计算剩余天数const daysUntilExpiration = MathceilexpirationDate - Date
可以去除提醒日期的获取,因为在代码中并没有使用到提醒日期。
原文地址: https://www.cveoy.top/t/topic/hYRH 著作权归作者所有。请勿转载和采集!