📄 02_37.jsp.bak
字号:
<html>
<head>
<title>一个计数器的例子</title>
<%@ page contentType="text/html;charset=GB2312" %>
</head>
<body>
<center>
<h3>
一个计数器的例子
</h3>
</center>
<%
Integer count=null;
{
count=(Integer)application.getAttribute("change");
if(count==null)
count=new Integer(0);
count=new Integer(count.intValue()+1);
application.setAttribute("change",count);
}
%>
<h3>欢迎你! <br><br>
你是访问本网页的第<%=count%>位客人
</h3>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -