CN106681698B - Dynamic list generation method and device - Google Patents

Dynamic list generation method and device Download PDF

Info

Publication number
CN106681698B
CN106681698B CN201510745247.0A CN201510745247A CN106681698B CN 106681698 B CN106681698 B CN 106681698B CN 201510745247 A CN201510745247 A CN 201510745247A CN 106681698 B CN106681698 B CN 106681698B
Authority
CN
China
Prior art keywords
list
dynamic list
dynamic
field
generating
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.)
Active
Application number
CN201510745247.0A
Other languages
Chinese (zh)
Other versions
CN106681698A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510745247.0A priority Critical patent/CN106681698B/en
Publication of CN106681698A publication Critical patent/CN106681698A/en
Application granted granted Critical
Publication of CN106681698B publication Critical patent/CN106681698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method and a device for generating a dynamic list. Wherein, the method comprises the following steps: acquiring a dynamic list configuration file, and generating a dynamic list page model according to the dynamic list configuration file, wherein the dynamic list page model comprises a standard unit data model list generated according to a first field and list page configuration information generated according to a second field; and calling a plurality of corresponding standard unit components from the standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list. According to the method and the device for generating the dynamic list, the dynamic list can be generated without depending on the service data characteristics in the process of generating the dynamic list, the dynamic list is flexibly constructed, and the efficiency of generating the dynamic list is improved.

Description

Dynamic list generation method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a dynamic list.
Background
With the continuous development of mobile internet technology, the functions of mobile terminals, such as smart phones, are more powerful, and users can install application programs with various functions in the mobile terminals according to requirements, so that the mobile terminals become a part of life and work of people.
At present, a large number of list functions, such as a main menu, a phone book, a short message, an STK menu, etc., are used in most mobile phone platform developments, and generally, an operating system of a mobile terminal provides basic list components in a system library, so that a list page is formed by selecting corresponding list components according to service features in the following process. For example, the operating system of a smartphone is the Internet Operation (IOS) system, which provides the basic list component (UITableView) in the system library UIKit.
The general process of generating the list in the related art is: firstly, a service-related data item list is acquired, and then, a corresponding Cell (Cell) component is selected according to service data characteristics to display the corresponding data item, so that a complete list page is formed.
However, the above-described manner of generating the list has the following problems: (1) the logic of selecting the unit component depends on the service data characteristics, that is, the data and the component are bound with the service field, for example, in the user list, if the data of the user list is head portrait and nickname, a head portrait and nickname user component need to be developed; in the information list, if the data is a matching picture and a title, an information component with the matching picture and the title needs to be developed, so that it can be seen that unit components corresponding to different service characteristics are different, unit components among different services are difficult to multiplex, in the process of generating the list of different services, corresponding unit components need to be developed according to the data characteristics of the required services, and the efficiency of generating the list is low; (2) the list page is constructed based on the service data characteristics, the expressive ability of the list is restricted by the hard coding of the client, the list cannot be flexibly constructed, and further the newly accessed service cannot be supported.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present application is to provide a method for generating a dynamic list, which can complete generation of the dynamic list without depending on service data characteristics in a process of generating the dynamic list, flexibly construct the dynamic list, and improve efficiency of generating the dynamic list.
A second object of the present application is to provide a dynamic list generation apparatus.
In order to achieve the above object, an embodiment of a first aspect of the present application provides a method for generating a dynamic list, including: acquiring a dynamic list configuration file, wherein the dynamic list configuration file comprises a first field and at least one second field, the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information; generating a dynamic list page model according to the dynamic list configuration file, wherein the dynamic list page model comprises a standard unit data model list generated according to the first field and list page configuration information generated according to the second field; and calling a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate a dynamic list.
The method for generating the dynamic list includes acquiring a dynamic list configuration file, generating a dynamic list page model including a standard unit data model list and list page configuration information according to the dynamic list configuration file, calling a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list.
In order to achieve the above object, a second aspect of the present application provides an apparatus for generating a dynamic list, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a dynamic list configuration file, the dynamic list configuration file comprises a first field and at least one second field, the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information; a generating module, configured to generate a dynamic list page model according to the dynamic list configuration file, where the dynamic list page model includes a standard unit data model list generated according to the first field and list page configuration information generated according to the second field; and the first processing module is used for calling a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list.
The device for generating a dynamic list according to the embodiment of the application acquires a dynamic list configuration file through an acquisition module, the generation module generates a dynamic list page model including a standard unit data model list and list page configuration information according to the dynamic list configuration file, a first processing module calls a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combines the plurality of corresponding standard unit components to generate a combined list, renders the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list, and can modify a standard unit array in the standard unit data model list, so that efficient modification of the dynamic list is realized, flexibility of the dynamic list is improved, and modification of the dynamic list is facilitated.
Drawings
Fig. 1 is a flowchart of a method for generating a dynamic list according to an embodiment of the present application.
FIG. 2 is a flow diagram of generating a dynamic list page model from a dynamic list configuration file.
Fig. 3 is a flowchart of a method for generating a dynamic list according to another embodiment of the present application.
Fig. 4 is a schematic structural diagram of a dynamic list generation apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a dynamic list generation apparatus according to another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A method and an apparatus for generating a dynamic list according to an embodiment of the present application are described below with reference to the drawings.
Fig. 1 is a flowchart of a method for generating a dynamic list according to an embodiment of the present application.
As shown in fig. 1, the method for generating the dynamic list includes:
and S11, acquiring the dynamic list configuration file.
Specifically, the dynamic list configuration file sent by the server is received and stored, and when the dynamic list needs to be generated, the client can obtain the dynamic list configuration file from the local.
The dynamic list configuration file comprises a first field and at least one second field, wherein the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information.
The list page configuration information may include, but is not limited to, list style, cell height, partition line style, and the like.
In one embodiment of the present application, the information in the dynamic list configuration file may be configured through a variety of data formats. For example, the dynamic list configuration file may be configured in an XML (Extensible Markup Language), json (javascript object notification), or other format.
It should be noted that the JSON format (JavaScript Object notification) is a lightweight data exchange format, and adopts a text format completely independent of languages. Moreover, the JSON format has the characteristics of easy human reading and writing and easy machine analysis and generation.
In order to improve the efficiency of parsing the information in the dynamic list configuration file, preferably, the dynamic list configuration file is in a JSON format, that is, the dynamic list configuration file is configured in the JSON format. At this time, the dynamic list configuration file records the labeled unit data model list by using a field of an array type, and records information such as a list style, a unit height, a separation line style and the like by using different fields respectively, namely, each configuration information of the list page corresponds to a field.
For example, a JSON format is used to configure the dynamic list configuration file, assuming that the list page configuration information includes list style, cell height, and partition style information, at which point the list style may be saved in field X, the cell height may be saved in field Y, and the partition style information may be saved in field Y.
For another example, the dynamic list configuration file is configured in JSON format, and it is assumed that the standard cell data model list includes three standard cell data models, which are respectively represented by the standard cell data model A, B, C. To record these three standard cell data models, the first field of the dynamic list profile is in the form { cells [ { name: A }, { name: B }, { name: C } ] }.
S12, generating a dynamic list page model according to the dynamic list configuration file,
wherein the dynamic list page model includes a list of standard cell data models generated from the first field and list page configuration information generated from the second field.
In an embodiment of the present application, a specific process of generating a dynamic list page model according to a dynamic list configuration file, as shown in fig. 2, may include:
and S121, reading a first field in the dynamic list configuration file to create a corresponding standard unit data model list.
And S122, reading a second field in the dynamic list configuration file, and generating corresponding list page configuration information according to the second field.
For example, the first field of the dynamic list configuration file is in the form of { cells [ { name: a }, { name: B }, { name: C } ] }, and in the process of reading the content in the first field, a corresponding standard unit data model can be created according to the name field, the standard unit data model corresponding to a is a standard unit data model a, the standard unit data model corresponding to B is a standard unit data model B, the standard unit data model corresponding to C is a standard unit data model C, and a standard unit data model list is formed according to the obtained standard unit data model information, wherein the code form corresponding to the standard unit data model list is as follows: acelmodel BCellModel CCellModel. Acelmodel stands for standard cell data model a; BCellModel represents the standard cell data model B; CCellModel represents the standard cell data model C.
And S13, calling a plurality of corresponding standard unit components from the standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list.
For example, assume that three standard cell data models, each represented by standard cell data model A, B, C, are included in the standard cell data model list. After the standard cell data model list is obtained, a standard cell component a corresponding to the standard cell data model a (the standard cell component a may be represented by ACell), a standard cell component B corresponding to the standard cell data model B (the standard cell component B may be represented by BCell), and a standard cell component C corresponding to the standard cell data model C (the standard cell component C may be represented by CCell) may be obtained from the standard cell template library, and the obtained standard components may be combined to generate a combination list, where the generated combination list is in the form of: after the combined list is generated, standard cell components in the combined list can be rendered through list page configuration information such as list style, cell height, parting line style and the like to generate a dynamic list in a list page.
It should be noted that the standard cell template library is pre-stored in the client, various standard cell components are stored in the standard cell template library, and a corresponding relationship between the standard cell data model and the standard cell components is stored.
In summary, it can be seen that, after the dynamic list page model is generated according to the dynamic list configuration file, that is, after the specification for generating the dynamic list is obtained, the corresponding standard cell components are called from the standard cell template library according to the dynamic list page model, and are combined to generate a combined list, and the combined list is rendered according to the list page configuration information to generate the dynamic list. Therefore, the generation of the dynamic list is completed without depending on the service data characteristics, and the subsequent generation of the dynamic list of the new service is facilitated.
It should be noted that various dynamic lists can be generated by the dynamic list method of this embodiment.
The method for generating the dynamic list includes acquiring a dynamic list configuration file, generating a dynamic list page model including a standard unit data model list and list page configuration information according to the dynamic list configuration file, calling a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list.
Fig. 3 is a flowchart of a method for generating a dynamic list according to another embodiment of the present application.
As shown in fig. 3, the method for generating the dynamic list includes:
s301, acquiring a dynamic list configuration file.
Specifically, the dynamic list configuration file sent by the server is received and stored, and when the dynamic list needs to be generated, the client can obtain the dynamic list configuration file from the local.
The dynamic list configuration file comprises a first field and at least one second field, wherein the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information.
The list page configuration information may include, but is not limited to, list style, cell height, partition line style, and the like.
In one embodiment of the present application, the information in the dynamic list configuration file may be configured through a variety of data formats. For example, the dynamic list configuration file may be configured in an XML (Extensible Markup Language), json (javascript object notification), or other format.
It should be noted that the JSON format (JavaScript Object notification) is a lightweight data exchange format, and adopts a text format completely independent of languages. Moreover, the JSON format has the characteristics of easy human reading and writing and easy machine analysis and generation.
In order to improve the efficiency of parsing the information in the dynamic list configuration file, preferably, the dynamic list configuration file is in a JSON format, that is, the dynamic list configuration file is configured in the JSON format. At this time, the configuration dynamic list configuration file records the labeled unit data model list by using a field of an array type, and records information such as a list style, a unit height, a separation line style and the like by using different fields respectively, namely, each configuration information of the list page corresponds to one field.
For example, a JSON format is used to configure the dynamic list configuration file, assuming that the list page configuration information includes list style, cell height, and partition style information, at which point the list style may be saved in field X, the cell height may be saved in field Y, and the partition style information may be saved in field Y.
For another example, the dynamic list configuration file is configured in JSON format, and it is assumed that the standard cell data model list includes three standard cell data models, which are respectively represented by the standard cell data model A, B, C. To record these three standard cell data models, the first field of the dynamic list profile is in the form { cells [ { name: A }, { name: B }, { name: C } ] }.
S302, reading a first field in the dynamic list configuration file to create a corresponding standard unit data model list.
S303, reading a second field in the dynamic list configuration file, and generating corresponding list page configuration information according to the second field.
For example, the first field of the dynamic list configuration file is in the form of { cells [ { name: a }, { name: B }, { name: C } ] }, and in the process of reading the content in the first field, a corresponding standard unit data model can be created according to the name field, the standard unit data model corresponding to a is a standard unit data model a, the standard unit data model corresponding to B is a standard unit data model B, the standard unit data model corresponding to C is a standard unit data model C, and a standard unit data model list is formed according to the obtained standard unit data model information, wherein the code form corresponding to the standard unit data model list is as follows: acelmodel BCellModel CCellModel. Acelmodel stands for standard cell data model a; BCellModel represents the standard cell data model B; CCellModel represents the standard cell data model C.
S304, a plurality of standard unit components corresponding to the standard unit data models in the standard unit data model list are called from the standard unit template library, the corresponding standard unit components are combined to generate a combined list, and the combined list is rendered according to list page configuration information of the dynamic list page model to generate the dynamic list.
For example, assume that three standard cell data models, each represented by standard cell data model A, B, C, are included in the standard cell data model list. After the standard cell data model list is obtained, a standard cell component a corresponding to the standard cell data model a (the standard cell component a may be represented by ACell), a standard cell component B corresponding to the standard cell data model B (the standard cell component B may be represented by BCell), and a standard cell component C corresponding to the standard cell data model C (the standard cell component C may be represented by CCell) may be obtained from the standard cell template library, and the obtained standard components may be combined to generate a combination list, where the generated combination list is in the form of: after the combined list is generated, standard cell components in the combined list can be rendered through list page configuration information such as list style, cell height, parting line style and the like to generate a dynamic list in a list page.
It should be noted that the standard cell template library is pre-stored in the client, and the standard cell template library stores the corresponding relationship between the standard cell data model and the standard cell component.
In one embodiment of the present application, after the dynamic list is generated, when the dynamic list needs to be modified, for example, an existing line is inserted or deleted from the dynamic list. At present, the common practice is: the developer rebuilds a new list page model, replaces the old list page model, and carries out re-rendering according to the new list page model to generate a new list page.
In order to improve the efficiency of modifying the dynamic list, the embodiment uses the variable list to store the standard cell data model list.
S305, receiving an editing instruction, wherein the editing instruction comprises a standard cell component editing instruction.
S306, modifying the standard unit data model list according to the standard unit component editing instruction so as to modify the dynamic list page model.
S307, generating a modified dynamic list according to the modified dynamic list page model.
For example, a row is newly added to the dynamic list, and after an edit instruction for the standard cell component is received, the standard cell data model list may be modified according to the edit instruction, that is, the standard cell data model list recorded in the first field in the configuration file may be edited, that is, the first field is a field of an editable array type, and after the modification, a modified dynamic list model may be generated according to the modified standard cell data model list, and a modified dynamic list may be generated according to the modified dynamic list model, that is, after the dynamic list model is edited, a row is newly added to the corresponding dynamic list page.
The method for generating the dynamic list includes generating a dynamic list page model including a standard unit data model list and list page configuration information according to a dynamic list configuration file, calling a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, rendering the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list, and modifying a standard unit array in the standard unit data model list by modifying the standard unit array, so that efficient modification of the dynamic list is achieved, flexibility of the dynamic list is improved, and modification of the dynamic list is facilitated.
In order to implement the above embodiments, the present application further provides a device for generating a dynamic list.
Fig. 4 is a schematic structural diagram of a dynamic list generation apparatus according to an embodiment of the present application.
As shown in fig. 4, the apparatus for generating a dynamic list includes an obtaining module 100, a generating module 200, and a first processing module 300, where:
specifically, the obtaining module 100 is configured to obtain a dynamic list configuration file.
The dynamic list configuration file comprises a first field and at least one second field, wherein the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information.
The list page configuration information may include, but is not limited to, list style, cell height, partition line style, and the like.
In one embodiment of the present application, the information in the dynamic list configuration file may be configured through a variety of data formats. For example, the dynamic list configuration file may be configured in an XML (Extensible Markup Language), json (javascript object notification), or other format.
It should be noted that the JSON format (JavaScript Object notification) is a lightweight data exchange format, and adopts a text format completely independent of languages. Moreover, the JSON format has the characteristics of easy human reading and writing and easy machine analysis and generation.
In order to improve the efficiency of parsing the information in the dynamic list configuration file, preferably, the dynamic list configuration file is in a JSON format, that is, the dynamic list configuration file is configured in the JSON format. At this time, the dynamic list configuration file records the labeled unit data model list by using a field of an array type, and records information such as a list style, a unit height, a separation line style and the like by using different fields respectively, namely, each configuration information of the list page corresponds to a field.
For example, a JSON format is used to configure the dynamic list configuration file, assuming that the list page configuration information includes list style, cell height, and partition style information, at which point the list style may be saved in field X, the cell height may be saved in field Y, and the partition style information may be saved in field Y.
For another example, the dynamic list configuration file is configured in JSON format, and it is assumed that the standard cell data model list includes three standard cell data models, which are respectively represented by the standard cell data model A, B, C. To record these three standard cell data models, the first field of the dynamic list profile is in the form { cells [ { name: A }, { name: B }, { name: C } ] }.
The generation module 200 is used to generate a dynamic list page model from the dynamic list configuration file.
Wherein the dynamic list page model includes a list of standard cell data models generated from the first field and list page configuration information generated from the second field.
Specifically, the generating module 200 is specifically configured to: and reading a first field in the dynamic list configuration file to create a corresponding standard unit data model list, reading a second field in the dynamic list configuration file, and generating corresponding list page configuration information according to the second field.
The first processing module 300 is configured to retrieve a plurality of corresponding standard cell components from the standard cell template library according to the standard cell data model list of the dynamic list page model, combine the plurality of corresponding standard cell components to generate a combined list, and render the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list.
It should be noted that the standard cell template library is pre-stored in the client, various standard cell components are stored in the standard cell template library, and a corresponding relationship between the standard cell data model and the standard cell components is stored.
After the first processing module 300 generates the dynamic list, when the dynamic list needs to be modified, for example, an existing line is inserted or deleted from the dynamic list. At present, the common practice is: the developer rebuilds a new list page model, replaces the old list page model, and carries out re-rendering according to the new list page model to generate a new list page.
In order to improve the efficiency of modifying the dynamic list, the embodiment uses the variable list to store the standard cell data model list, and the apparatus may further include a second processing module 400, where the second processing module 400 is configured to receive the editing instruction and modify the standard cell data model list according to the standard cell component editing instruction to modify the dynamic list page model.
Wherein the editing instructions comprise standard cell component editing instructions.
For example, a new line is added to the dynamic list, and after receiving the standard cell component editing instruction, the second processing module 400 may modify the standard cell data model list according to the editing instruction, that is, may edit the standard cell data model list recorded in the first field in the configuration file, that is, the first field is a field of an editable array type, and after modification, may generate a modified dynamic list model according to the modified standard cell data model list, and generate a modified dynamic list according to the modified dynamic list model, that is, after the dynamic list model is edited, a new line is added to the corresponding dynamic list page.
In addition, in order to generate the modified dynamic list, the apparatus may further include a third processing module 500, where the third processing module 500 is configured to generate the modified dynamic list according to the dynamic list page model.
It should be noted that the explanation of the embodiment of the dynamic list generation method is also applicable to the dynamic list generation apparatus of this embodiment, and details are not described here.
The device for generating a dynamic list according to the embodiment of the application acquires a dynamic list configuration file through an acquisition module, the generation module generates a dynamic list page model including a standard unit data model list and list page configuration information according to the dynamic list configuration file, a first processing module calls a plurality of corresponding standard unit components from a standard unit template library according to the standard unit data model list of the dynamic list page model, combines the plurality of corresponding standard unit components to generate a combined list, renders the combined list according to the list page configuration information of the dynamic list page model to generate the dynamic list, and can modify a standard unit array in the standard unit data model list, so that efficient modification of the dynamic list is realized, flexibility of the dynamic list is improved, and modification of the dynamic list is facilitated.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (8)

1. A method for generating a dynamic list, comprising the steps of:
acquiring a dynamic list configuration file, wherein the dynamic list configuration file comprises a first field and at least one second field, the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information;
generating a dynamic list page model according to the dynamic list configuration file, wherein the dynamic list page model comprises a standard unit data model list generated according to the first field and list page configuration information generated according to the second field; and
calling a plurality of corresponding standard unit components from a standard unit template library according to a standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to list page configuration information of the dynamic list page model to generate a dynamic list;
receiving an editing instruction, wherein the editing instruction comprises a standard cell component editing instruction;
and modifying the standard cell data model list according to the standard cell component editing instruction so as to modify the dynamic list page model.
2. The method of generating a dynamic list of claim 1, wherein said dynamic list configuration file is in JSON format.
3. The method for generating a dynamic list according to claim 1, wherein the generating a dynamic list page model according to the dynamic list configuration file specifically comprises:
reading the first field in the dynamic list configuration file to create a corresponding standard unit data model list; and
and reading the second field in the dynamic list configuration file, and generating corresponding list page configuration information according to the second field.
4. The method of generating a dynamic list of claim 1, further comprising:
and generating a modified dynamic list according to the dynamic list page model.
5. An apparatus for generating a dynamic list, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a dynamic list configuration file, the dynamic list configuration file comprises a first field and at least one second field, the first field records a standard unit data model list, and each field in the at least one second field records list page configuration information;
a generating module, configured to generate a dynamic list page model according to the dynamic list configuration file, where the dynamic list page model includes a standard unit data model list generated according to the first field and list page configuration information generated according to the second field; and
the first processing module is used for calling a plurality of corresponding standard unit components from a standard unit template library according to a standard unit data model list of the dynamic list page model, combining the plurality of corresponding standard unit components to generate a combined list, and rendering the combined list according to list page configuration information of the dynamic list page model to generate a dynamic list;
the second processing module is used for receiving an editing instruction, wherein the editing instruction comprises a standard cell component editing instruction; and modifying the standard cell data model list according to the standard cell component editing instruction so as to modify the dynamic list page model.
6. The apparatus for generating a dynamic list of claim 5 wherein said dynamic list configuration file is in a JSON format.
7. The apparatus for generating a dynamic list according to claim 5, wherein said generating module is specifically configured to:
reading the first field in the dynamic list configuration file to create a corresponding standard unit data model list; and
and reading the second field in the dynamic list configuration file, and generating corresponding list page configuration information according to the second field.
8. The apparatus for generating a dynamic list of claim 5, further comprising:
and the third processing module is used for generating the modified dynamic list according to the dynamic list page model.
CN201510745247.0A 2015-11-05 2015-11-05 Dynamic list generation method and device Active CN106681698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510745247.0A CN106681698B (en) 2015-11-05 2015-11-05 Dynamic list generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510745247.0A CN106681698B (en) 2015-11-05 2015-11-05 Dynamic list generation method and device

Publications (2)

Publication Number Publication Date
CN106681698A CN106681698A (en) 2017-05-17
CN106681698B true CN106681698B (en) 2020-05-22

Family

ID=58858183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510745247.0A Active CN106681698B (en) 2015-11-05 2015-11-05 Dynamic list generation method and device

Country Status (1)

Country Link
CN (1) CN106681698B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144624B (en) * 2017-06-28 2021-10-15 武汉斗鱼网络科技有限公司 Method, storage medium, device and system for displaying unequal height lists in IOS
CN107391612B (en) * 2017-07-04 2020-06-12 石化盈科信息技术有限责任公司 Method and device for configuring field
CN108269120A (en) * 2017-11-29 2018-07-10 广东神马搜索科技有限公司 Advertisement pattern metadata configurations method and device
CN108509188B (en) * 2018-03-30 2021-11-09 武汉斗鱼网络科技有限公司 List establishing method and device and electronic equipment
CN111046206A (en) * 2018-10-12 2020-04-21 武汉斗鱼网络科技有限公司 Head portrait list display method and device, electronic equipment and storage medium
CN111104108B (en) * 2018-10-29 2021-07-23 大唐移动通信设备有限公司 Display interface WPF generation method and device
CN109634490B (en) * 2018-12-14 2020-05-12 北京字节跳动网络技术有限公司 List display method, device, equipment and storage medium
CN111381819B (en) * 2018-12-28 2021-11-26 北京微播视界科技有限公司 List creation method and device, electronic equipment and computer-readable storage medium
CN113687889A (en) * 2021-07-08 2021-11-23 北京房江湖科技有限公司 List page display method and system, computer program product and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685393B (en) * 2008-08-20 2013-09-18 大唐软件技术股份有限公司 Method and system for realizing interface dynamic customization and generation
CN102135990A (en) * 2011-03-11 2011-07-27 北京神舟航天软件技术有限公司 Java server page (JSP) template-based intelligent table system capable of being defined freely and generating method
CN102779164B (en) * 2012-06-20 2015-08-05 深圳市远行科技有限公司 The rendering intent of a kind of operation system and dynamic page thereof
CN102981855A (en) * 2012-11-23 2013-03-20 蓝盾信息安全技术股份有限公司 Template-based interface autogeneration method and system

Also Published As

Publication number Publication date
CN106681698A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106681698B (en) Dynamic list generation method and device
KR101796404B1 (en) Method, device, program and recording medium for drawing gui
EP2840511A1 (en) System and method for dynamically converting webpage, and computer-readable recording medium
CN101958958A (en) Method for replying message and terminals
CN105096363A (en) Picture editing method and picture editing device
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN109672902A (en) A kind of video takes out frame method, device, electronic equipment and storage medium
CN105045555A (en) Configuration file based method and apparatus for implementing audio conflict resolution
CN109815448B (en) Slide generation method and device
CN103677821A (en) Method and device for publishing software development tool code
CN106155470A (en) A kind of audio file generation method and device
CN101770371A (en) Application theme content preview method and device
CN104239011A (en) Generating method of terminal applications, device, terminal and system
CN107919120B (en) Voice interaction method and device, terminal, server and readable storage medium
CN101267632A (en) Mobile terminal, mobile terminal function presentation method and presentation file generation method
CN114816623A (en) Embedded interface rendering and communication system based on CEF kernel and UnrealEngine end
CN113110829B (en) Multi-UI component library data processing method and device
CN103248647A (en) Method and server providing cross-platform book reading
CN105957542B (en) A kind of audio file editing method and device
JP2022511590A (en) Application sharing methods and sharing devices, electronic devices, computer readable media
CN111580916A (en) Data processing method, device, equipment and storage medium based on client
CN114422468A (en) Message processing method, device, terminal and storage medium
CN114741144B (en) Web-side complex form display method, device and system
CN109086326B (en) Method and device for converting interface document into data model file
CN104267960A (en) User interface window generation method and equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.