Date.prototype.toLocaleString = function() {
var M= this.getMinutes();//獲取
M=M>9?M:"0"+M; //如果分鍾小於10,則在前面加0補充為兩位數字
return this.getFullYear() + "年" + (this.getMonth() + 1) + "月" + this.getDate() + "日 " + this.getHours() + ":" + M ;
};
var ttime=new Date(dt.activityTime ).toLocaleString().replace(/:\d{1,2}$/,' ');