uni.getSystemInfo({
success(res) {
console.log(res.brand) //手機牌子
console.log(res.model) //手機型號
console.log(res.screenWidth) //屏幕寬度
console.log(res.screenHeight) //屏幕高度
})
.exec()
}
});
如下
文章來源:http://www.zghlxwxcb.cn/news/detail-521445.html
官網(wǎng)鏈接:系統(tǒng)信息的概念 | uni-app官網(wǎng)?文章來源地址http://www.zghlxwxcb.cn/news/detail-521445.html
到了這里,關(guān)于uni-app獲取系統(tǒng)信息(手機牌子、手機型號、屏幕寬度、屏幕高度)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!