ajax同步请求

        $.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" 
                }
            }

        });

  用于登陆验证

原文地址:https://www.cnblogs.com/handsomejunhong/p/8470654.html