dlt.startPullDownRefresh
Introduction
Trigger the pull-down refresh and the animation of the pull-down refresh header, mimicking the user's manual pull-down refresh.
Parameters
Object object
Property | Type | Default | Required | Description |
---|---|---|---|---|
success | function | No | Callback function for a successful call | |
fail | function | No | Callback function for a failed call | |
complete | function | No | Callback function for the call's completion (executed for both successful and failed calls) |
Sample Code
dlt.startPullDownRefresh({
success(res) {
console.log('success: ', res);
},
});