html5,手机端微信端页面音乐无法播放js,借鉴于原博客:http://www.cnblogs.com/wmhuang/p/5452259.html
document.addEventListener(‘DOMContentLoaded’, function () {
document.addEventListener(‘DOMContentLoaded’, function () {
function audioAutoPlay() {
var audio = document.getElementById(‘video’);
audio.play();
document.addEventListener(“WeixinJSBridgeReady”, function () {
audio.play();
},
false);
}
audioAutoPlay(); });