onAjaxError

当服务器响应错误时触发

boolean onAjaxError(object request);
requestobjectXML HTTP 请求对象
boolean指示事件的默认操作是否应继续执行(true)或被阻止(false

Example

gantt.attachEvent("onAjaxError", function(request){
    gantt.message({type: "error", text:`Http error ${request.status}!`})
    gantt.message(request.response)
    return true;
});

Related samples

Details

此事件可以被阻止。返回 false 将停止对该 AJAX 请求的任何进一步处理。

See also
Back to top