jquery设置html5音量的方法
jquery设置html5音量的方法
<pre>
setTimeout(function() {
alert(1);
$('#music1')[0].volume = 0;
setTimeout(function() {
alert(2);
$('#music1')[0].volume = 1;
}, 6000)
}, 3000)
</pre>
这个一般用于 暂停音乐 然后继续播放音乐
如果遇到什么不懂的地方直接关注公众号留言(本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利。)
作者:newmiracle
出处:https://www.cnblogs.com/newmiracle/