hylCodeHouse
判断机型是否为iphoneX
isIPhoneX() {
                var u = navigator.userAgent;
                var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
                if (isIOS) {
                    if (screen.height == 812 && screen.width == 375) {
                        return true;
                    } else {
                        return false;
                    }
                }
            },

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-11-28
  • 2021-12-18
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-10
猜你喜欢
  • 2021-11-30
  • 2021-12-04
  • 2021-12-04
  • 2021-11-27
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2022-01-07
相关资源
相似解决方案