<audio id=‘‘music src=‘‘ preload autoplay loop> <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> <script> //一般情况下,这样就可以自动播放了 var audio = document.getElementById("music"); audio.play(); //微信必须加入Weixin JSAPI的WeixinJSBridgeReady才能生效 document.addEventListener("WeixinJSBridgeReady", function () { audio.play(); }, false); </script>