微信小程序-下拉事件(onPullDownRefresh)不觸發


1、app.json 沒有配置

"window": {
     /* 其他配置信息 */ 
    "enablePullDownRefresh":true
}

2、scroll-view 改為 wiew

scroll-view

<!--加載中  -->
<view class='loading-container' wx:if="{{LOADING}}">
  <text class='loading-title'>TITLE</text>
</view>

<scroll-view  scroll-y scroll-with-animation class="container" wx:else>
 <!--正文  -->
  <view class='header_text'>
 </view>
</scroll-view>

view

<!--加載中  -->
<view class='loading-container' wx:if="{{LOADING}}">
  <text class='loading-title'>TITLE</text>
</view>

<view  class="container" wx:else>
 <!--正文  -->
  <view class='header_text'>
 </view>
</view>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM