(()=>{
const clock=()=>{
const d=(new Date(2023,0,21).getTime()-new Date().getTime())/1000/60/60/24;
const h=(d-parseInt(d?.toString()))*24;
const m=(h-parseInt(h?.toString()))*60;
const s=(m-parseInt(m?.toString()))*60;
console.log(`新年倒计时:${parseInt(d)}天-${parseInt(h)}时-${parseInt(m)}分-${parseInt(s)}秒`)
setTimeout(clock,1000);
}
clock();
})()