audio切换

实现播放当前音频,暂停之前播放的音频
$('audio').on('play', function () { 
$('audio').not(this).each(function () 
{ $(this)[0].pause(); $(this)[0].currentTime = 0.0; });
 })



猜你喜欢

转载自blog.csdn.net/qq_37034181/article/details/79325554