看板 java 關於我們 聯絡資訊
不曉得這樣是不是你要的... <% TestJava.get(); String output=""; for (int i = 0; i < TestJava.List.size(); i++) { output = TestJava.List.get(i).id + "\t" +TestJava.List.get(i).test + "\n" ; %> output=<%=output%> <% output = "<table border=2 cellpadding=2 cellspacing=2 width=1048> <tr><td width=38>"+ output.replaceAll("\n", "</td></tr><tr> <td>"); output = output.replaceAll("\t", "</td><td>") + "</tr></table>"; %> output=<%=output%> <% } %> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.254.206.21
tool11:謝謝^^ 可以印出來了謝謝t大 06/04 22:37