cxf1992
// iPhone X、iPhone XS
var isIPhoneX = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 375 && window.screen.height === 812;
// iPhone XS Max
var isIPhoneXSMax = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 414 && window.screen.height === 896;
// iPhone XR
var isIPhoneXR = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 2 && window.screen.width === 414 && window.screen.height === 896;

分类:

技术点:

相关文章:

  • 2021-05-04
  • 2022-01-02
  • 2022-01-02
  • 2021-09-15
  • 2021-09-27
  • 2022-01-02
  • 2021-05-05
  • 2021-09-03
猜你喜欢
  • 2021-10-17
  • 2021-09-12
  • 2018-11-07
  • 2021-06-10
  • 2021-05-04
  • 2021-10-28
相关资源
相似解决方案