JQuery error option in $.ajax utility

前端 未结 5 520
感动是毒
感动是毒 2020-12-04 10:18

The documentation indicates that the error: option function will make available: XHR instance, a status message string (in this case always error) and an optional exception

5条回答
  •  我在风中等你
    2020-12-04 11:03

    This is an aside, but I think there's a bug in the code you submitted. The line:

     if (error = "timeout") {
    

    should have more equals signs in it:

     if (error == "timeout") {
    

提交回复
热议问题