[reprint] extjs sets the timeout of Ajax request

With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>

In the Ajax requests in extjs, the default timeout of ext.ajax.request is 30 seconds. Sometimes we need to set a longer time for time-consuming operations. At this time, we need to change the timeout of ext.ajax.requse to a longer time. We can set the request timeout through ext.ajax.timeout

For example, if we have a time-consuming request that takes more than 30 seconds, we can modify the timeout by adding this statement before the code requested by ext.ajax.request

Ext.Ajax.timeout=90000;// 90 seconds

params:{dataï¼› data},
success:function (response, option) {
// your business code
failure:function () {alert (‘communication failure ‘);}


The first statement in the above paragraph changes the ext.ajax.request request timeout to 90 seconds

Note: the original text is reprinted from the IT technology house of the blogger’s personal station. The original text links extjs to set the timeout time of Ajax request_ It technology house

bloggers personal technology exchange group: 960640092, WeChat blogger official account is as follows:

Similar Posts: