• 如果接收到一个响应那么请求对象会注册就绪状态4

    If a response is received, the request object registers a ready state of 4.

    youdao

  • 一个请求到达时任务开始进入就绪状态

    When a request arrives, the task starts in the ready state.

    youdao

  • 看到就绪状态3响应每个脚本、每个服务器甚至每个浏览器上都是不一样的。

    You'll find that your responses in ready state 3 vary from script to script, server to server, and browser to browser.

    youdao

  • 查看这种变化请使用如 清单5代码测试请求响应文本以及它们就绪状态

    To see this in action, use code like that shown in Listing 5 to test the response text of a request, as well as its ready state.

    youdao

  • 话说,服务器履行请求(HTTP就绪状态4)但是没有返回客户机预期数据

    In other words, the server fulfilled the request (meaning the HTTP ready state is 4), but is probably not returning the data expected by the client.

    youdao

  • 还有一些多次报告就绪状态1

    Still others will report ready state 1 multiple times.

    youdao

  • 所有文档规范都强调只有就绪状态4数据才可以安全使用

    All of the documentation and specifications insist that it's only when the ready state is 4 that data is safe to use.

    youdao

  • 其中一点,即就绪状态在下篇文章中详细讨论进一步了解HTTP请求阶段,可能设想的还

    The first of theseready states — is going to take up the bulk of the next article; you'll learn more about the stages of an HTTP request than you ever wanted to know.

    youdao

  • 下面让我们首先来看一下HTTP就绪状态

    I'll look at HTTP ready states first.

    youdao

  • 如果重新启用,错误路径回到就绪状态

    The faulty path will go back to ready status if you re-enable it.

    youdao

  • 也许期望任务就绪状态0123再到4实际上很少这种情况。

    You might expect to always see the ready state move from 0 to 1 to 2 to 3 to 4, but in practice, that's rarely the case.

    youdao

  • 另外,未初始化的就绪状态实际应用程序没有真正的用处的。

    Furthermore, the uninitialized ready state is pretty useless in practical applications.

    youdao

  • 然而由于服务器请求进行了应答,因此就绪状态设置4(即使应答不是请求期望也是如此)。

    However, the ready state will be set to 4 since the server answered the request (even if the answer wasn't what you wanted or expected for your request).

    youdao

  • 更好地看到代码效果,请使用FirefoxInternetExplorer因为两个浏览器都可以报告出请求过程中所有可能的就绪状态

    To get the most out of this code, use either Firefox or Internet Explorer since those two browsers both report all possible ready states during a request.

    youdao

  • 一旦我们理解请求过程发生各个就绪状态之后,接下来可以来看一下XMLHttpRequest对象另外一个方面了——responsetext属性

    Once you understand the various ready states that occur during a request, you're ready to look at another important piece of the XMLHttpRequest object — the responseText property.

    youdao

  • 很多Ajax应用程序中,看到一个回调函数,它负责检查就绪状态然后继续利用服务器响应返回的数据清单6所示。

    In many Ajax applications, you'll see a callback function that checks for a ready state and then goes on to work with the data from the server response, as in Listing 6.

    youdao

  • Opera上永远都不会看到两个就绪状态在Safari上则没有第一个(1)。

    On Opera, you'll never get those first two ready states and Safari drops the first one (1).

    youdao

  • 就绪状态类似,responsetext属性整个请求生命周期中也会发生变化

    Like the ready state, the value of the responseText property changes throughout the request's life cycle.

    youdao

  • 不过为了满足我们兴趣,请参见 清单2 的内容,其中显示了如何在 readyState设置 0 时来获取这种就绪状态

    Still, in the interest of being complete, check out Listing 2 which shows how to get the ready state when it's set to 0.

    youdao

  • 例如使用Opera 8.5时,所显示就绪状态情况更加糟糕

    For example, when using Opera 8.5, things are even worse with displayed ready states.

    youdao

  • 查看正在处理的请求就绪状态

    Viewing an in-progress request's ready state.

    youdao

  • 大部分Ajax编程的真实情况中,这种就绪状态唯一用法就是使用相同XMLHttpRequest对象多个函数之间生成多个请求

    The only use for this ready state in almost-real-world Ajax programming is if you make multiple requests using the same XMLHttpRequest object across multiple functions.

    youdao

  • 深入了解HTTP就绪状态

    Digging deeper into HTTP ready states.

    youdao

  • Safari实际上第一个就绪状态给丢弃了,并没有什么明显的原因说明为什么这样做;不过就是Safari的工作方式。

    Safari actually leaves out the first ready state and there's no sensible explanation as to why; it's simply the way Safari works.

    youdao

  • 然而如果不仅仅了解Ajax编程的常识,而是希望了解更多内容,需要熟悉就绪状态状态代码请求本身的内容。

    However, you will need to be fluent in ready states, status codes, and requests if you want to do more than just dabble in Ajax programming.

    youdao

  • 清单1相当简单;清单4稍微有点复杂但是它们开始要检查就绪状态获取responsetext属性

    Listing 1 is fairly simple; Listing 4 is a little more complicated, but to begin, both check the ready state and then grab the value (or values) in the responseText property.

    youdao

  • 就绪状态发生变化,将调用req . onreadystatechange属性指定函数(请参见清单17)。

    After the ready state changes, the function specified in the req.onreadystatechange property is invoked (see Listing 17).

    youdao

  • 注意必须调用open之前查看就绪状态

    Note that you've got to check the ready state before open is called.

    youdao

  • 请求就绪状态发生变化时,req.onreadystatechange指定函数调用。

    When the ready state of a request changes, the function specified in req.onreadystatechange is invoked. req.readystate contains one of the following status codes

    youdao

  • 请求就绪状态发生变化时,req.onreadystatechange指定函数调用。

    When the ready state of a request changes, the function specified in req.onreadystatechange is invoked. req.readystate contains one of the following status codes

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定