function wxPlayMusic(id){
if(window.WeiXinJSBridge){
WeiXinJSBridge.invoke('getNetworkType', {}, function(e){
playMusic(id);
}, false);
}else{
document.addEventListener("WeiXinJSBridgeReady", function(){
WeiXinJSBridge.invoke("getNetworkType", {}, function(e){
playMusic(id);
});
}, false);
}
}
网友评论