function restTime() {
var si = setInterval(function(){
var startTime = new Date("2022/10/15 02:00:00");
var nowTime = new Date()
var restSec = startTime - nowTime;
var day = parseInt(restSec / (60*60*24*1000))
var hour = parseInt(restSec / (60*60*1000) % 24);
var minu = parseInt(restSec / (60*1000) % 60);
var sec = parseInt(restSec / 1000 % 60);
console.log(day,"天", hour,"时", minu, "分", sec )
}, 1000)
}