scroll-view 中的属性upper-threshold中的属性值是number我就不怎么明白他怎么触发scrolltoupper 事件 这个事件怎么写 很纳闷
你自己理解问题,bindscrolltoupper这个就是绑定那个事件
可以设置多个值嘛 距离顶部50 和 100的时候分别触发scrolltoupper 事件
文档是这样解释的 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
而bindscrolltoupper是需要手动滑动的时候才触发 scrolltoupper 事件
upper-threshold=“50” 滑动到距离顶部50的时候不会触发scrolltoupper事件,请问楼主解决了吗?
<scroll-view class=“scroll-view_H” upper-threshold=“50” bindscrolltoupper=“aa” scroll-y style=“height: 100%”>
aa是那个事件