一、 jQuery中的Ajax应用
1、 Ajax原生代码
var xhr=new XMLHttpRequest();
xhr.open(‘post’,’demo.php’);
xhr.setRequestHeader(‘content-type’,’application/x-www-form-urlencoded’);
xhr.onreadystatechange=function(){
if(xhr.readystate==4 && xhr.status==200){
//处理语句
}
};
xhr.send(‘id=10’);




