WeChat Open Platform

Mini Programs Documentation

Pull Down Refresh

onPullDownRefresh

Defines onPullDownRefresh processing function on a page and monitors user pull down refresh events on this page.

  • enablePullDownRefresh needs to be activated from the config window option.
  • After the data refresh has been processed, wx.stopPullDownRefresh can stop the pull down refresh on the current page.

wx.stopPullDownRefresh()

Stops pull down refresh on the current page.

Sample code:

Page({
  onPullDownRefresh: function(){
    wx.stopPullDownRefresh()
  }
})