小程序判断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