将时间从“XXX秒”的格式转化成“XX天XX小时XX分XX秒”的格式。
var time=1000000;
var day=Math.trunc(time/86400);
var hour=Math.trunc((time%86400)/3600);
var minute=Math.trunc((time%3600)/60);
var second=Math.trunc((time%60));
console.log(day,"天",hour,"小时",minute,"分",second,"秒");