时间戳转化为日期
function dateCover(str) {
let isDate = new Date( + str);
let year = isDate.getFullYear();
let monthGet = (isDate.getMonth() + 1);
let month = monthGet < 10 ? "0" + monthGet: monthGet;
let datesGet = isDate.getDate();
let dates = datesGet < 10 ? "0" + datesGet: datesGet;
return year + '-' + month + '-' + dates
};
dateCover(str);