js判断iPhone XS、iPhone XS Max、iPhone XR
2024-10-12 18:36:44
// iPhone X、iPhone XS
var isIPhoneX = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === && window.screen.width === && window.screen.height === ;
// iPhone XS Max
var isIPhoneXSMax = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === && window.screen.width === && window.screen.height === ;
// iPhone XR
var isIPhoneXR = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === && window.screen.width === && window.screen.height === ;
最新文章
- 1.C语言中的数据类型
- Linux服务器ftp命令找不到
- c point ccccc
- centos下apache安装后无法访问
- 桌面上嵌入窗口(桌面日历)原理探索(将该窗口的Owner设置成桌面的Shell 窗口,可使用SetWindowLong更改窗口的GWL_HWNDPARENT,还要使用SetWindowPos设置Z-Order)
- C#与SQLite数据库
- JS数组删除一个元素(根据值删)
- 网易云课堂_C++程序设计入门(上)_第2单元:丹青画松石– EGE图形库
- 信息处理,分而治之-- ESFramework 使用技巧
- C# API 大全
- USACO 2015 December Contest, Platinum Problem Max Flow【树链剖分】
- jquery ajax标准写法
- RocketMQ入门(生产者)_2
- angular 用拦截器统一处理http请求和响应 比如加token
- nodejs之crypto加密算法
- linux上安装mysql,亲试成功
- bootstrap引入文件方法
- linux c使用socket进行http 通信,并接收任意大小的http响应(五)
- 【Codeforces 3D】Least Cost Bracket Sequence
- 分布式全文搜索引擎ElasticSearch