解决ios audio无法自动播放、循环播放的问题
2018-10-16// music自动播放 var music = document.getElementById(bgm); var state = 0; document.addEventListener(touchstart, function(){ if(state==0){ music.play(); state=1; } }, false); document.addEventListener(WeixinJSBridgeReady, function () { m