播放网页音频

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<script>
    function play(url){

        var audio = document.createElement('audio');
        var source = document.createElement('source');
        source.type = "audio/mpeg";
        source.type = "audio/mpeg";
        source.src = url;
        source.autoplay = "autoplay";
        source.controls = "controls";
        audio.appendChild(source);
        audio.play();
        $('.btn').hide();
        $('.stop').show();
    }
</script>