uni app 判断安卓或ios

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

你可能感兴趣的:(uni app 判断安卓或ios)