如何在JavaScript中向HH:MM:SS添加分钟? 由 yeum发布于 2020-05-24 04:29:05 我想将分钟(typeof Integer)添加到HH:MM:SS(typeof String)。 例: let min = 125; let time = "10:00:00"; 结果=“ 12:05:00”
Make a new Date object and then set the time with
setHours()
.