// 判断当前机型是否为ios
export function getPhoneType () {
let ua = navigator.userAgent.toLowerCase()
return ua.includes('iphone') ? 'ios' : 'android'
}
h5 判断当前机型为android还是ios,安卓苹果
最新推荐文章于 2023-08-05 17:43:21 发布
// 判断当前机型是否为ios
export function getPhoneType () {
let ua = navigator.userAgent.toLowerCase()
return ua.includes('iphone') ? 'ios' : 'android'
}