【小程序】使用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();

 

posted on 2020-04-17 20:34  smile轉角  阅读(417)  评论(0编辑  收藏  举报

导航