1
我有以下代碼:JQuery的 - 默認失敗()函數對Ajax
$.get('somescript.php', callback_fn).fail(function(){ alert("Error message!"); }); $.get('somescript2.php', callback_fn2).fail(function(){ alert("Error message!"); }); $.get('somescript3.php', callback_fn3).fail(function(){ alert("Error message!"); });
的失敗功能總是相同的。
我想這樣做,仍然顯示失敗錯誤,這有可能嗎?
$.get('somescript.php', callback_fn); $.get('somescript2.php', callback_fn); $.get('somescript3.php', callback_fn);