jquery设置html5音量的方法

jquery设置html5音量的方法
<pre>
setTimeout(function() {
alert(1);
$('#music1')[0].volume = 0;
setTimeout(function() {
alert(2);
$('#music1')[0].volume = 1;
}, 6000)
}, 3000)
</pre>
这个一般用于 暂停音乐 然后继续播放音乐

猜你喜欢

转载自www.cnblogs.com/newmiracle/p/11856151.html