Jquery的ajax第二次不发送请求,请帮忙看一下原因。
function lbtnStop_Click(operateType) {
var rows = grid.getSelecteds();
var l = rows.length;
if (l == 0) {
AlertErrorMessage("x0001");
}
else {
var s = "";
for (var i = 0; i < l; i++) {
var row = rows[i];
s += row.ID;
if (i != l - 1)
s += "|";
};
$.ajax({
url: "/Controls/MiniUI/Data/AjaxFinishDataService.ashx",
Type: "post",
data: {
ids: s,
operateType: operateType,
bllclassName: "Sale.Sale_QuotationSheetDetail",
finishInMaster: false
},
success: function (text) {
if (text == "True") {
alert("操作成功!");
grid.reload();