(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>
***万事万物都有裂痕,那是光照进来的地方***

浙公网安备 33010602011771号