$.ajax(
{
url:"authority/role!check.action",
async:false,
data:"id="+id,
success: function(data){
alert("data"+data.flag);
if(data.flag=="1"){
alert("不能修改自己的角色信息");
returnValue="1";
}
},
dataType:"json"
{
url:"authority/role!check.action",
async:false,
data:"id="+id,
success: function(data){
alert("data"+data.flag);
if(data.flag=="1"){
alert("不能修改自己的角色信息");
returnValue="1";
}
},
dataType:"json"
});
$.post("authority/role!check.action", {
id : id
}, function(dialogHtml) {
if(dialogHtml.flag=="1"){
alert("不能修改自己的角色信息");
returnValue="1";
}
},"json");