my.alert
Alert box.
Sample Code
copy
my.alert({
title: 'Tips',
content: 'Your bill for this month has been released',
buttonText: 'Show',
success: () => {
my.alert({
title: 'Click「Show」',
});
},
});Parameters
| Name | Type | Mandatory | Description |
| title | String | No | Title of the alert box |
| content | String | No | Contents of the alert box |
| buttonText | String | No | Button text, which is OK by default |
| success | Function | No | Callback function upon call success |
| fail | Function | No | Callback function upon call failure |
| complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure) |