<audio controls>
<source src="http://www.example.com/audiotest.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
我将其插入到 html 页面中。它播放得很好,但我有意想将播放次数限制为一次。也就是说,即使再次单击播放按钮,也不应播放音频。那可能吗? 如果可能的话,你能不能在这里提供整个代码,因为我不懂很多编程的庞然大物。任何帮助表示赞赏。 干杯