let date = new Date(e.UpdateTime*1000);
let Y = date.getFullYear() + '年';
let M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '月';
let D = date.getDate() + '日';
let h = date.getHours() + '时';
let m = date.getMinutes() + '分';
let s = date.getSeconds() +'秒';
console.log(Y+M+D+h+m+s)
vue项目中时间戳的转换
于 2018-05-09 09:51:31 首次发布