(005)Date对象使用

 1 <html>
 2     <head>
 3         <meta http-equiv="content-Type" content="text/html;charset=utf-8">
 4         <script type="text/javascript">
 5 
 6             window.onload = function() {
 7 
 8                 var date = new Date();
 9 
10                 var str = date.getHours() + "" + date.getMinutes() + "" + date.getSeconds() + ""; 
11 
12                 alert(str);
13             };
14         
15         </script>
16     </head>
17     <body>
18         
19     </body>
20 </html>

 

posted @ 2013-11-25 22:12  雪中飞雁  阅读(87)  评论(0)    收藏  举报