post.....

post发送数据,

get发送数据(带参数)


KMJLK
var xhr = new XMLHttpRequest();
xhr.onload = function(){
console.log("请求已经完成");
}
xhr.open("post",'/list2',true);
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send('type=pad&count=30');