日期:2014-05-17 浏览次数:20673 次
/* author:NONE date:2010-09-20 */ <html> <head> <script> //format yyyy-mm-dd hh:mm:ss function getNowDate() { var date = new Date(); var year = date.getYear(); var month=date.getMonth()+1; var day = date.getDate(); var hours = date.getHours(); var minutes = date.getMinutes(); var seconds = date.getSeconds(); alert(year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds); } </script> </head> <body onload="getNowDate()"> </body> </html>