2025-07-07 04:55
Java
HTML5 音频重新开始
html<audio id="myAudio" src="music.mp3"></audio>
html<button onclick="restartAudio()">重新开始</button><script> function restartAudio() { var audio = document.getElementById("myAudio"); audio.currentTime = 0; }</script>
html<button onclick="playAudio()">播放</button><button onclick="pauseAudio()">暂停</button><script> var audio = document.getElementById("myAudio"); function playAudio() { audio.play(); } function pauseAudio() { audio.pause(); }</script>
关于我们|免责条款|版权声明|侵权举报|隐私政策|联系我们
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号