赞
踩
<a class="btn btn-info btn-rounded" style="margin-right:10px" onclick="audioplay('${item.soundUrl}')">
var mp3 = null;
function audioplay(url){
console.log("播放录音---"+url);
if(mp3 != null){
mp3.pause();
mp3 = new Audio(url);
mp3.play();
}else{
mp3 = new Audio(url);
mp3.play(); //播放 mp3这个音频对象
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。