首页 > 其他分享 >判断设备系统和浏览器

判断设备系统和浏览器

时间:2022-10-13 14:46:39浏览次数:63  
标签:iPad 判断 浏览器 var test userAgent navigator 设备

var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
var isWindows = /windows|win32/i.test(navigator.userAgent);
var isAndriod = /andriod/i.test(navigator.userAgent);
var isIos = /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent);
var isWeChat = /MicroMessenger/i.test(navigator.userAgent);

标签:iPad,判断,浏览器,var,test,userAgent,navigator,设备
From: https://www.cnblogs.com/yycc11/p/16788090.html

相关文章