<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript">
function ionclick(){
alert("切歌成功");
document.getElementById("next").src="canon.flac";
}
</script>
</head>
<body>
<audio id="next" src="audio.mp3" controls autoplay>亲 您的浏览器不支持html5的audio标签</audio>
<input type="button" value="切歌" onclick="ionclick();">
</body>
</html>
今天我开始学JS了切歌
最新推荐文章于 2022-09-14 06:47:40 发布