jquery问题 如何区分ajax的不同请求以实现两个不同的loading条的显示

2025-03-04 16:23:38
推荐回答(1个)
回答1:

$(function () {
//请求1
$("#btn_enter_inport").click(function () {
//操作
});
$("#btn_enter_inport").ajaxStart(function () {
$("#return_msg").html("数据加载中,请稍后...");
});
//请求2
$("#btn_enter_inport2").click(function () {
//操作
});
$("#btn_enter_inport2").ajaxStart(function () {
$("#return_msg2").html("数据加载中,请稍后...");
});
});