js计时器
只有我的一运行就卡死吗,求解 var attime; var int=setInterval(clock,100); function clock(){ var time=new Date(); attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds(); setInterval(clock,1000); document.getElementById("clock").value = attime; }
只有我的一运行就卡死吗,求解 var attime; var int=setInterval(clock,100); function clock(){ var time=new Date(); attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds(); setInterval(clock,1000); document.getElementById("clock").value = attime; }
2017-05-08
举报