if (/android/i.test(navigator.userAgent)) {
alert("android")
}
if (/ipad|iphone|mac/i.test(navigator.userAgent)) {
alert("iphone");
}js判断安卓还是苹果机
最新推荐文章于 2024-08-30 14:50:04 发布
if (/android/i.test(navigator.userAgent)) {
alert("android")
}
if (/ipad|iphone|mac/i.test(navigator.userAgent)) {
alert("iphone");
}
9081
1165

被折叠的 条评论
为什么被折叠?
