基础库2.11.2,开发者工具v1.02.2004102
<scroll-view class="case-scroll" style="padding-top:{{height}}px;height:{{scrollHeight}}"
refresher-enabled="true" refresher-threshold="10" refresher-default-style="black"
refresher-background="#555" refresher-triggered="true" bindrefresherrefresh="upper"
scroll-y="true" ></scroll-view>
js文件
upper(e){
console.log('upper')
},
修改scroll-view的padding-top属性会影响下拉刷新的距离,导致的结果是,下拉距离达不到刷新的距离,出发不了refresh
height:{{scrollHeight}}
this.setData({
scrollHeight:height+'px'
})
bindrefresherpulling和bindrefresherabort都可以执行,就是不走bindrefresherrefresh