request.getQueryString()代表的含义

it2022-05-05  126

在jsp做分页的时候,有时候我们想获取get请求链接中的参数保留下来。比如客户端发送http://localhost/test.do?a=b&c=d&e=f通过request.getQueryString()得到的是a=b&c=d&e=fAPI 中注释写到:’意思是:获取带参数查询。          post方法传的参数,getQueryString()得不到,          它只对get方法得到的数据有效。

转载于:https://www.cnblogs.com/yuanchaoyong/p/7111802.html


最新回复(0)