I set a breakpoint in firebug and check my xhr object. ReadyState is 0, its status is 200. As far as I understand, if the status is 200, the request should be launched at least, and the ready state should be at least 1. Can someone explain what is happening?
I am using jquery $ .ajax to create an xhr object, but I don’t think it will affect the state and state of xhr.
The request is complete when readyState is 4, and not when state 200.
w3c , readyState xmlhttprequest. 0- > 4 (Uninitialized, Open, Sent, Recieving, Loaded), . , onreadystatechange, , .
readyState
onreadystatechange
spec status , ( ), , .
status
Source: https://habr.com/ru/post/1704161/More articles:Как я могу выводить отображение выполнения на консоль в Eclipse для удаленного С++? - c++How to create tables with sections and headers in ASP.NET? - c #How to get the lowest shared movie for 2 rows in a recursive table (SQL) - sqlFlex / Actionscript White to Transparent - flexLong lines of code and readability - c #How to run MS Office Word with .NET without add-ons? - c #How to completely remove the identifier - sqlreturn base array from vector - c ++transitions to iphone webpage - javascriptКак можно вернуть таблицу из функции Oracle без специального типа или курсора? - functionAll Articles