ajax全局

$.ajaxSetup({
    complete: function (xhr) {
        xhr.promise().done(function (json) {
            if (json.errorNo == "9202") {
                $("#dialog").find(".modal-body p").html(json.errorMsg);  
            }
        });
   }
});        

控制全局的ajax,返回值为9202,是我情况下的无权限

原文地址:https://www.cnblogs.com/b0xiaoli/p/3832337.html