正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
@@ -194,13 +194,15 @@ | @@ -194,13 +194,15 @@ | ||
194 | console.log(begin); | 194 | console.log(begin); |
195 | var over = []; | 195 | var over = []; |
196 | $(".audio_style").click(function() { | 196 | $(".audio_style").click(function() { |
197 | + var audioTimer = []; | ||
197 | var index = $('.audio_style').index(this); | 198 | var index = $('.audio_style').index(this); |
198 | $(audio).each(function (key, vo) { | 199 | $(audio).each(function (key, vo) { |
199 | - var audioTimer = [key]; | 200 | + audioTimer[key] = "audioTimer"+key; |
201 | + console.log(audioTimer[key]); | ||
200 | console.log(audioTimer); | 202 | console.log(audioTimer); |
201 | if(key == index){ | 203 | if(key == index){ |
202 | if(vo.currentTime == 0){ | 204 | if(vo.currentTime == 0){ |
203 | - console.log(audioTimer[key]); | 205 | + console.log(audioTimer[0]); |
204 | vo.play(); | 206 | vo.play(); |
205 | var audioTime = parseInt(vo.duration); | 207 | var audioTime = parseInt(vo.duration); |
206 | audioTimer[key] = setInterval(function() { | 208 | audioTimer[key] = setInterval(function() { |
-
请 注册 或 登录 后发表评论