uniapp页面滚动到页面可指定位置
时间:2020-05-08 12:49:36
收藏:0
阅读:900
uni.createSelectorQuery().select("#submit").boundingClientRect(function(res){
console.log("标签获取====>",typeof(res.top))
uni.pageScrollTo({
scrollTop:res.top,
duration: 300
});
}).exec()
原文:https://www.cnblogs.com/shiazhen/p/12849378.html
评论(0)