tencent cloud

腾讯云超级应用服务

下拉刷新

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2025-04-03 17:53:13

startPullDownRefresh

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

stopPullDownRefresh

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


Ajuda e Suporte

Esta página foi útil?

comentários