关闭当前窗口

 windows:不会

    window.close();不起作用,windows下也报Scripts may close only the windows that were opened by it.

 

 微信:WeixinJSBridge.call('closeWindow');

  或者引入调用wx.closeWindow();

    只适用微信,其它入口比QQ里进入都关闭不了,报Uncaught ReferenceError: WeixinJSBridge is not defined

 

转载于:https://www.cnblogs.com/yanan7890/p/8391023.html

你可能感兴趣的:(关闭当前窗口)