Ext. Get
Ext. Get () can receive these types of parameters, such as htmlelement, ext. element, and struct,
The new instance. The following are three types:
VaR el1 = ext. Get ('elid'); // the ID of the receiving element.
VaR EL2 = ext. Get (el1); // accepts Ext. Element
VaR EL3 = ext. Get (el1.dom); // accept htmlelement
Ext. Fly
Ext. Fly has the same parameters as Ext. Get, but its built-in control returns Ext. element.
The method is completely different. Ext. Fly never saves the reference of the object.
Independent object. In fact, the difference lies in the "cache", because of the cache, ext. Get needs
When each element is referenced, the cache is formed. If the same call is made
Ext. Fly does not have a so-called caching mechanism. If you get anything, you will be returned. It is not used multiple times.
Use this element "one-time" to use Ext. Fly (for example, to execute a single task ).
Example of Ext. Fly:
// You can reference this element once. It will be finished after the initialization.
Ext. Fly ('elid'). Hide ();