XMLHttpRequest对象发送请求

在js创建对象要用关键字new

回调在send前配置

onreadystatechange 回调函数

readystate  回调函数状态

responseText  响应数据

open('GET','URL+数据')  创建链接

send(null)  发送数据

猜你喜欢

转载自www.cnblogs.com/jintian/p/11210758.html