if (this.is_weixin()) {
    this.qixin = true
    this.browser = false
} else {
    this.qixin = false
    this.browser = true
}

 方法:

is_weixin () {
   return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
}

 

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-11-14
  • 2022-01-18
  • 2022-01-27
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2021-12-17
相关资源
相似解决方案