作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

视频详情

@@ -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() {