摘要:
var xhr=new XMLHttpRequest(); xhr.open('get',url,true);//默认为真,则是异步模式,设置为false则为同步模式 xhr.send(null);//post请求必须设置主体内容,否则设置null xhr.onreadystatechange=function(){ //每当 readyState 改变时,就会触发 onreadystat... 阅读全文
posted @ 2018-12-09 13:03
D.M
阅读(63)
评论(0)
推荐(0)

浙公网安备 33010602011771号