JS獲取今天,昨天,最近7天,最近30天,明天,後天等通用方法

// 時間轉換 function timeForMat(count) { // 拼接時間 const time1 = new Date() const time2 = new Date() if (count === 1) { time1.setTime(time1.getTime() - (24 * 60 * 60 * 1000)) } else { if (
相關文章
相關標籤/搜索