js判断设备型号
2018-04-10 本文已影响4人
我的昵称好听吗
1.判断是不是iphonx
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}
1.判断是不是iphonx
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}