<body><div>距离2024年7月3日还有:<br><span id="d">0</span>天<span id="h">0</span>小时<span id="m">0</span>分钟<span id="s">0</span>秒</div><script>let New_Date = new Date('2024-07-03T00:00:00');function updateCountdown(){let Now_Date = new Date();let F = New_Date - Now_Date;let days = Math.floor(F / (1000 * 60 * 60 * 24));let hours = Math.floor((F % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));let minutes = Math.floor((F % (1000 * 60 * 60)) / (1000 * 60));let seconds = Math.floor((F % (1000 * 60)) / 1000);document.getElementById('d').textContent = days;document.getElementById('h').textContent = hours;document.getElementById('m').textContent = minutes;document.getElementById('s').textContent = seconds;}updateCountdown();setInterval(updateCountdown, 1000);</script>
</body>