uni-app元素节点操作

mounted() {
            uni.createSelectorQuery().select('#test').boundingClientRect(function(e){
                console.log(e)
                uni.pageScrollTo({
                    scrollTop: e.top,
                    duration: 800
                });
            }).exec()
  }

猜你喜欢

转载自blog.csdn.net/qq_37902065/article/details/85261725
今日推荐