如何屏蔽微信消息右上角的分享到朋友圈按钮

时间:2024-03-04 17:15:52
 <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>