methods: {
isIos() {
const info = wx.getSystemInfoSync()
if (info.system.indexOf('Android') > -1) {
// console.log('安卓')
this.ios = false
} else {
// console.log('ios')
// uni.getDeviceInfo().deviceType
this.ios = true
}
},
},
mounted() {
this.isIos()
},
uniapp判断手机是安卓还是ios
猜你喜欢
转载自blog.csdn.net/qq_43770056/article/details/132355861
今日推荐
周排行