Latency loading of Ext, ext latency
You may have encountered the following situations when using extjs with multiple threads:
When rendering several components at the same time, if the component content is dynamically read, sometimes the component content is not correctly rendered. For example, if two forms are rendered at the same time, the form fields are dynamically obtained, and the fields in form2 overwrite the fields in form1. This is because extjs is an asynchronous operation, and all loads are simultaneously accessed. There are multiple methods to avoid this problem. Here we provide one: extjs delays loading tasks.
The following is the task code:
// Create a delayed loading object var task = new Ext. util. delayedTask (function () {// put the code snippet getActNameChanged (); // alert (" ");}); // call the delay method of the delayed loading object. The execution parameter is millisecond. In this example, the task is executed with a latency of 0.1 seconds. delay (100 );
If you have any questions, please leave a message