小程序判断ios还是android

const info = wx.getSystemInfoSync()
if (info.platform === 'android') {
  // android 需要执行的代码
} else {
  // ios 需要执行的代码
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-08-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-17
  • 2021-11-25
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案