- <html>
- <head>
- <title>最简单的全日制时间显示</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- </head>
- <body>
- <div id="linkweb">
- </div>
- <script>setInterval("linkweb.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
- </script>
- </body>
- </html>