if(data.result=="success"){
$.messager.alert('登录信息', '登录成功', "info", function(){
window.location="index";
});
}
else{
$.messager.alert('登录信息', data.result, "error", function(){
$("#password").attr("value","");
});
}
}
$.message.alert('title','content','type',function(){
alert("ok");
});
type:显示的图标类型
info、warning、error、question
alert是只有一个确认按钮的
$.message.prompt()
function temp(){
$.messager.prompt("提示", "请填写说明:", function (data) {
alert(data);
});
}
data是用户在弹出框中输入的内容
$.message.prompt("title","message",function(data){});