JQuery中ajax错误处理之页面跳转

$.ajaxSetup({error: onRequestCompleted});
function onRequestCompleted(xhr,textStatus,errorThrown) {
    location.href = '/login';
}

 

posted on 2016-07-13 18:55  darkness_1  阅读(215)  评论(0)    收藏  举报

导航