uniapp判断浏览器还是app

130 阅读1分钟
const type = uni.getSystemInfoSync().uniPlatform
console.log(type) // app就是app  web就是浏览器