跳转白页

    // 跳转白页
    outbrowser() {
      setTimeout(() => {
        let userAgent = navigator.userAgent
        if (userAgent.indexOf('Firefox') != -1 || userAgent.indexOf('Chrome') != -1) {
          window.open('', '_self').close()
          window.location.href = 'about:blank'
        } else {
          window.opener = null
          window.open('about:blank', '_self')
          window.close()
        }
      }, 1500)
    },

 

posted @ 2020-09-23 10:54  lzhflzjx  阅读(75)  评论(0编辑  收藏  举报