title | sidebar_label |
---|---|
Taro.stopPullDownRefresh(option) |
stopPullDownRefresh |
停止当前页面下拉刷新。
支持情况:<img title="微信小程序" src={require('@site/static/img/platform/weapp.png').default} className="icon_platform" width="25px"/> <img title="抖音小程序" src={require('@site/static/img/platform/tt.png').default} className="icon_platform" width="25px"/> <img title="H5" src={require('@site/static/img/platform/h5.png').default} className="icon_platform" width="25px"/> <img title="React Native" src={require('@site/static/img/platform/rn.png').default} className="icon_platform" width="25px"/> <img title="Harmony" src={require('@site/static/img/platform/harmony.png').default} className="icon_platform" width="25px"/> <img title="Harmony hybrid" src={require('@site/static/img/platform/harmonyHybrid.png').default} className="icon_platform" width="25px"/>
(option?: Option) => void
参数 | 类型 |
---|---|
option | Option |
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
complete | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用失败的回调函数 |
success | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用成功的回调函数 |
onPullDownRefresh: function (){
Taro.stopPullDownRefresh()
}