<body>
<audio src="b.mp3" controls="controls" preload >重播</span>
<script>
function repeat(){
var audio = document.getElementById('music');
audio.currentTime = 0;//重新播放
}
function control(){
var audio = document.getElementById('music');
if(audio!==null){
if(audio.paused){
audio.play();// 播放
}else{
audio.pause();// 暂停
}
}
}

</script>
</body>

相关文章:

  • 2021-11-17
  • 2022-02-20
  • 2021-12-18
  • 2021-07-21
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-12-25
  • 2021-09-17
相关资源
相似解决方案