兩個方法不能用
$("#divload").ajaxStart(function(){
? $(this).html("正在請求數(shù)據(jù)...");
})
$("#divload").ajaxStop(function(){
? ?$(this).html("數(shù)據(jù)請求完成!");
})
沒有效果
$("#divload").ajaxStart(function(){
? $(this).html("正在請求數(shù)據(jù)...");
})
$("#divload").ajaxStop(function(){
? ?$(this).html("數(shù)據(jù)請求完成!");
})
沒有效果
舉報
2018-07-17
2017-07-30
或許可以看一下jquery的版本號,1.8版本以上只支持ajaxStart和ajaxStop綁定到document
2017-05-16
測試了下你的代碼是沒問題的,樓主再測試下
2017-05-13
方法的執(zhí)行需要使用function,前面沒有function沒法執(zhí)行,function應(yīng)該在前面書寫,格式出現(xiàn)問題