https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html
在微信开发者工具调试时,这段代码本来是可以正常触发Scroll-view组件的下拉刷新,重新编译后又不行了,修改refresher-enabled="true"变为refresher-enabled="{{true}}"保存之后又可以正常触发Scroll-view组件的下拉刷新,重新编译后又不行了;如此反复试验,不管加不加{{}}符号都是保存后可以正常使用下拉刷新,重新编译后不行,在真机调试上一直触发不了...不知道是什么问题
<scroll-view class="post-list" style="height: {{postListHeight}}px;"
scroll-y="{{true}}"
scroll-top="{{scrollTop}}"
refresher-enabled="true"
bindrefresherrefresh="onRefresh"
refresher-triggered="{{scrollStatus}}"
bindscrolltolower="loadMore"
bind:refresherstatuschange="log"
>
<post list="{{postList}}" bind:updatePost="onPullDownRefresh"></post>
</scroll-view>
// 下拉刷新
onRefresh() {
// 开启刷新状态
this.setData({ scrollStatus: true });
console.log('开启');
setTimeout(() => {
this.setData({
// 关闭下拉刷新状态
scrollStatus: false,
});
}, 750);
},
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
同问 今天突然有问题了
同问,从昨天晚上八点后微信小程序scroll-view下拉刷新开始无法使用。