const info = wx.getSystemInfoSync()
if (info.system.indexOf('Android') > -1) {
console.log('安卓')
// android 需要执行的代码
this.systemType = 1;
} else {
this.systemType = 2;
console.log('ios')
// ios 需要执行的代码
}
时间:2022-05-07 04:01:02
const info = wx.getSystemInfoSync()
if (info.system.indexOf('Android') > -1) {
console.log('安卓')
// android 需要执行的代码
this.systemType = 1;
} else {
this.systemType = 2;
console.log('ios')
// ios 需要执行的代码
}