💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 距离当晚24点之前倒计时 ~~~ // 距离今晚24:0:0的倒计时 var endYear=new Date().getFullYear(); var endMonth=new Date().getMonth()+1; var endDay=new Date().getDate(); var endTime=new Date(endYear,endMonth,endDay); function leftDiv (){ var Time = endTime-(new Date().getTime()); var Hours = addNumber(Math.floor(Time/1000/60/60%24)); var Minutes = addNumber(Math.floor(Time/1000/60%60)); var Seconds = addNumber(Math.floor(Time/1000%60)); if(Time>0){ setTimeout(function(){ leftDiv(); },1000); }else{ clearTimeout(leftDiv()) } document.getElementById("divTime").innerText=Hours+":"+Minutes+":"+Seconds; } leftDiv(); function addNumber(num){ var num=(num>9)?num:('0'+num); return num; } ~~~