其他分享
首页 > 其他分享> > 禁止微信链接分享,禁止转发,禁止收藏代码

禁止微信链接分享,禁止转发,禁止收藏代码

作者:互联网

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();

 }

 

标签:禁止,微信,WeixinJSBridge,addEventListener,attachEvent,else,onBridgeReady,转发,document
来源: https://www.cnblogs.com/yyy251/p/16327397.html