js生成日期
body, p, th, td, li, ul, ol, h1, h2, h3, h4, h5, h6, pre
{
font-family: MS Shell Dlg;
line-height: 1.4;
}
body, p, th, td, li, ul, ol, pre
{
font-size: 11px;
}
var tempTime = new Date();
var msg_time =
tempTime.getFullYear() + "-" + (tempTime.getMonth()+1) + "-" +
tempTime.getDate() + " " + tempTime.getHours() + ":" + tempTime.getMinutes() +
":" + tempTime.getSeconds(); //獲取留言的時間
可以使用js拼成自己想要的日期格式