碎
碎梦清影
Unregistered / Unconfirmed
GUEST, unregistred user!
servlet中cookie:
Cookie cookie = new Cookie("ip",request.getRemoteAddr());
cookie.setMaxAge(60*60*24);
response.addCookie(cookie);
js中读cookie
alert(document.cookie) ;
不知这样写有什么问题?
Cookie cookie = new Cookie("ip",request.getRemoteAddr());
cookie.setMaxAge(60*60*24);
response.addCookie(cookie);
js中读cookie
alert(document.cookie) ;
不知这样写有什么问题?