在html中jquery相当于preload =“auto”?

时间:2013-09-29 13:25:35

标签: function onload pageload jquery

我的html脚本在页面ABC加载时播放声音:

<audio id="s"><source src=".../s.wav" preload="auto"/></audio>
<script type="text/javascript">var sample = document.getElementById("s"); sample.play(); s.volume='1';</script>

如何在jquery中实现preload="auto"功能?

0 个答案:

没有答案