const type = uni.getSystemInfoSync().uniPlatform
console.log(type) // app
uniapp判断当前运行环境 app h5 微信小程序 百度小程序_uni.getsysteminfosync().uniplatform-CSDN博客
本文介绍了如何在UniApp项目中使用`uni.getSystemInfoSync().uniPlatform`来判断当前运行的应用环境,包括App、H5、微信小程序和百度小程序。
const type = uni.getSystemInfoSync().uniPlatform
console.log(type) // app
uniapp判断当前运行环境 app h5 微信小程序 百度小程序_uni.getsysteminfosync().uniplatform-CSDN博客

被折叠的 条评论
为什么被折叠?
