if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
if (typeof WeixinJSBridge == "undefined") {} else {
onBridgeReady();
}
} else {
onBridgeReady();
}
function onBridgeReady() {
//隐藏分享按钮
WeixinJSBridge.call('hideOptionMenu');
}