function isIphoneX(){ return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375) }
js判断是否是iphoneX机型
原文:https://www.cnblogs.com/sunxiaolong905417077/p/9552415.html