【小程序】使用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();
原文地址:https://www.cnblogs.com/websmile/p/11790575.html