数字转字符串怎么加上前导0啊?
let h = Math.floor(time/3600);
let m = Math.floor((time % 3600)/60);
let s = (time %60);
return `${h}:${m}:${s}`;
要转换成:“01:03:44”类似的字符串
let h = Math.floor(time/3600);
let m = Math.floor((time % 3600)/60);
let s = (time %60);
return `${h}:${m}:${s}`;
要转换成:“01:03:44”类似的字符串