[quote=引用 2 楼 乐予忘忧 的回复:] 时间戳加减就可以了
let now = new Date().getTime() //获取当前时间 let youDate = new Date('2020-6-17').getTime()//获取到期时间 let differ = now - youDate // 计算得出剩余到期时间
时间戳加减就可以了
87,915
社区成员
224,617
社区内容
加载中
试试用AI创作助手写篇文章吧