收藏
回答

scroll-view下拉刷新卡顿怎么办?iphoneX 13.2系统;微信8.0.6版本

开发工具上调试正常,但是在手机上预览,下拉刷新时异常卡顿.....

代码:

 onRefresh() {
  查询后setData


<scroll-view
  scroll-y style="width: 100%; height: 100%;"
  refresher-enabled="{{true}}"
  refresher-threshold="{{10}}"
  refresher-default-style="white"
  refresher-background="#fae500"
  refresher-triggered="{{refreshTriggered}}"
  bindrefresherpulling="onPulling"
  bindrefresherrefresh="onRefresh"
  bindrefresherrestore="onRestore"
  bindrefresherabort="onAbort"
  >
    <view class="allView">
      <block wx:for="{{items}}" wx:key="XXXXX"> 
      ..........

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容