var _loginUsers = "none"; var _loginState = "false"; document.write('
'); document.write(''); document.write(''); document.write(''); document.write('会员注册找回密码'); document.write('
'); var header_path = "http://21caas.cn/"; $(function(){ function CreateAjax() { var _username = $("#_username").val(); var _password = $("#_password").val(); var strvariable= "username="+_username+"&password="+_password; //alert(strvariable); $.post(header_path+"request/user.login"+extension, { username: _username, password: _password }, function(data){ //alert("Data Loaded: " + data); if(data==2) { alert("登录成功"); window.location.href = '/'; //window.reload(); //alertBox("正在登录,请稍后……"); //setTimeout("window.reload()", 3000); } else { alert("用户名或密码错误"); window.location.href = 'http://21caas.cn/index.php/login/'; } }); /* $.ajax({ type: "POST", url: header_path+"request/user.login"+extension, data: strvariable, success: function(html){ //alert(html); if(html==0) { alertBox("正在登录,请稍后……"); setTimeout("window.reload()", 3000); } else { window.location.href = 'http://21caas.cn/index.php/login/'; } } }); */ } var _button = $("#_login"); _button.click(function(){ CreateAjax(); }); });