tencent cloud

下拉刷新

PDF
聚焦模式
字号
最后更新时间: 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()
}
})


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈