Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 917 Bytes

result.alert.md

File metadata and controls

43 lines (31 loc) · 917 Bytes

Result.alert

The alert function is established to show a alert dialog. But if with another alert, the alert messages will be connected.

Sample

var result = new Result();
result.alert("good morning!").alert("good night!");

API

CallingReturning
Result . alert ( message )Result
Result . alert ( message , params )Result
ParametersTypeDescription
messageStringThe 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.

paramsObjectThe params to replace "{param}" in the message.
{
	param1:value1,
	param2:value2
}