1
2
3
4
使用request对象获得所有的参数名称
5
6
7
8
9 Enumeration
e = request.getParameterNames();//获得所有的参数名称
10 while(e.hasMoreElements()){ //遍历Enumeration
11 String str = (String)e.nextElement(); //取出下一个元素值
12 out.println(str);//打印输出变量名称
13 }
14 %>
15
16
微信扫一扫
1
2
3
4
使用request对象获得所有的参数名称
5
6
7
8
9 Enumeration
e = request.getParameterNames();//获得所有的参数名称
10 while(e.hasMoreElements()){ //遍历Enumeration
11 String str = (String)e.nextElement(); //取出下一个元素值
12 out.println(str);//打印输出变量名称
13 }
14 %>
15
16
相关推荐