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

视频详情

... ... @@ -196,11 +196,12 @@
$(".audio_style").click(function() {
var index = $('.audio_style').index(this);
$(audio).each(function (key, vo) {
let audioTimer = null;
if(key == index){
if(vo.currentTime == 0){
vo.play();
var audioTime = parseInt(vo.duration);
var audioTimer = setInterval(function() {
audioTimer = setInterval(function() {
audioTime--;
if (audioTime % 2 == 0) {
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().removeClass("b_active")
... ... @@ -227,20 +228,22 @@
}else{
vo.currentTime = 0;
vo.pause();
var highestIntervalId = setInterval(";");
clearInterval(audioTimer)
/*var highestIntervalId = setInterval(";");
console.log(highestIntervalId);
for (var i = 0 ; i < highestIntervalId ; i++) {
clearInterval(i);
}
}*/
}
}else{
console.log(111);
vo.currentTime = 0;
vo.pause();
var highestIntervalId = setInterval(";");
for (var i = 0 ; i < highestIntervalId ; i++) {
clearInterval(i);
}
clearInterval(audioTimer)
// var highestIntervalId = setInterval(";");
// for (var i = 0 ; i < highestIntervalId ; i++) {
// clearInterval(i);
// }
}
});
});
... ...