JS如何判断是不是iphoneX时间:2022-07-11 17:06:53 function isIphoneX(){ return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375) }