uni.getSystemInfo({
success(res) {
console.log(res.brand) //手机牌子
console.log(res.model) //手机型号
console.log(res.screenWidth) //屏幕宽度
console.log(res.screenHeight) //屏幕高度
})
.exec()
}
});
如下
文章来源:https://www.toymoban.com/news/detail-521445.html
官网链接:系统信息的概念 | uni-app官网 文章来源地址https://www.toymoban.com/news/detail-521445.html
到了这里,关于uni-app获取系统信息(手机牌子、手机型号、屏幕宽度、屏幕高度)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!