get是指通过url来传递参数
你虽然设置了post,但是你并没有发送参数内容var content="text1=hehe&text2=haha";
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("POST", "Default.aspx", true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.send(content);
你虽然设置了post,但是你并没有发送参数内容var content="text1=hehe&text2=haha";
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("POST", "Default.aspx", true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.send(content);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货