ajax的交互流程有哪几步?

1)创建ajax对象xhr = new XMLHttpRequest2)规定请求地址xhr.open(method,url,async)3)等待服务器相应xhr.onload4)向服务器发送请求xhr.send()

发表评论