源自:8-3 计时器setInterval()
为什么没有任何反映啊 谁能告诉我?谢谢
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
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="50" />
</form>
提问者:一切哦克
2015-10-31 17:33