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 judges whether the mobile phone is Android or ios
Guess you like
Origin blog.csdn.net/qq_43770056/article/details/132355861
Ranking