xmlhttp的send是传递参数用的,但是只有在使用post方式提交请求的时候才有用
如下:
xmlhttp.open("post",url,true); 
。。。
xmlhttp.send("data=data&data2=data2");
 
用get的话一般就是:
xmlhttp.open("get",url,true); 
。。。
xmlhttp.send(null);

posted on 2013-03-19 19:13  月亮之城  阅读(621)  评论(0编辑  收藏  举报