<html>
<body>
<p>单击该按钮可创建一个带控件的 AUDIO 元素。</p>
<button onclick="myFunction()">试一试</button>
<br><br>
<script>
function myFunction() {
var x = document.createElement("AUDIO");
x.setAttribute("src","/i/audio/song.mp3");
x.setAttribute("controls", "controls");
document.body.appendChild(x);
}
</script>
</body>
</html>