In addition to adding the suffix ?_wv=2 after the URL, can I write a code in my website source code to block it? Please answer!
習慣沉默2017-07-05 10:48:07
In WeChat, the browser can ban it through API. I checked QQ's developer API, and there should be no such API.
迷茫2017-07-05 10:48:07
http://192.168.0.240/?_wv=3
or
This is suitable for opening in WeChat
<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>
phpcn_u15822017-07-05 10:48:07
Use QQ’s JS SDK to disable it,
mqq.ui.setTitleButtons({
left: {
title: "返回"
},
right: {
hidden: true
}
});