小程序判断ios还是android

小程序判断ios还是android

const info = wx.getSystemInfoSync()
if (info.platform === 'android') {
  // android 需要执行的代码
} else {
  // ios 需要执行的代码
}
posted @ 2020-09-15 15:53  CV攻城狮  Views(1925)  Comments(0Edit  收藏  举报