其他分享
首页 > 其他分享> > 微信禁止分享

微信禁止分享

作者:互联网

<script>
        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();
        }
</script>

标签:document,微信,WeixinJSBridge,attachEvent,else,禁止,onBridgeReady,addEventListener,分享
来源: https://blog.csdn.net/xiaodongbai/article/details/120909351