onreadystatechange
-
The server looks at the onreadystatechange property and figures out what method to call .
服务器查看onreadystatechange属性确定要调用的方法。
-
This handler function was then assigned to the onreadystatechange property .
然后把这个事件处理函数分配给onreadystatechange属性。
-
You set its onreadystatechange property to a function , creating a closure in this case .
我们可以设置它的onreadystatechange属性为一个函数,在本例中将创建一个闭包。
-
The secret revolves around a simple property of XMLHttpRequest called onreadystatechange .
秘密就在于XMLHttpRequest的一个简单属性onreadystatechange。
-
You parse the document in the onreadystatechange function of the XMLHttpRequest object used to make the Ajax call .
您解析用于进行Ajax调用的XMLHttpRequest对象的onreadystatechange函数中的文档。
-
Set the xhr callback function . xhr . onreadystatechange ()
设置xhr回调函数。
-
An inner function named processResponse () is the callback passed to the request object through the onreadystatechange property .
内部函数名为processResponse(),是通过onreadystatechange属性传递给request对象的一个回调函数。
-
The only other important thing to note is the callback function , or , the closure created for the request 's onreadystatechange function .
除此之外,惟一需要注意的是回调函数,或者为请求的onreadystatechange函数创建的闭包。
-
The invocation of the onreadystatechange function on the httpRequest object is of particular importance to the functionality of this page .
httpRequest对象的onreadystatechange函数的调用对于本页面的功能实现非常重要。
-
Each time the readyState changes , the readystatechange event fires and the handler function attached via the onreadystatechange property is called .
每次readyState变化时,readystatechange事件就触发,由onreadystatechange属性指定的事件处理函数就被调用。
-
Earlier , I said that the server , once finished with a request , looks up what method to call in the onreadystatechange property of XMLHttpRequest .
前面提到,服务器在完成请求之后会在XMLHttpRequest的onreadystatechange属性中查找要调用的方法。
-
HTTP responses are handled asynchronously by a JavaScript callback function that is specified as the value of the XMLHttpRequest object 's onreadystatechange field .
HTTP响应都是由被指定为XMLHttpRequest对象的onreadystatechange字段值的JavaScript回调函数异步处理的。
-
In such cases , you need to override the onreadystatechange function of the XMLHttpRequest instance so that you can set a callback function for the asynchronous request .
在这种情况下,需要覆盖XMLHttpRequest实例的onreadystatechange函数以便您可以为这个异步请求设置一个callback函数。
-
This code is a great illustration of exactly what onreadystatechange means & every time the request 's ready state changes , updatePage () is called and you see an alert .
这段代码就是onreadystatechange意义的一个确切展示&每次请求的就绪状态发生变化时,就调用updatePage(),然后我们就可以看到一个警告了。
-
It gives a degree of control to the server , as well ; when the server finishes a request , it looks in the XMLHttpRequest object and specifically at the onreadystatechange property .
它也给了服务器一定程度的控制权,当服务器完成请求之后,会查看XMLHttpRequest对象,特别是onreadystatechange属性。
-
You 've already seen how to let the server know what to do when it 's finished : Set the onreadystatechange property of the XMLHttpRequest object to the name of the function to run .
现在我们已经看到如何告诉服务器完成后应该做什么:将XMLHttpRequest对象的onreadystatechange属性设置为要运行的函数名。
-
Make sure that when you set up your request , you set the callback function to updatePage (); to do this , set the onreadystatechange property of your request object to updatePage () .
确保在建立请求时,将回调函数设置为updatePage();要实现这种设置,可以将请求对象的onreadystatechange属性设置为updatePage()。
-
The closeRequest () method sets the onreadystatechange property to an empty function , calls the abort () method , and then frees the memory of the request object , using the delete operator of JavaScript .
closeRequest()方法将onreadystatechange属性设置为一个空函数,调用abort()方法并之后使用JavaScript的delete操作符释放request对象的内存。