记住账号问题,cookie
// 用户名保存到cookie,暂略...
Cookie cookieAccount = new Cookie("empAccount",account.toString());
// 保留一天
cookieAccount.setMaxAge(3600 * 24 * 30);
cookieAccount.setPath("/");
cookieAccount.setDomain(".e1ht.com");
this.getResponse().addCookie(cookieAccount);
$(document).ready(function(){
var cks = document.cookie;
if(null != cks && "" !=cks){
var cookies = cks.split("; ");
for(var i = 0 ; i < cookies.length ; i++ ){
var account = cookies[i];
if(account.indexOf("empAccount")!=-1){
$("#account").val(account.substring(account.indexOf("=")+1));
$("#remember_emp").attr("checked",true);
}
}
}
});
http://wenku.baidu.com/view/14ff99c708a1284ac850432d.html js代码大全
cookies问题
http://blog.163.com/hgj_online/blog/static/4767424320082263757581/
http://mgc.ahau.edu.cn/article.asp?id=49