日期:2014-05-16 浏览次数:20790 次
for (var e = 0; e < arr.length; e++) { $.ajax({ type: "POST", url: "Deliver.aspx?S_delClient=" + arr[e].CodelistId, async: false, dataType: "text", success: function (data) { if (data != "") { var pa = JSON.parse(data); debugger; for (var x = 0; x < pa.length; x++) { //判断状态 if (pa[x].ClientOutStatus != "2") { alert("请选择状态为已审核的单据进行反审核操作。"); } } } } }); return false; }
for (var e = 0; e < arr.length; e++) { $.ajax({ type: "POST", url: "Deliver.aspx?S_delClient=" + arr[e].CodelistId, async: false, dataType: "text", error:function(xhr){alert('出错\n'+xhr.responseText);},////// success: function (data) { if (data != "") { var pa = JSON.parse(data); debugger; for (var x = 0; x < pa.length; x++) { //判断状态 if (pa[x].ClientOutStatus != "2") { alert("请选择状态为已审核的单据进行反审核操作。"); } } } } }); return false; }