为什么时间写多少,显示效果都是相同的
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
attime= time.getHours()+':'+time.getMinutes()+':'+time.getSeconds();
document.getElementById("clock").value = attime;
}
setInterval(clock,36000);
</script>