JSP第二次作业

 

 1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 3 <html>
 4 <head>
 5 </head>
 6 <body>
 7     <p>用for二重循环输出一个3行5列的table.</p>
 8     <table border="1">
 9         <%
10             for (int i = 0; i < 3; i++) {
11         %>
12         <tr>
13             <%
14                 for (int j = 0; j < 5; j++) {
15             %>
16             <td>wuhao</td>
17             <%
18                 }
19             %>
20         </tr>
21         <%
22             }
23         %>
24     </table>
25 </body>
26 </html>
复制代码

 

 

 


posted @ 2021-03-15 15:44  董文博。  阅读(44)  评论(0编辑  收藏  举报