var mp3Url = "http://localhost:8084/image/audio/test.mp3";
var player = new Audio(mp3Url);
player.play(); //播放 mp3这个音频对象
//暂停
//player.pause();
//player.load();
js播放音频
于 2022-05-30 18:25:58 首次发布
var mp3Url = "http://localhost:8084/image/audio/test.mp3";
var player = new Audio(mp3Url);
player.play(); //播放 mp3这个音频对象
//暂停
//player.pause();
//player.load();