tencent cloud

Pull-down refresh
Last updated: 2025-04-03 17:53:13
Pull-down refresh
Last updated: 2025-04-03 17:53:13

startPullDownRefresh

This API is used via wx.startPullDownRefresh(Object object).
Feature Description: Starts pull-down refresh. Upon invocation, it triggers the pull-down refresh animation, mirroring the effect of a user-initiated pull-down refresh. Please add "enablePullDownRefresh":true to the page configuration file.
Parameter and Description: Object.
Attribute
Type
Default value
Required
Description
success
function
-
No
Callback Function of Successful Interface Call
fail
function
-
No
Callback Function of Failing Interface Call
complete
function
-
No
Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)
Sample Code
wx.startPullDownRefresh()

stopPullDownRefresh

This API is used via wx.stopPullDownRefresh(Object object).
Feature Description: Disables pull-down refresh on the current page. Please add "enablePullDownRefresh":true to the page configuration file.
Parameter and Description: Object.
Attribute
Type
Default value
Required
Description
success
function
-
No
Callback Function of Successful Interface Call
fail
function
-
No
Callback Function of Failing Interface Call
complete
function
-
No
Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations)
Sample Code
Page({
onPullDownRefresh () {
wx.stopPullDownRefresh()
}
})

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback