function getDateStr(str) {
var oDate = new Date(parseInt(str.replace("/Date(", “”).replace(")/", “”), 10));
var oYear = oDate.getFullYear();
var oMonth = oDate.getMonth() + 1;
var oDay = oDate.getDate();
var oHour = oDate.getHours();
var oMin = oDate.getMinutes();
var oSen = oDate.getSeconds();
oTime = oYear + ‘-’ + getzf(oMonth) + ‘-’ + getzf(oDay) + ’ ’ + getzf(oHour) + ‘:’ + getzf(oMin) + ‘:’ + getzf(oSen);//最后拼接时间
return oTime;
};
function getzf(num) {
if (parseInt(num) < 10) {
num = ‘0’ + num;
}
return num;
}