日期:2014-05-16 浏览次数:20407 次
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<HTML>
<HEAD>
<TITLE> 声明测试</TITLE>
</HEAD>
<body>
<center><table bgcolor="jidwa" border="l">
<%!
public int count;
public String info()
{
return "hello";
}
%>
<% out.println(count++); %>
<% out.println(info()); %>
<%= info() %>
<%
for(int i=0; i<10; i++)
{
%>
<tr>
<td>
循环值:
</td>
<td><%=i%></td>
</tr>
<%
}
%>
</table>
</center>
</body>
</html>