<html>
<head>
<title>读取客户端</title>
</head>
<body>
<table border="1" align="center">
<tr>
<td><th>Cookies Name</td>
<td><th>Cookies Value</td>
</tr>
<%
Cookie [] cook =request.getCookies();
if(cook != null)
{
Cookie cookie;
for(int i=0;i<cook.length;i++)
{
cookie = cook[i];
%>
<tr>
<td><%=cookie.getName()%></td>
<td><%=cookie.getValue()%></td>
</tr>
<%
}
}
%>
</table></body></html>
显示的情况总是不对称。为什么前面会有一个空格的?
<head>
<title>读取客户端</title>
</head>
<body>
<table border="1" align="center">
<tr>
<td><th>Cookies Name</td>
<td><th>Cookies Value</td>
</tr>
<%
Cookie [] cook =request.getCookies();
if(cook != null)
{
Cookie cookie;
for(int i=0;i<cook.length;i++)
{
cookie = cook[i];
%>
<tr>
<td><%=cookie.getName()%></td>
<td><%=cookie.getValue()%></td>
</tr>
<%
}
}
%>
</table></body></html>
显示的情况总是不对称。为什么前面会有一个空格的?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货