关于Cookie[] cookies = request.getCookies();
String list="";
Cookie[] cookies = request.getCookies();
if( cookies != null && cookies.length>0 ) {
for( Cookie c:cookies ) {
if( c.getName().equals("listViewCookie") ) {
list += c.getValue();
}
}
list += request.getParameter("id") + ",";
}
这里的request.getCookies(),返回的是几个Cookie对象呢,而且list是保存在了一个Cookie中,为什么会循环遍历多个Cookie对象,感谢