体育要闻

赛事动态随时关注

nst days = Math.floor(timeLeft / (24 * 60 * 60)); const hours = Math.floor((timeLeft % (24 * 60 * 60)) / (60 * 60)); const minutes = Math.floor((timeLeft % (60 * 60)) / 60); const seconds = timeLeft % 60; daysElement.textContent = days.toString().padStart(2, '0'); hoursElement.textContent = hours.toString().padStart(2, '0'); minutesElement.textContent = minutes.toString().padStart(2, '0'); secondsElement.textContent = seconds.toString().padStart(2, '0'); timeLeft--; } updateCountdown(); setInterval(updateCountdown, 1000); });