网络 服务器返回文本;个人账户;请求返回的内容
ResponseText can also be useful in conjunction with XML response data.
responseText与XML响应数据结合时也会有用。
Like the ready state, the value of the responseText property changes throughout the request´s life cycle.
与就绪状态类似,responsetext属性的值在整个请求的生命周期中也会发生变化。
responseText is especially handy when the server needs to send very simple values to the client, avoiding the bandwidth and processing overheads of XML.
当服务器需要向客户机发送非常简单的值时,responseText 特别方便,它可以避免 XML 导致的带宽支出和处理支出。
In this situation, you use the responseText property of your request object, just as you would when the server sends you a non-XML response (see Listing 4).
在这种情况下,您要使用请求对象的responsetext属性,就像在服务器向您发送非xml响应时一样(参见清单4)。
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.
清单1相当简单;清单4稍微有点复杂,但是它们在开始时都要检查就绪状态,并获取responsetext属性的值。