Equivalent to ajaxSend and/or ajaxComplete with jsonp?
问题 Right now I use: $("#status") .on("ajaxSend", function() { $(this).show(); } ) .on("ajaxComplete", function() { $(this).hide(); } ); To get a status when ajax was working. This worked with json, but not with jsonp. Is there a way to get this to work with jsonp? Thank you. 回答1: This appears to be a bug in jQuery, or at least consideration for a bug. Unfortunately you can't do anything about it at this point except update your jsonp requests to use the same things on beforeSend and complete :