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 }