// 获取当前时间戳 function timestamps() { return Math.round(new Date().getTime() / 1000).toString() } // 距离时间... 传时间戳 function timeFormat(timestamps) { timestamps = timestamps * 1000 let daySec, dayMin, dayHour, dayS let timeNow = new Date().getTime() let t…