ajax

来源:互联网 发布:四年级奥数最优化问题 编辑:程序博客网 时间:2024/06/05 18:35

var xhr = new XMLHttpRequest();

xhr.open("POST","ajax.do",true);

xhr.onreadystatechange(){

if(xhr.readyState==4&&xhr.status==200){

alert("hello,ajax");

}

}

xhr.send();

0 0