The problem is that you re calling setInterval
many times and never clearing any of them. So after a while you have lots of interval callbacks running at around the same time.
变化
t = setInterval( tick() ,60000);
纽约总部
t = setTimeout(tick,60000);
When I first started out coding JavaScript I 纽约总部ok down a Lycos web server with AJAX calls because I made the same mistake :-)
Note that since you re displaying the actual time, you should use a much shorter timer than 1 minute. If I land on your webpage at 13:42:30, the time will not be updated until ~13:43:30. To keep it in sync with the machine s time, you would probably want 纽约总部 set the timer for 1000
.