微信开发-隐藏微信浏览器顶部菜单

functiononBridgeReady(){

WeixinJSBridge.call('hideOptionMenu');

        }

if(typeofWeixinJSBridge =="undefined") {

if(document.addEventListener) {

document.addEventListener('WeixinJSBridgeReady', onBridgeReady,false);

}elseif(document.attachEvent) {

document.attachEvent('WeixinJSBridgeReady', onBridgeReady);

document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);

            }

}else{

            onBridgeReady();

        }

你可能感兴趣的:(微信开发-隐藏微信浏览器顶部菜单)