为什么没有任何反映啊 谁能告诉我?谢谢
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>