/**
 * 关闭页面,兼容各浏览器(解决ie提示框问题)
 */
function closeWindow(){
  if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Chrome")!=-1) {
    window.location.href = 'about:blank'
    window.close()
  } else {
    window.opener = null
    window.open('', '_self', '')
    window.close()
  }
}

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2021-08-29
  • 2021-11-30
  • 2021-10-14
  • 2021-05-16
  • 2021-07-10
猜你喜欢
  • 2022-01-26
  • 2021-12-23
  • 2021-08-28
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案