ajax禁用怎么设置,ajax同步禁用按钮

  • Post author:
  • Post category:其他


$.ajax({

url: ‘Ajax_JQuery_BizBatch.aspx?action=SetBiz_CurrencyStockCustomerTraceSE‘,

type: ‘POST‘,

data: data,

async: true,

cache: false,

beforeSend: function () {

$(‘#btnSelfTail‘).linkbutton(‘disable‘);

},

error: function (XMLHttpRequest, textStatus) {

$(“#btnSelfTail”).linkbutton(‘enable‘);

},

success: function (RetData, textStatus) {

$(“#btnSelfTail”).linkbutton(‘enable‘);

}

}

});

原文:https://www.cnblogs.com/xiaxingxing/p/9335473.html