请修改此JavaScript $#volumeoninput propertychange touchend function let x = $#volumeval; apvolumex true; if x == 0 $#volume-icohtmli class=fa-soli
$("#volume").on('input propertychange touchend', function () { let volume = $("#volume").val(); let speed = $("#speed").val(); ap.volume(volume, true); ap.speed(speed); if (volume == 0) { $("#volume-ico").html(""); } else if (volume > 0 && volume <= 0.3) { $("#volume-ico").html(""); } else if (volume > 0.3 && volume <= 0.6) { $("#volume-ico").html(""); } else { $("#volume-ico").html(""); } if (speed == 1) { $("#speed-ico").html(""); } else if (speed == 1.5) { $("#speed-ico").html(""); } else if (speed == 2) { $("#speed-ico").html(""); } })
原文地址: http://www.cveoy.top/t/topic/hpS2 著作权归作者所有。请勿转载和采集!