错误写法:
function editdivisionmember(division_id,users_id){ $.ajax({ type:"POST", url:"/default/index/ajax/do/editdivisionmember", data:"division_id="+division_id+"&users_id="+users_id, success:function(response){ return response; } }); }
正确写法:
function deldivisionmember(divisionmember_id){
$.ajax({
type:"POST",
async:false,
url:"/default/index/ajax/do/deldivisionmember",
data:"divisionmember_id="+divisionmember_id,
success:function(response){
res = response;
}
});
return res;
}
本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/3429271.html,如需转载请自行联系原作者