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