JavaScript动态显示时间
<strong><span style="font-size:18px;"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js动态显示当前日期,时间和星期代码</title>
</head>
<body>
当前时间:
<hr>
<div id="time">
<script>
document.getElementById('time').innerHTML=new Date().toLocaleString();
setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();",1000);
</script>
</div>
</body>
</html></span></strong>