duration (val) {标签:10,val,js,60,let,parseInt,转成成,时分秒 From: https://www.cnblogs.com/GmxNotes/p/17642208.html
let h = parseInt(val / 60 / 60 % 24)
h = h < 10 ? '0' + h : h
let m = parseInt(val / 60 % 60)
m = m < 10 ? '0' + m : m
let s = parseInt(val % 60)
s = s < 10 ? '0' + s : s
// 作为返回值返回
return `${h}:${m}:${s}`
}