为什么设置了显示之后,时间显示会闪屏?
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
attime=[time.getHours(),time.getMinutes(),time.getSeconds()];
document.getElementById("clock").value = attime.join(":");
}
var int = setInterval(clock, 1000)
</script>