JS时间戳转时间日期函数
resolvingDate(date){
if(!date){
return;
}
//date是传入的时间
var d = new Date(parseInt(date + '000'));
let month = (d.getMonth() + 1) < 10 ? '0'+(d.getMonth() + 1) : (d.getMonth() + 1);
let day = d.getDate()<10 ? '0'+d.getDate() : d.getDate();
let hours = d.getHours()<10 ? '0'+d.getHours() : d.getHours();
let min = d.getMinutes()<10 ? '0'