js判断是否是iphoneX机型

function isIphoneX(){
    return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}

 

posted @ 2018-08-29 09:40  米虫的小圈子  阅读(2798)  评论(0编辑  收藏  举报