XMLHttpRequest对象的open()和send()方法有什么区别? [英] What is the difference between open( ) and send ( ) methods of XMLHttpRequest object?
本文介绍了XMLHttpRequest对象的open()和send()方法有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
XMLHttpRequest
对象:
打开(< method>,< url>,< is async>))
发送(< request_data>)
- 这些有何不同?为什么我们都需要同时实现ajax?
- 此外,
< request_data>
是否可以通过这两种方法传递?
- How are these different and why do we need both to implement ajax?
- Also, can the
<request_data>
be passed through both the methods ?
推荐答案
open()无法打开连接;它仅配置请求,但网络活动仅以send()的调用开始
open() does not open the connection; it only configures the request, but the network activity only starts with the call of send ()
这篇关于XMLHttpRequest对象的open()和send()方法有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文