uniapp 锚点滚动报错(h.push is not a function)

实现:锚点滚动到指定位置
uni.createSelectorQuery().in(this).select("#one").boundingClientRect(data => { uni.pageScrollTo({ duration:200, scrollTop: that.scrollTop + data.top-44 }); }).exec();

问题:h5上一切正常,app上只有初次事件触发—页面滚动是正常的,再次触发时,就报错,是这样的报错:

//uniappnmsl
h.push is not a function  

解决:

//设置duration  这里是页面滚动时的滚动效果
duration:200  =>  duration:0,
原文地址:https://www.cnblogs.com/fanqiuzhuji/p/12395266.html