//JS时间戳转为YYYY-MM-DD HH:mm:ss
function exChangeTime(timeStamp){
var str = "";
str += timeStamp.getFullYear() + '-';
timeStamp.getMonth() < 10 ? str += '0' + (timeStamp.getMonth() + 1) + '-' : str += (timeStamp.getMonth() + 1) + '-';
timeStamp.getDate() < 10 ? str += '0' + timeStamp.getDate() + ' ' : str += timeStamp.getDate() + ' ';
timeStamp.getHours() < 10 ? str += '0' + timeStamp.getHours() + ':' : str += timeStamp.getHours() + ':';
timeStamp.getMinutes() < 10 ? str += '0' + timeStamp.getMinutes() + ':' : str += timeStamp.getMinutes() + ':';
timeStamp.getSeconds() < 10 ? str += '0' + timeStamp.getSeconds(): str += timeStamp.getSeconds();
return str;
}
function exChangeTime(timeStamp){
var str = "";
str += timeStamp.getFullYear() + '-';
timeStamp.getMonth() < 10 ? str += '0' + (timeStamp.getMonth() + 1) + '-' : str += (timeStamp.getMonth() + 1) + '-';
timeStamp.getDate() < 10 ? str += '0' + timeStamp.getDate() + ' ' : str += timeStamp.getDate() + ' ';
timeStamp.getHours() < 10 ? str += '0' + timeStamp.getHours() + ':' : str += timeStamp.getHours() + ':';
timeStamp.getMinutes() < 10 ? str += '0' + timeStamp.getMinutes() + ':' : str += timeStamp.getMinutes() + ':';
timeStamp.getSeconds() < 10 ? str += '0' + timeStamp.getSeconds(): str += timeStamp.getSeconds();
return str;
}