日期:2014-05-17 浏览次数:20741 次
<script type="text/javascript"> var arriveCityArray = new Array("","",""); arriveCityArray[0] = new Array("0", "丽江", "LIJIANG"); arriveCityArray[1] = new Array("1", "青岛", "QINGDAO"); arriveCityArray[2] = new Array("2", "临沧", "LINCANG"); arriveCityArray[3] = new Array("3", "林西", "LINXI"); arriveCityArray[4] = new Array("4", "临沂", "LINYI"); arriveCityArray[5] = new Array("5", "柳州", "LIUZHOU"); arriveCityArray[6] = new Array("6", "洛阳", "LUOYANG"); arriveCityArray[7] = new Array("7", "庐山", "LUSHAN"); arriveCityArray[8] = new Array("8", "泸州", "LUZHOU"); </script>
<script type="text/javascript"> var arriveCityArray = new Array("","",""); <% sql="SELECT CNO,CNAME FROM city"; rs=stmt.executeQuery(sql); int i=0; while(rs.next()){ %> arriveCityArray[<%=i%>] = new Array("", "<%=rs.getString("CNAME")%>", "<%=rs.getString("CNO")%>"); <% i++; } rs.close(); %> </script>