$.ajax({ url : rootPath+"/doRegister", type: "post", data : dates, contentType : "application/x-www-form-urlencoded; charset=UTF-8", timeout : 30000, dataType :"json", cache : false, error : function(e) { console.log(4441); console.log(e) alert("用户注册网络连接出错~"); window.location.reload(); }, success : function(obj) { console.log(4442) //重启服务器,令牌失效,重新获取令牌 if (typeof (obj) == 'undefined' || obj == null) { window.location.reload(); } if (obj.rs) { window.location.href = rootPath+"/loginRule"; } else { alert(obj.msg); $("#_form_token_uniq_id").val(obj.token.token); } }
添加回答
举报
0/150
提交
取消