<html>
<head>
<script type="text/javascript">
function getTime(){
var time=new Date();
var hour=time.getHours();
var minutes=time.getMinutes();
var seconds=time.getSeconds();
document.write("当前时间:"+hour+":"+minutes+":"+seconds);
setTimeOut("getTime()",1000);
}
</script>
</head>
<body onload="getTime()">
</body>
</html>
为什么不自动跟新页面上的时间 求教!!!
<head>
<script type="text/javascript">
function getTime(){
var time=new Date();
var hour=time.getHours();
var minutes=time.getMinutes();
var seconds=time.getSeconds();
document.write("当前时间:"+hour+":"+minutes+":"+seconds);
setTimeOut("getTime()",1000);
}
</script>
</head>
<body onload="getTime()">
</body>
</html>
为什么不自动跟新页面上的时间 求教!!!










