2
嗨我送通過Ajax請求,我想處理的東西時,Ajax請求發送如何在ajax請求發送時執行一些操作?
我用:
$('#shwall').ajaxStart(function(){
$('#shwall').html("<img alt=\"loading...\" src=\"img/ajax_loading_new.gif\"/>");
});
和我的Ajax請求的代碼就像下面:
$.ajax({
type : 'Post',
url : 'employee.jsp',
data: "emplist="+id,
success : function(data){
$('#employeereport').html(data);
}
});
但當我每次發送ajax請求時,我的頁面包含多個ajax請求:
$().ajaxStart(function(){});
下
代碼運行,但我不想這樣我想運行特定的Ajax請求 讓我怎麼做到這一點的代碼,
在先進的感謝...
由於其工作......這就是我想要的..... – swan