求解SRT字幕时间轴的转换算法!
内容是这样的,格式如下:
1
00:00:34,640 --> 00:00:38,872
For the zillionth time, Dad, I'm an adult.
You don't have to stalk me.
2
00:00:39,000 --> 00:00:40,797
Georgia, I said I'm dropping you off.
3
00:00:40,920 --> 00:00:44,390
Now, just take off that shell
and get in the car.
4
00:00:44,520 --> 00:00:48,752
Dad, my costume is the business.
I don't want it to get crushed.
5
00:00:50,000 --> 00:00:51,149
You look fantastic, love.
我想把SRT字幕的时间轴换算为毫秒,1秒=1000毫秒,即把00:00:18,000转为数据18000,但是分析不出这格式其中的数据结构,找不出规律,谁可以帮我弄一个函数出来,用JS实现,
本人菜鸟,大家别笑!