//判断安卓还是iOS judgePlatForm(){ let platform=uni.getSystemInfoSync().platform if(platform=='ios'){ console.log('我是iOS') }else if(platform=='android'){ console.log('我是安卓') } },