//以验证用户信息并提交到后台为列 function SubmitInfo() { var data = { reType: "", //注册来自 userID: "", //平台账号 userPWD: "", //用户密码 checkCode: ""//邀请码 }; data.userID = $("#chUserID").val(); data.userPWD = $("#chUserPWD").val(); data.reType = reType; data.checkCode = strInviteCode; if (data.userID == "" || data.userID==null) { alert("平台账号不能为空!"); return; } if (data.userPWD == "" || data.userPWD == null) { alert("密码不能为空!"); return; } strCompanyName = escape(strCompanyName); $.ajax({ cache: false, async: false, url: '../../Ajax/Login/Register.ashx?Type=CheckUserRegisterInfo' + "&strCompanyName=" + strCompanyName, data: data, success: function (result) { result = eval('(' + result + ')'); alert(result.Msg); if (result.Success) { $("#chUserID").val(""); $("#chUserPWD").val(""); window.location.href = "../../UserLog.aspx"; } } }); }
1