W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <body> <audio controls ondurationchange="myFunction()"> <source src="/i/horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> <script> function myFunction() { alert("The audio duration has changed"); } </script> </body> </html>