function getHMS(timeValue){
let hms = [
{
str:"00",
base:3600*24,
enumeration:'D',
separator:"天",
},
{
str:"00",
base:3600,
enumeration:'H',
separator:"小时",
},
{
str:"00",
base:60,
enumeration:'M',
separator:"分钟",
},
{
str:"00",
base:60,
enumeration:'S',
separator:"秒",
}
]
for (let i = 0; i < hms.length; i++) {
let item = hms[i];
let time = ''
if(item.enumeration=='S'){
time = timeValue%item.base
}else{
time = parseInt(timeValue/item.base)
timeValue = timeValue%item.base
}
item.str = time >= 10?time+"":"0"+time
}
console.log("hms===========",hms)
return hms
},