百度小程序

1 getSystemInfoSync().windowHeight // 窗口的高度
2 createSelectorQuery()
.select('css选择器')
.boundingClientRect()
.exec(rect => {console.log(rect, 可以得到某个元素的高度)})

posted @ 2020-07-06 18:44  Running00  阅读(100)  评论(0编辑  收藏  举报