程式碼很簡單,直接上程式碼了,大家可以複製下面的程式碼儲存成HTML檔運行看效果 複製程式碼 代碼如下: <BR>function Change(HourSurplus,MinuteSurplus,SecondSurplus)<BR>{<br><br> SecondSurplus { <BR> SecondSurplus=60 SecondSurplus; <BR> MinuteSurplus=MinuteSurplus-1; <BR> } <BR> if (MinuteSurplus<0); <BR> HourSurplus=HourSurplus- 1; <BR> }<BR> document.getElementById("asd").innerHTML="" HourSurplus ":" MinuteSurplus ":" SecondSurplus "";<BR> setTimeout(function()> MinuteSurplus,SecondSurplus);<BR> },1000);<BR>}<BR> <BR>11111<BR>Change(1,59,59);< /script><P><BR><BR><BR><BR>