//js端 时间戳转字符串时间
function timestamptostr(timestamp) {
    var unixTimestamp = new Date(timestamp * 1000) ;
    // return unixTimestamp.toLocaleString();
    var d = new Date(timestamp * 1000);
    var jstimestamp = (d.getFullYear())+"-"+(d.getMonth()+1)+"-"+(d.getDate())+" "+(d.getHours()-8)+":"+(d.getMinutes())+":"+(d.getSeconds());
    return jstimestamp;
}

甄城
1.2k 声望34 粉丝