在 Page 中定義 onPullDownRefresh 處理函數,監聽該頁面用戶下拉刷新事件。javascript
例:html
首先要在app.json中配置Page({ onPullDownRefresh: function(){ wx.stopPullDownRefresh() } })