【发布时间】:2018-06-26 10:49:59
【问题描述】:
这是窃听还是什么?请帮我。我正在编写一个网站,但它不起作用。我使用谷歌浏览器。是否存在兼容性问题?
<audio autoplay id="myaudio" allow="autoplay">
<source src="http://soundbible.com/mp3/Fuse Burning-SoundBible.com-1372982430.mp3.mp3" type="audio/mpeg">
</audio>
<script> document.getElementById('myaudio').play(); </script>
【问题讨论】:
-
http://soundbible.com/mp3/Fuse Burning-SoundBible.com-1372982430.mp3.mp3不存在。删除.mp3之一,然后它会工作。
标签: javascript html