【小程序】使用uni-app搭建小程序环境---滚动位置
uni.createSelectorQuery().select(".comment").boundingClientRect((res)=>{ console.log(res); // console.log(_this.imgHeight ,_this.imgHeight * 27); uni.pageScrollTo({ duration:0, scrollTop:7614 - 44 }) }).exec();
作者:smile.轉角
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
欢迎关注我,一起进步!扫描下方二维码即可加我QQ