uniapp判断当前环境是ios还是android

判断是苹果:

uni.getSystemInfoSync().platform == 'ios'

安卓:

uni.getSystemInfoSync().platform === 'android'
原文地址:https://www.cnblogs.com/huanghuali/p/12579584.html