当 $.ajax
失败时,我找不到关于三个参数名称的文档。
现在,我正在使用:
.fail(function(A, B, C) {
最佳答案
根据 http://api.jquery.com/jQuery.ajax/ fail
回调应该得到:
jqXHR、textStatus、errorThrown
与 error
相同,但 error
已弃用:
Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
关于jquery - 在 jQuery 中发送给 .fail 的参数是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9847244/