HTML5 Audio stop function
方法一:釜底抽薪
Instead of stop() you could try with:
sound.pause(); sound.currentTime = 0;
This should have the desired effect.
但有网友说这个chrome浏览器不适用
方法二:偷梁换柱
var ply = document.getElementById('player');
var oldSrc = ply.src;// just to remember the old source
ply.src = "";// to stop the player you have to replace the source with nothing
参考资料