关于Scrollview滑动事件bindscroll参数的问题

发布于 6 年前作者 xiena712 次浏览最后编辑 6 年前来自 ask

关于官文微信组件scrollview的bindscroll事件后面的参数具体是啥意思?

bindscrollEventHandle
滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY}
1 回复
minghu
minghu1 楼4 年前

给你的bindscroll的方法中,带个参数e,然后在方法里把e,console.log(e),出来看看,你就明白了