Answers
加载到
audio
与
jQuery
其实并没有多大关系..
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<audio id="hello" autoplay="true" controls="controls"></audio>
<script type="text/javascript">
var audio = document.getElementById('hello');
audio.src = 'http://dict.youdao.com/dictvoice?audio=hello&type=1';
setTimeout(function(){
$('#hello').attr('src', 'http://dict.youdao.com/dictvoice?audio=world&type=1');
}, 3000);
</script>
一盆新的米露
answered 9 years, 8 months ago