// 转换时间戳的函数 function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().substr(0,17) }