简介这篇文章主要介绍了ajax同步禁用按钮(示例代码)以及相关的经验技巧,文章约793字,浏览量337,点赞数8,值得推荐!
$.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‘);
}
}
});