移动端(web端)js判断iphoneX及以上
var isIphonex = (res) => {
if (typeof window !== 'undefined' && window) {
return /iphone/gi.test(window.navigator.userAgent) && window.screen.height >= 812;
}
return false;
};
if (isIphonex()){
$(".isIphonex").css({"height": '.64rem'})
}