首页 > 代码库 > jq弹框确认

jq弹框确认

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 = http://www.mamicode.com/eval("("+data+")");
        var message = jsonData.message;
        var status = jsonData.status;
        if(status == "OK"){
          $(‘.lists‘).empty();
          getList();
        }else{
          wxAlert(message);
          return;
        }

      }
    }
  });
}

jq弹框确认