摘要: var string1 = "2022.05.21"//模拟后端提供的目标日期 var string2 = "2022-05-24"//今日日期 var expired = new Date(string1 .replace(/\./g, "/")).getTime() <= new Date(st 阅读全文
posted @ 2024-04-03 14:58 瑆箫 阅读(64) 评论(0) 推荐(0) 编辑