The alert function is established to show a alert dialog. But if with another alert, the alert messages will be connected.
var result = new Result();
result.alert("good morning!").alert("good night!");
Calling | Returning |
---|---|
Result . alert ( message ) | Result |
Result . alert ( message , params ) | Result |
Parameters | Type | Description |
---|---|---|
message | String | The information to show at the alert dialog.
xxxx{param1}yyy{param2}yy You can define "{param}" in the message, it will be replaced by the params. |
params | Object | The params to replace "{param}" in the message.
{
param1:value1,
param2:value2
} |