动态显示时间的一个脚本 <div id="time"></div> <script> setInterval("document.all.time.innerHTML=new Date().toLocaleString()",1000); </script>