下拉刷新

最近更新时间:2023-10-20 15:19:16

我的收藏

startPullDownRefresh

该 API 使用方法为 wx.startPullDownRefresh(Object object)
功能说明:开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
参数及说明:Object object。
属性
类型
默认值
必填
说明
success
function
-
接口调用成功的回调函数
fail
function
-
接口调用失败的回调函数
complete
function
-
接口调用结束的回调函数(调用成功、失败都会执行)
示例代码
wx.startPullDownRefresh()

stopPullDownRefresh

该 API 使用方法为 wx.stopPullDownRefresh(Object object)
功能说明:停止当前页面下拉刷新。
参数及说明:Object object。
属性
类型
默认值
必填
说明
success
function
-
接口调用成功的回调函数
fail
function
-
接口调用失败的回调函数
complete
function
-
接口调用结束的回调函数(调用成功、失败都会执行)
示例代码
Page({
onPullDownRefresh () {
wx.stopPullDownRefresh()
}
})