时间转换为正常格式

renderTime(date) {
var dateee = new Date(date).toJSON();
return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
}
posted @ 2020-07-01 18:26  周紫妍  Views(230)  Comments(0)    收藏  举报