跳转到主要内容

onLoadError

Description

当调度器无法解析数据或服务器响应4xx或5xx状态码时触发

onLoadError: (response: XMLHttpRequest) => void

Parameters

  • response - (required) XMLHttpRequest - 一个Ajax请求对象

Example

scheduler.attachEvent("onLoadError", function(response){
dhtmlx.message("加载数据失败");
});

Details

该事件由 parseload 方法调用。

当由 parse 方法触发时,处理函数接收一个包含 responseText 属性的对象,该属性包含待解析的数据:

{
responseText: parseArgument
}
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.