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

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

 

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

导航