Differences between Ext. Get and Ext. Fly

Source: Internet
Author: User

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 ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.