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!
This cannot be controlled, it can only be set by default
In WeChat, the browser can ban it through API. I checked QQ's developer API, and there should be no such API.
http://192.168.0.240/?_wv=3orThis 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>
Use QQ’s JS SDK to disable it, mqq.ui.setTitleButtons({
left: { title: "返回" }, right: { hidden: true } });
This cannot be controlled, it can only be set by default
In WeChat, the browser can ban it through API. I checked QQ's developer API, and there should be no such API.
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"){
}else{
}
</script>
Use QQ’s JS SDK to disable it,
mqq.ui.setTitleButtons({