<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> |
|
来自: psharpener > 《我的图书馆》