提问人:SOJSON用户
提问日期:2019-09-24 11:19
热度:431
用JS怎么判断iPhone?
1条回答
我来回答
soゝso|
2019-09-24 11:20
var isIPhone = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);如果是iPhone手机打开,isIPhone就是true。