English 中文(简体)
Jquery Ajax Returns Un Defin?
原标题:errorThrown in Jquery Ajax Returns Undefined?
  • 时间:2011-10-23 08:27:22
  •  标签:
  • jquery
  • ajax

根据 j:

When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error."

http://jsfiddle.net/RafuW/9/

< Question:

如果是的话,为什么要交回un specified。 错误代码

页: 1 我可以从jqXHR obj中获取的详细信息,但我希望回答errorThrown部分。

最佳回答

看来,你重新利用 does言支持这一论点。 如果在jsFiddle使用j Query 1.5.2,则其代码将返回

问题回答

即使你使用最近版本的jQuery,也存在另一个原因:errThrown<>。 可能空洞的是:有人向吉大港山区开发方案2提出这一请求。

This is because the property comes from the statustext property of the underlying XHR, and that property does not get populated for HTTP/2 requests.

More info here: Why is the statusText of my XHR empty?





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...