$.post("<%=root%>/login",data,function(resultData){
                
                  var result = eval(eval("("+resultData+")"));
                  if(result==1){
                      window.location.href="<%=root%>/index.jsp";
                  }else if(result==2){
                      alert("没有这个用户");
                  }else if(result==3){
                      alert("密码错误");
                  }else if(result==4){
                      alert("用户帐号已失效");
                  }
                  
            })

posted on 2014-09-16 18:39  yuyezhulan  阅读(239)  评论(0编辑  收藏  举报