1)定义请求对象
var xhr = new XMLHttpRequest()
2)准备发送网络请求
第一个参数dataType: post get
第二个参数是后台请求地址
第三个参数是异步或者同步
xhr.open("", "", true)
3)发送网络请求
xhr.send()
4)执行回调函数:这个回调函数不只执行一次
xhr.onreadystatechange = function() {}
名称(*)
邮箱
网址
正文(*)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。