屏蔽微信自带的分享功能菜单

function onBridgeReady(){
 WeixinJSBridge.call(‘hideOptionMenu‘);
}

if (typeof WeixinJSBridge == "undefined"){
    if( document.addEventListener ){
        document.addEventListener(‘WeixinJSBridgeReady‘, onBridgeReady, false);
    }else if (document.attachEvent){
        document.attachEvent(‘WeixinJSBridgeReady‘, onBridgeReady); 
        document.attachEvent(‘onWeixinJSBridgeReady‘, onBridgeReady);
    }
}else{
    onBridgeReady();
}

 

屏蔽微信自带的分享功能菜单

上一篇:Vue单页式应用(Hash模式下)实现微信分享


下一篇:Android Intent传输数据限制