(1)xmlhttp的send是传递参数用的,但是只有在使用post方式提交请求的时候才有用
如下:
xmlhttp.open("post",url,true);
xmlhttp.send(url);
(2)用get的话一般就是:
xmlhttp.open("get",url,true);
xmlhttp.send(null);
xmlHttp.send(null)与xmlHttp.send(url)
最新推荐文章于 2022-07-07 16:12:27 发布
本文深入探讨了XMLHttpRequest在HTTP请求中的应用,特别关注GET和POST方法的区别及用法,帮助开发者理解如何根据需求选择合适的请求类型。
2763

被折叠的 条评论
为什么被折叠?



