日期:2014-05-17 浏览次数:20715 次
<% String teamName1 = new String(request.getParameter("teamName") .getBytes("ISO8859-1"), "UTF-8"); if(teamName1.contains("男")) { <input type="hidden" id="sex" name="athlete.sex" value="男" /> %> <script> alert("性别是男!"); </script> <% }else if(teamName1.contains("女")){ <input type="hidden" id="sex" name="athlete.sex" value="女" /> } %>
<% String teamName1 = new String(request.getParameter("teamName") .getBytes("ISO8859-1"), "UTF-8"); if(teamName1.contains("男")) { %> <input type="hidden" id="sex" name="athlete.sex" value="男" /> <% }else if(teamName1.contains("女")){ %> <input type="hidden" id="sex" name="athlete.sex" value="女" /> <% } %>