$.ajax({ type: "post", url: "/check/token/"+token+"/"+uid+".action", cache:false, async:false, dataType:"json", success: function(data){ if(data.code!=200){ window.location.href="http://www.xxx.com" } } });
用于登陆验证
$.ajax({ type: "post", url: "/check/token/"+token+"/"+uid+".action", cache:false, async:false, dataType:"json", success: function(data){ if(data.code!=200){ window.location.href="http://www.xxx.com" } } });
用于登陆验证