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

PropertyType

Required

Description
titleStringNoTitle of the alert box. 
contentStringNoContents of the alert box.
buttonTextStringNoButton text, which is OK by default.
successFunctionNoCallback function upon call success.
failFunctionNoCallback function upon call failure.
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure).