使用数组的方法join("-");用特定的字符,将数组拼接形成字符串
let arr = ['12:00:00', '14:50:00']; let str = arr.join('-'); console.log(str) //12:00:00-14:50:00