标签:sts pat alert var list customer status lis .ajax
function delCustomer(id,num){
var r=confirm("友情提醒:确认要删除客户吗?");
if (r==true){
$.ajax({
type: "POST",
url: "${contextPath!}/my/customer/delCustomer",
data: "id="+id,
success: function(data){
if(data != null){
var jsonData = eval("("+data+")");
var message = jsonData.message;
var status = jsonData.status;
if(status == "OK"){
$(‘.lists‘).empty();
getList();
}else{
wxAlert(message);
return;
}
}
}
});
}
标签:sts pat alert var list customer status lis .ajax
原文地址:http://www.cnblogs.com/sho560/p/6026943.html