表单
===========
<form action="
http://127.0.0.1/xxxx" method="post">
<input name="z" value="zzz">
<input name="a" value="aaa">
<input name="b" value="bbb">
<input name="c" value="ccc">
<input type="submit" value="提交" >
</form>
服务器端
===============
Enumeration e = request.getParameterNames();
while (e.hasMoreElements())
{
String name = (String) e.nextElement();
System.out.println(name);
}
打印结果
===============
c
z
b
a
为什么和表单中写的顺序不一样呢?? 如何才能一样??
搜索更多相关主题的帖子: