打赏

微信屏蔽js分享、复制链接

页面内引入js(不放在页面内部不起作用)

$(function(){
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();
}
});

posted @ 2018-01-31 14:26  每天都要学一点  阅读(3861)  评论(2编辑  收藏  举报