<title>定时器</title><script type="text/javascript"> var attime; function clock(){ var time=new Date(); //attime=time.substr(17,8) ; attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds(); document.getElementById("clock").value = attime; } var int=setInterval("clock()",1000)</script></head><body><form><input type="text" id="clock" size="40" />
添加回答
举报
0/150
提交
取消