setInterval only works one time
问题 $(document).ready(function () { var CurrentDate = new Date(); document.getElementById("UpperArea").innerHTML = CurrentDate.toDateString(); var t1 = setInterval(function () { SecondsProgress(); }, 100); function SecondsProgress() { var Seconds = CurrentDate.getSeconds(); var PercentOfTotalS = (Seconds / 60) * 100; $("#SProgressBar").css("width", PercentOfTotalS + "%"); $("#SProgressBar").text(Seconds); } var t2 = setInterval(function () { var Minutes = CurrentDate.getMinutes(); var