CN110457084A - A kind of loading method and device - Google Patents

A kind of loading method and device Download PDF

Info

Publication number
CN110457084A
CN110457084A CN201910620248.0A CN201910620248A CN110457084A CN 110457084 A CN110457084 A CN 110457084A CN 201910620248 A CN201910620248 A CN 201910620248A CN 110457084 A CN110457084 A CN 110457084A
Authority
CN
China
Prior art keywords
list
data source
component
loading
style control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910620248.0A
Other languages
Chinese (zh)
Other versions
CN110457084B (en
Inventor
孙奇
吕庆春
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910620248.0A priority Critical patent/CN110457084B/en
Publication of CN110457084A publication Critical patent/CN110457084A/en
Application granted granted Critical
Publication of CN110457084B publication Critical patent/CN110457084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

Present application illustrates a kind of loading method and devices.In this application, system list component is obtained, registers with data source in the system list component, and, register with the mapping relations between the Data Identification of the data source and the class name of the list style control for loading the data source;The corresponding list style control of the class name is obtained in multiple the presets list pattern controls;The data source is loaded onto list based on the list style control.So, even if the type of data source expands, since the data source of the list in the application is located in system list component, i.e. the data source of list is by system list assembly management, it is therefore not necessary to sentence be judged using a large amount of if, else, so that the complexity of service code can be reduced compared with the prior art, the readability for promoting service code, so that service code can be easier to be extended.

Description

A kind of loading method and device
Technical field
This application involves field of computer technology, more particularly to a kind of loading method and device.
Background technique
With the development of internet technology, the content in the page in terminal is also more and more abundant, for example, list etc..
When needed in the page list to be shown be it is multiple when, in the callback method of list, generally require by if, Else judges sentence to judge the type of data source, then determines list style control according to the type of data source, is then based on List style control loads data source in the page, and then realizes display list.
However, it is found by the inventors that the type of data source can also expand as type of business constantly expands, so will lead to Rule of judgment is very more, and a large amount of if, else are flooded in entire code and judges sentence, causes the complexity of code high, readable Property is poor.
Summary of the invention
In order to solve the above technical problems, present application illustrates a kind of loading method and devices.
In a first aspect, present application illustrates a kind of loading methods, which comprises
System list component is obtained, registers with data source in the system list component, and, register with the data source Data Identification and the list style control for loading the data source class name between mapping relations;
The corresponding list style control of the class name is obtained in multiple the presets list pattern controls;
The data source is loaded onto list based on the list style control.
In an optional implementation, the register flow path of the data source and the mapping relations includes:
Obtain the Data Identification of the data source and the data source;
Obtain the class name with the list style control for loading the data source;
Generate the mapping relations between the Data Identification and the class name;
The data source and the mapping relations are registered in the system list component.
It is described that the data source and the mapping relations are registered in the system column in an optional implementation In table component, comprising:
The category file of the list class is obtained, the registration side of list style control is included at least in the category file Method;
The data source and the mapping relations are registered in the system list component according to the register method.
In an optional implementation, the method also includes:
The category file of the list class is obtained, further includes the callback method of the data source in the category file;
The callback method is registered in the system list component.
In an optional implementation, the method also includes:
Multiple the presets list pattern controls are generated based on description components agreement.
Second aspect, present application illustrates a kind of loading device, described device includes:
First obtains module, for obtaining system list component, registers with data source in the system list component, with And register with reflecting between the Data Identification of the data source and the class name of the list style control for loading the data source Penetrate relationship;
Second obtains module, for obtaining the corresponding list sample of the class name in multiple the presets list pattern controls Formula control;
Loading module, for the data source to be loaded onto list based on the list style control.
In an optional implementation, described device further include:
Third obtains module, for obtaining the Data Identification of the data source and the data source;
4th obtains module, for obtaining the class with the list style control for loading the data source Name;
First generation module, for generating the mapping relations between the Data Identification and the class name;
First registration module, for the data source and the mapping relations to be registered in the system list component.
In an optional implementation, first registration module includes:
Acquiring unit includes at least list style in the category file for obtaining the category file of the list class The register device of control;
Registering unit, for the data source and the mapping relations to be registered in the system according to the register device In list element.
In an optional implementation, described device further include:
5th acquisition module further includes the number in the category file for obtaining the category file of the list class According to the callback method in source;
Second registration module, for registering the callback method in the system list component.
In an optional implementation, described device further include:
Generation module, for generating multiple the presets list pattern controls based on description components agreement.
The third aspect, present application illustrates a kind of electronic equipment, the electronic equipment includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing loading method as described in relation to the first aspect.
Fourth aspect, present application illustrates a kind of non-transitorycomputer readable storage mediums, when in the storage medium Instruction by electronic equipment processor execute when so that electronic equipment is able to carry out loading method as described in relation to the first aspect.
5th aspect, present application illustrates a kind of computer program products, the instruction in the computer program product When being executed by the processor of electronic equipment, so that electronic equipment is able to carry out loading method as described in relation to the first aspect.
Technical solution provided by the present application can include the following benefits:
In this application, system list component is obtained, registers with data source in the system list component, and, it registers with Mapping relations between the Data Identification of the data source and the class name of the list style control for loading the data source;Multiple The corresponding list style control of the class name is obtained in the presets list pattern control;The data source is added based on the list style control It is loaded onto list.
In this way, even if the type of data source expands, since the data source of the list in the application is located at system list component In, i.e. the data source of list is by system list assembly management, it is therefore not necessary to sentence be judged using a large amount of if, else, thus phase Than the complexity that can reduce service code in the prior art, the readability of service code is promoted, so that service code can More easily extended.
By the application, the unification of the data source of all lists in a page can not be managed together, and a page The data source of each of face list can not need creation one yet and be similar to respectively by a system list assembly management The middleware of factory carrys out the data source of management list, it is therefore not necessary to which service code is coupled with factory.
Secondly as factory is usually using singleton pattern, if creation factory comes the data source of management list, factory's meeting It runs always, factory's operation needs committed memory space, and factory can just stop transporting until the client where the page is closed Row.And factory is created due to being not necessarily in the application, it can thus be avoided committed memory space, and the page where list exits it Afterwards, the case where memory that list occupies will all be discharged, and waste memory headroom is avoided the occurrence of.
In addition, the service logic relationship between data source and list style control for loading the data source passes through data Mapping relations between the Data Identification in source and the class name of the list style control for loading the data source embody, the mapping Relationship is located in system list component, later when changing service logic relationship between the two, need to only change system list group Mapping relations in part, so that service logic relationship intuitively and can be managed easily.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of loading method of the application;
Fig. 2 is a kind of structural block diagram of loading device of the application;
Fig. 3 is the block diagram of a kind of electronic equipment shown in the application;
Fig. 4 is the block diagram of a kind of electronic equipment shown in the application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
Referring to Fig.1, a kind of step flow chart of loading method of the application is shown, this method can be applied to terminal In, this method can specifically include following steps:
In step s101, system list component is obtained, registers with data source in the system list component, and, registration There are the mapping relations between the Data Identification of the data source and the class name of the list style control for loading the data source;
In this application, when terminal needs to show the page on the screen, the page data of the available page, if Include the data source of list in the page data, then need to load data source in lists, renders list in page to realize On face.
In this application, the data source of list can be safeguarded by system list component, for example, for any one page Face includes several lists in the page, then there is several system list components, different systems in the page data of the page List element is used to manage the data source of different lists, and different lists can be used for loading different data sources, therefore, no Different data sources can be registered in homologous ray list element, due to needing to use list when loading data source in lists Pattern control, and hence it is also possible in system list component register list pattern control class name.
For any one list, the corresponding system list component of the list is infused in the system list component in advance When volume data source and mapping relations, the available data source for needing to load in the list, and obtain the data of data source Mark, and obtains the class name for loading the list style control of the data source, generate later the Data Identification and the class name it Between mapping relations, then the Data Identification and the mapping relations can be registered in the system list component.
Wherein, in this application, the category file of list class can be generated in advance, and add list in category file The register method of pattern control can be in this way, when the data source and the mapping relations are registered in the system list component The category file of list class is obtained, the register method of list style control is included at least in category file, then according to the note The data source and the mapping relations are registered in system list component by volume method.
Wherein, in another embodiment, after getting the register method, can first by the data source format, The data source to be changed to the data source of specific format, then by formatted data source and it is somebody's turn to do further according to the register method Mapping relations are registered in system list component.
Wherein, it may need in a list while load multiple and different data sources, load is different in the list Data source when need list style control to be used to be not quite similar, it is thus desirable to be infused simultaneously in system list control simultaneously The multiple data sources of volume, and, for any one data source, the Data Identification of the data source can be registered in system list control Mapping relations between the class name of the list style control for loading the data source, for other each data sources, together Sample is such.
Wherein, class name is used for index list pattern control, and Data Identification is used for index data source.
In this way, in this application, the system when terminal needs to show the page on the screen, in available page data List element, the Data Identification and use of the data source and the data source registered in the system list component available later Mapping relations between the class name of list style control for loading the data source, then execute step S102.
In step s 102, the corresponding list style control of the class name is obtained in multiple the presets list pattern controls;
In this application, multiple the presets list pattern controls can be generated based on description components agreement in advance, for later Selection uses when needing to load data source in lists.
In this application, list style control itself is not stored in system list component directly, and what is stored is list sample The class name of formula control, therefore, it is necessary to the class names in the system list component according to acquisition in multiple the presets list pattern controls Middle lookup list style control, for example, obtaining the corresponding list style control of the class name in multiple the presets list pattern controls.
In step s 103, the data source is loaded onto list based on the list style control.
Later, user is in lists it is seen that the data source, user may operate the data source, example Such as, which includes URL (Uniform Resource Locator, uniform resource locator), and user can click the URL Enter another page etc..In order to support user that can operate the data source, in the page, need to use readjustment side Method handles operation of the user to the data source.
Therefore, after step s 103, it is also necessary to obtain the category file of list class, further include the number in category file According to the callback method in source, the callback method can be registered in system list component later.To being somebody's turn to do in list after user After data source is operated, operation of the callback method processing user to the data source can also be used.
In this application, system list component is obtained, registers with data source in the system list component, and, it registers with Mapping relations between the Data Identification of the data source and the class name of the list style control for loading the data source;Multiple The corresponding list style control of the class name is obtained in the presets list pattern control;The data source is added based on the list style control It is loaded onto list.
In this way, even if the type of data source expands, since the data source of the list in the application is located at system list component In, i.e. the data source of list is by system list assembly management, it is therefore not necessary to sentence be judged using a large amount of if, else, thus phase Than the complexity that can reduce service code in the prior art, the readability of service code is promoted, so that service code can More easily extended.
By the application, the unification of the data source of all lists in a page can not be managed together, and a page The data source of each of face list can not need creation one yet and be similar to respectively by a system list assembly management The middleware of factory carrys out the data source of management list, it is therefore not necessary to which service code is coupled with factory.
Secondly as factory is usually using singleton pattern, if creation factory comes the data source of management list, factory's meeting It runs always, factory's operation needs committed memory space, and factory can just stop transporting until the client where the page is closed Row.And factory is created due to being not necessarily in the application, it can thus be avoided committed memory space, and the page where list exits it Afterwards, the case where memory that list occupies will all be discharged, and waste memory headroom is avoided the occurrence of.
In addition, the service logic relationship between data source and list style control for loading the data source passes through data Mapping relations between the Data Identification in source and the class name of the list style control for loading the data source embody, the mapping Relationship is located in system list component, later when changing service logic relationship between the two, need to only change system list group Mapping relations in part, so that service logic relationship intuitively and can be managed easily.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the application is not limited by the described action sequence, because according to this Shen Please, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification Described in embodiment belong to alternative embodiment, necessary to related movement not necessarily the application.
Referring to Fig. 2, a kind of structural block diagram of loading device of the application is shown, which can specifically include such as lower die Block:
First obtains module 11, for obtaining system list component, registers with data source in the system list component, with And register with reflecting between the Data Identification of the data source and the class name of the list style control for loading the data source Penetrate relationship;
Second obtains module 12, for obtaining the corresponding list of the class name in multiple the presets list pattern controls Pattern control;
Loading module 13, for the data source to be loaded onto list based on the list style control.
In an optional implementation, described device further include:
Third obtains module, for obtaining the Data Identification of the data source and the data source;
4th obtains module, for obtaining the class with the list style control for loading the data source Name;
First generation module, for generating the mapping relations between the Data Identification and the class name;
First registration module, for the data source and the mapping relations to be registered in the system list component.
In an optional implementation, first registration module includes:
Acquiring unit includes at least list style in the category file for obtaining the category file of the list class The register device of control;
Registering unit, for the data source and the mapping relations to be registered in the system according to the register device In list element.
In an optional implementation, described device further include:
5th acquisition module further includes the number in the category file for obtaining the category file of the list class According to the callback method in source;
Second registration module, for registering the callback method in the system list component.
In an optional implementation, described device further include:
Generation module, for generating multiple the presets list pattern controls based on description components agreement.
In this application, system list component is obtained, registers with data source in the system list component, and, it registers with Mapping relations between the Data Identification of the data source and the class name of the list style control for loading the data source;Multiple The corresponding list style control of the class name is obtained in the presets list pattern control;The data source is added based on the list style control It is loaded onto list.
In this way, even if the type of data source expands, since the data source of the list in the application is located at system list component In, i.e. the data source of list is by system list assembly management, it is therefore not necessary to sentence be judged using a large amount of if, else, thus phase Than the complexity that can reduce service code in the prior art, the readability of service code is promoted, so that service code can More easily extended.
By the application, the unification of the data source of all lists in a page can not be managed together, and a page The data source of each of face list can not need creation one yet and be similar to respectively by a system list assembly management The middleware of factory carrys out the data source of management list, it is therefore not necessary to which service code is coupled with factory.
Secondly as factory is usually using singleton pattern, if creation factory comes the data source of management list, factory's meeting It runs always, factory's operation needs committed memory space, and factory can just stop transporting until the client where the page is closed Row.And factory is created due to being not necessarily in the application, it can thus be avoided committed memory space, and the page where list exits it Afterwards, the case where memory that list occupies will all be discharged, and waste memory headroom is avoided the occurrence of.
In addition, the service logic relationship between data source and list style control for loading the data source passes through data Mapping relations between the Data Identification in source and the class name of the list style control for loading the data source embody, the mapping Relationship is located in system list component, later when changing service logic relationship between the two, need to only change system list group Mapping relations in part, so that service logic relationship intuitively and can be managed easily.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Fig. 3 is the block diagram of a kind of electronic equipment 800 shown in the application.For example, electronic equipment 800 can be mobile electricity Words, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment are a Personal digital assistant etc..
Referring to Fig. 3, electronic equipment 800 may include following one or more components: processing component 802, memory 804, Electric power assembly 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of the usual controlling electronic devices 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to complete all or part of the steps of the above method.In addition, processing component 802 may include one or more modules, Convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with convenient Interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on electronic equipment 800, contact data, telephone directory number According to, message, image, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing Memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of electronic equipment 800.Power supply module 806 may include power supply pipe Reason system, one or more power supplys and other with for electronic equipment 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, the relative positioning of component, such as institute The display and keypad that component is electronic equipment 800 are stated, sensor module 814 can also detect electronic equipment 800 or electronics The position change of 800 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 800,800 orientation of electronic equipment Or the temperature change of acceleration/deceleration and electronic equipment 800.Sensor module 814 may include proximity sensor, be configured to It detects the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G), Or their combination.In one exemplary embodiment, communication component 816 receives via broadcast channel and comes from external broadcasting management The broadcast singal or broadcast operation information of system.In one exemplary embodiment, the communication component 816 further includes that near field is logical (NFC) module is believed, to promote short range communication.For example, radio frequency identification (RFID) technology, infrared data association can be based in NFC module Meeting (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of electronic equipment 800 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Fig. 4 is the block diagram of a kind of electronic equipment 1900 shown in the application.For example, electronic equipment 1900 may be provided as One server.
Referring to Fig. 4, it further comprises one or more processors that electronic equipment 1900, which includes processing component 1922, with And memory resource represented by a memory 1932, it can be by the instruction of the execution of processing component 1922 for storing, such as answer Use program.The application program stored in memory 1932 may include it is one or more each correspond to one group of instruction Module.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Electronic equipment 1900 can also include that a power supply module 1926 is configured as executing the power supply of electronic equipment 1900 Management, a wired or wireless network interface 1950 is configured as electronic equipment 1900 being connected to network and an input is defeated (I/O) interface 1958 out.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to the flow chart according to the present processes, terminal device (system) and computer program product And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminal devices with A machine is generated, so that generating by the instruction that computer or the processor of other programmable data processing terminal devices execute For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It above to a kind of loading method provided herein and device, is described in detail, tool used herein The principle and implementation of this application are described for body example, the above embodiments are only used to help understand this Shen Method and its core concept please;At the same time, for those skilled in the art, according to the thought of the application, specific real Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as the limit to the application System.

Claims (12)

1. a kind of loading method, which is characterized in that the described method includes:
System list component is obtained, registers with data source in the system list component, and, register with the number of the data source According to the mapping relations between mark and the class name of the list style control for loading the data source;
The corresponding list style control of the class name is obtained in multiple the presets list pattern controls;
The data source is loaded onto list based on the list style control.
2. the method according to claim 1, wherein the register flow path of the data source and the mapping relations Include:
Obtain the Data Identification of the data source and the data source;
Obtain the class name with the list style control for loading the data source;
Generate the mapping relations between the Data Identification and the class name;
The data source and the mapping relations are registered in the system list component.
3. according to the method described in claim 2, it is characterized in that, described be registered in the data source and the mapping relations In the system list component, comprising:
The category file of the list class is obtained, the register method of list style control is included at least in the category file;
The data source and the mapping relations are registered in the system list component according to the register method.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
The category file of the list class is obtained, further includes the callback method of the data source in the category file;
The callback method is registered in the system list component.
5. the method according to claim 1, wherein the method also includes:
Multiple the presets list pattern controls are generated based on description components agreement.
6. a kind of loading device, which is characterized in that described device includes:
First obtains module, for obtaining system list component, registers with data source in the system list component, and, note Volume has the mapping between the Data Identification of the data source and the class name of the list style control for loading the data source to close System;
Second obtains module, for obtaining the corresponding list style control of the class name in multiple the presets list pattern controls Part;
Loading module, for the data source to be loaded onto list based on the list style control.
7. device according to claim 6, which is characterized in that described device further include:
Third obtains module, for obtaining the Data Identification of the data source and the data source;
4th obtains module, for obtaining the class name with the list style control for loading the data source;
First generation module, for generating the mapping relations between the Data Identification and the class name;
First registration module, for the data source and the mapping relations to be registered in the system list component.
8. the method according to the description of claim 7 is characterized in that first registration module includes:
Acquiring unit includes at least list style control in the category file for obtaining the category file of the list class Register device;
Registering unit, for the data source and the mapping relations to be registered in the system list according to the register device In component.
9. device according to claim 7, which is characterized in that described device further include:
5th acquisition module further includes the data source in the category file for obtaining the category file of the list class Callback method;
Second registration module, for registering the callback method in the system list component.
10. device according to claim 6, which is characterized in that described device further include:
Generation module, for generating multiple the presets list pattern controls based on description components agreement.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing loading method as described in any one in claim 1-5.
12. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment When device executes, so that electronic equipment is able to carry out loading method as described in any one in claim 1-5.
CN201910620248.0A 2019-07-10 2019-07-10 Loading method and device Active CN110457084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620248.0A CN110457084B (en) 2019-07-10 2019-07-10 Loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620248.0A CN110457084B (en) 2019-07-10 2019-07-10 Loading method and device

Publications (2)

Publication Number Publication Date
CN110457084A true CN110457084A (en) 2019-11-15
CN110457084B CN110457084B (en) 2021-11-30

Family

ID=68482627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620248.0A Active CN110457084B (en) 2019-07-10 2019-07-10 Loading method and device

Country Status (1)

Country Link
CN (1) CN110457084B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051012A (en) * 2021-03-18 2021-06-29 平安普惠企业管理有限公司 Data loading method, device, equipment and medium based on list view

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060075323A1 (en) * 2004-09-30 2006-04-06 Microsoft Corporation Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document
CN201489515U (en) * 2009-09-01 2010-05-26 卡斯柯信号有限公司 Automatic model layer and view layer data mapping system applicable to AJAX framework
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
US9659084B1 (en) * 2013-03-25 2017-05-23 Guangsheng Zhang System, methods, and user interface for presenting information from unstructured data
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database
CN107220036A (en) * 2016-03-22 2017-09-29 中兴通讯股份有限公司 A kind of visual development method and system of component and template
CN107656729A (en) * 2017-08-31 2018-02-02 上海壹账通金融科技有限公司 Updating device, method and the computer-readable recording medium of List View
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108008955A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of self-defined control information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060075323A1 (en) * 2004-09-30 2006-04-06 Microsoft Corporation Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document
CN201489515U (en) * 2009-09-01 2010-05-26 卡斯柯信号有限公司 Automatic model layer and view layer data mapping system applicable to AJAX framework
US9659084B1 (en) * 2013-03-25 2017-05-23 Guangsheng Zhang System, methods, and user interface for presenting information from unstructured data
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database
CN107220036A (en) * 2016-03-22 2017-09-29 中兴通讯股份有限公司 A kind of visual development method and system of component and template
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
CN107656729A (en) * 2017-08-31 2018-02-02 上海壹账通金融科技有限公司 Updating device, method and the computer-readable recording medium of List View
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108008955A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of self-defined control information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051012A (en) * 2021-03-18 2021-06-29 平安普惠企业管理有限公司 Data loading method, device, equipment and medium based on list view
CN113051012B (en) * 2021-03-18 2022-12-02 平安普惠企业管理有限公司 Data loading method, device, equipment and medium based on list view

Also Published As

Publication number Publication date
CN110457084B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
JP6838138B2 (en) Product display method and equipment
CN106547547B (en) data acquisition method and device
CN103916468B (en) Method for upgrading system, terminal, server and upgrade-system
CN104636453A (en) Illegal user data identification method and device
CN104536935A (en) Calculation displaying method, calculation editing method and device
CN104978200A (en) Application program display method and device
CN105094904A (en) Application program installation method and device
CN105376412A (en) Information processing method and device
CN107330391A (en) Product information reminding method and device
CN108803892B (en) Method and device for calling third party application program in input method
CN112463418A (en) Cross-device information sharing method, device, medium and electronic device
CN107463372B (en) Data-driven page updating method and device
CN105183571A (en) Function calling method and device
CN115185717A (en) Interface calling method and device, electronic equipment and storage medium
CN105488829A (en) Method and device for generating head portrait
CN104636064A (en) Gesture generating method and device
CN106933111B (en) Method and device for controlling equipment
US20170201479A1 (en) Group message display method, device and medium
CN111694571B (en) Compiling method and device
CN110457084A (en) A kind of loading method and device
CN107885464B (en) Data storage method, device and computer readable storage medium
CN110515623A (en) Graphic operation implementation method, device, electronic equipment and storage medium
EP3176740A1 (en) Information processing method and apparatus, computer program and recording medium
CN107704911A (en) Generation, read method and the device of Quick Response Code
CN107070816A (en) Recognition methods, device and the mobile terminal of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant