//判断手机类型
function judgePhone() {
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机
/*alert('安卓机')*/
//屏蔽ios下上下弹性
$(window).on('scroll.elasticity', function (e) {
e.preventDefault();
}).on('touchmove.elasticity', function (e) {
e.preventDefault();
});
document.addEventListener("WeixinJSBridgeReady", function(){
$("#mc_play audio").load();
$("#mc_play audio").play();
}, false);
/*alert('苹果机')*/
} else if (u.indexOf('Windows Phone') > -1) {//winphone手机
}
}