Method and device for loading page element
A page element and element technology, applied in the direction of program control device, program loading/starting, user interface execution, etc., can solve the problems of slow page loading and display speed, reduced GridView performance, time consumption, etc. In addition to the operation of controls, the effect of improving loading speed and loading efficiency, and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] See figure 1 The embodiment of the present invention provides a method for loading page elements, and the method specifically includes the following steps:
[0054] Step 101: Obtain the element list currently to be displayed from the element list collection.
[0055] When a user browses an interface through the terminal, the terminal obtains multiple pieces of data corresponding to the interface from the server, and each piece of data obtained is an element list, and the element list contains multiple page elements. Page elements can be buttons or input boxes, etc. The terminal composes the obtained multiple element lists into an element list collection, and stores the element list collection in the memory.
[0056] The terminal needs to load the page elements in the element list into the GridView to display the page elements to the user. A certain number of page elements can be loaded in the GridView each time. When the page elements in the element list need to be displayed...
Embodiment 2
[0121] See Figure 5 An embodiment of the present invention provides a device for loading page elements, and the device is used to execute the method for loading page elements provided in the above embodiment 1, and the device includes:
[0122] The obtaining module 201 is used to obtain the element list currently to be displayed from the element list collection;
[0123] The judging module 202 is configured to judge whether there is a cache control corresponding to the page element in the GridView according to the page elements included in the element list;
[0124] The loading module 203 is configured to load the page element into the cache control when the judgment module 202 judges that there is a cache control corresponding to the page element in the GridView;
[0125] The creation module 204 is used to create a control in the GridView according to the page element when the judgment module 202 judges that there is no cache control corresponding to the page element in the GridView...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


