<scroll-view scroll-y="true" style="height: 100%;" bindscrolltolower="refesh" bindscrolltoupper="refesh">
"enablePullDownRefresh": true
refesh() {
console.log(1)
},
都写了 ,有下拉时的动画 ,不执行 refesh事件
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | 下拉刷新 | 客户端 | 8.9 | 2.2.2 |
1 个回答
page和scroll-view的下拉是冲突的吧,enablePullDownRefresh对应page,bindscrolltoupper对应scroll-view
这样也不行
额,不是这样用的,
onPullDownRefresh()了解下,scroll不需要在json里使用,看下文档
<scroll-view scroll-y="true" style="height: 100%;" bindscrolltoupper="onPullDownRefresh" >
onPullDownRefresh() {
console.log(1)
},
不好意思 ,第一次写小程序,请多多指教 。
这样 不打印 有动画
不需要嵌套scroll,page自带onPullDownRefresh和onReachBottom