一、提示窗口
alertMsg.confirm('确定打开吗?',{
onCall:function(){
$.ajaxSettings.global = false;
$.ajax({
type:"GET",
url:"${basePath}grow/cream/deleteExp.do?expId=expId",
contentType:"application/json; charset=utf-8",
dataType:"json",
success:function(data){
if(data.code = '200'){
alertMsg.correct('删除示范校经验分享成功!',{
okCall: function () {
window.location.href='${basePath}grow/cream/expList.do';
}
})
}else if (data.code == '500') {
alertMsg.error(data.msg);
}
},
error: function (item) {
alertMsg.error("删除示范校经验分享失败");
}
})
}
})
二、错误窗口
alertMsg.error('请选择一条记录!');