토론 » 제작 요청

how to create a script that you can a music player in html?? help pls

§
게시: 2018-08-17

how to create a script that you can a music player in html?? help pls

hello! I'm looking for a script that will play music.

Does a script like this already exist out there?

§
게시: 2018-08-17
수정: 2018-08-17
<audio id="player"></audio>
<div onclick="let p=document.getElementByID`player`; p.src='./song.mp3'; p.play()">Click me</div>

답글 게시

답글을 게시하려면 로그인하세요.

长期地址
遇到问题?请前往 GitHub 提 Issues。