javascript时间戳转yyyy-MM-dd hh:mm:ss

    xiaoxiao2021-12-02  27

    formatDate : function(ns) { var d = new Date(ns); var dformat = [ d.getFullYear(), d.getMonth() + 1, d.getDate() ].join('-') + ' ' + [ d.getHours(), d.getMinutes(), d.getSeconds() ].join(':'); return dformat; }
    转载请注明原文地址: https://ju.6miu.com/read-679780.html

    最新回复(0)