title | sidebar_label |
---|---|
Taro.startPullDownRefresh(option) |
startPullDownRefresh |
开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
支持情况:<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 icon_platform--not-support" width="25px"/>
React Native: 无动画效果
(option?: Option) => Promise<TaroGeneral.CallbackResult>
参数 | 类型 |
---|---|
option | Option |
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
complete | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用失败的回调函数 |
success | (res: TaroGeneral.CallbackResult) => void |
否 | 接口调用成功的回调函数 |
Taro.startPullDownRefresh()