关闭微信网页

关闭
history.pushState({page : 'state2'},'state','#state2');
window.onpopstate = function(event) {
       if (event.state.page === 'state1') {
              WeixinJSBridge.call('closeWindow');
       }
 }
history.pushState({page : 'state1'},'state','#state1');

你可能感兴趣的:(关闭微信网页)