js根据时间戳获取格式化日期

//格式化时间戳(毫秒) function getFormatDate(timestamp) { var newDate = new Date(timestamp); Date.prototype.format = function (format) { var date = { 'M+': this.getMonth() + 1, 'd+': this.getDate(), 'h+': this
相关文章
相关标签/搜索