HTML 动态显示系统当前时间:
<div id="time"> <script> document.getElementById('time').innerHTML=new Date().toLocaleString(); setInterval("document.getElementByIdx_x('time').innerHTML=new Date().toLocaleString();",1000); </script> </div>