You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varu=navigator.userAgent,app=navigator.appVersion;varisAndroid=u.indexOf('Android')>-1||u.indexOf('Linux')>-1;//android终端或者uc浏览器varisiOS=!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);//ios终端alert('是否是Android:'+isAndroid);alert('是否是iOS:'+isiOS);
UserAgent 判断微信客户端
// Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12F70 MicroMessenger/6.1.5 NetType/WIFIfunctionisWechat(){varua=navigator.userAgent.toLowerCase();return/micromessenger/i.test(ua)||/windows phone/i.test(ua);}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: