获取系统信息: uni.getSystemInfoSync()
app端:
constquery=uni.createSelectorQuery().in(this)query.select('#box').boundingClientRect(data=>{console.log(data.height)}).exec();
H5端:
constquery=uni.createSelectorQuery();query.select('#box').boundingClientRect(data=>{console.log(data.height)}).exec();