JS与Ajax Get和Post在使用上的区别实例详解
发布时间:2020-12-15 23:26:17 所属栏目:百科 来源:网络整理
导读:get和post方法最大的不同在于: 1.get方法传值参数在url里面,而post参数放send里面 2.post方法必须加上 下面实例可以看get方法 xmlHttp.open("GET","for.php?text="+url,true); 在post里面表现为: xmlHttp.open("POST","for.php",true); xmlHttp.setReques
get和post方法最大的不同在于:1.get方法传值参数在url里面,而post参数放send里面 2.post方法必须加上
|