隐藏微信网页底部回退和前进栏可以用
window.location.replace(url); 有缓存就会出现回退栏 replace转换没有缓存
隐藏:
<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>
显示:
<script>
function onBridgeReady() {
WeixinJSBridge.call('showOp