代码如下:
SecondSurplus = SecondSurplus - 1;
if (SecondSurplus<0)
{
SecondSurplus=60+SecondSurplus;
MinuteSurplus=MinuteSurplus-1;
}
if (MinuteSurplus<0)
{
MinuteSurplus=60+MinuteSurplus;
HourSurplus=HourSurplus-1;
}
document.getElementById("asd").innerHTML=""+ HourSurplus +":"+ MinuteSurplus +":"+ SecondSurplus +"";
setTimeout(function() {
Change(HourSurplus,MinuteSurplus,SecondSurplus);
},1000);
}
script>
11111
Change(1,59,59);
script>