[JS10] 获取时间

 

 1 <html>
 2 <head>
 3     <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 4         <title>New Page 1</title>
 5     <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
 6 </head>
 7 <body>
 8     <p><script language="JavaScript">
 9     <!--
10         day=new Date()
11         rs=day.toLocaleString()
12         document.write("现在时间是: "+rs)
13     // --></script></p>
14 </body>
15 </html>

 

posted @ 2014-05-13 23:49  beautifulzzzz  阅读(355)  评论(0编辑  收藏  举报