1
00:00:13,170 --> 00:00:16,560 //这是字幕里的文件
wheeler introducing
2
00:00:16,560 --> 00:00:29,180
results survival from 7-11 only on ECG
hasn't decided whether he goes in
javasrcipt 计算时间差到毫秒。
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
threenewbee 2016-01-12 09:14关注var t1 = "00:00:13,170"; var t2 = "00:00:16,560"; var间隔毫秒数 = parseInt(t2.split(",")[0].split(",")[0]) * 3600000 + parseInt(t2.split(",")[0].split(",")[1]) * 60000 + parseInt(t2.split(",")[0].split(",")[2]) * 1000 + parseInt(t2.split(",")[1]) - parseInt(t1.split(",")[0].split(",")[0]) * 3600000 + parseInt(t1.split(",")[0].split(",")[1]) * 60000 + parseInt(t1.split(",")[0].split(",")[2]) * 1000 + parseInt(t1.split(",")[1]);解决 无用评论 打赏 举报