What is the difference between open( ) and send ( ) methods of XMLHttpRequest object?

前端 未结 3 852
醉梦人生
醉梦人生 2021-02-20 06:06

XMLHttpRequest object:

open ( , , )
send () <

3条回答
  •  一向
    一向 (楼主)
    2021-02-20 06:32

    The HTTP and HTTPS requests of the XMLHttpRequest object must be initialized through the open method. This method must be invoked prior to the actual sending of a request to validate and resolve the request method, URL, and URI user information to be used for the request. This method does not assure that the URL exists or the user information is correct. This method can accept up to five parameters, but requires only two, to initialize a request.

提交回复
热议问题