//识别苹果X
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}
if (isIphoneX()) {
//为iphoneX
}
//识别苹果X
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}
if (isIphoneX()) {
//为iphoneX
}