1.request.getParameter(key):
该方法根据表单name获取对应的值,获取多少个值就执行多少次该方法。
2.request.getParameterMap():
该方法得到的数据为Map<String,String[]>类型,采用String数组是防止表单中存在存在相同name,且该方法得到的值只能读不能改。
1.request.getParameter(key):
该方法根据表单name获取对应的值,获取多少个值就执行多少次该方法。
2.request.getParameterMap():
该方法得到的数据为Map<String,String[]>类型,采用String数组是防止表单中存在存在相同name,且该方法得到的值只能读不能改。