This handler function was then assigned to the onreadystatechange property.
然后把这个事件处理函数分配给onreadystatechange属性。
Notice that we registered a handler (by setting the req. onreadystatechange property).
注意,我们注册了一个处理程序(通过设置req . onreadystatechange属性)。
The server looks at the onreadystatechange property and figures out what method to call.
服务器查看onreadystatechange属性确定要调用的方法。
应用推荐