var dates = new Date(); var years = dates.getFullYear(); var months = dates.getMonth()+1; var days = dates.getDate(); var hours = dates.getHours(); var mins =dates.getMinutes(); var secs = dates.getSeconds(); //document.write(years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs); var message_date=(years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs);
时间: 2024-11-02 07:40:57