在使用elementUI的时间选择器el-time-picker与后端互传时间值时用到的时间格式转换方式 1、 [“hh:mm:ss”, “hh:mm:ss”] --> [开始秒,结束秒] function timeToSeconds(t) { let hm = t.split(":").map(x => Number(x)); return hm[0] * 3600 +