1.判断是不是iphonx
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}
1.判断是不是iphonx
function isIphoneX() {
return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375)
}
本文标题:js判断设备型号
本文链接:https://www.haomeiwen.com/subject/lmrnhftx.html
网友评论