function get_browser_system() { var userAgent = navigator.userAgent; if(userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger'){ return 'wechat'; }else if(/(iPhone|iPad|iPod|iOS)/i.test(userAgent)) { return 'ios'; }else if(/(Android)/i.test(navigator.userAgent)) { return 'android'; }else{ return 'other'; } }
js判断客户端类型
最新推荐文章于 2024-06-05 18:36:51 发布