var n = new Date();
var y = n.getFullYear();
var m = (n.getMonth()+1< 10)?("0" + (n.getMonth() + 1)):(n.getMonth() + 1);
var d = (n.getDate()< 10)?("0" + (n.getDate())):(n.getDate());
var h = (n.getHours() + 8< 10)?("0" + (n.getHours() + 8)):(n.getHours() + 8);
var mi = (n.getMinutes()< 10)?("0" + (n.getMinutes())):(n.getMinutes());
var s = (n.getSeconds()< 10)?("0" + (n.getSeconds())):(n.getSeconds());
var now = y+"-"+m+"-"+d+" "+h+":"+mi+":"+s;
全站熱搜