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