标签:
1. <audio src="..." controls="controls">..</audio>
2.
<audio src="1.ogg" id="audio">unsupport</audio>
<button onclick="clickA()">play/pause</button>
<script>
function clickA(){
var a = document.getElementById("audio");
if(a.paused){
a.play();
}else{
a.pause();
}
}
</script>
标签:
原文地址:http://www.cnblogs.com/htmlphp/p/4821545.html