xmlhttp的send是傳遞參數用的,但是只有在使用post方式提交請求的時候才有用
如下:
xmlhttp.open("post",url,true);
。。。
xmlhttp.send("data=data&data2=data2");
用get的話一般就是:
xmlhttp.open("get",url,true);
。。。
xmlhttp.send(null);