CN107329991B - A kind of list access to web page and methods of exhibiting and its system - Google Patents

A kind of list access to web page and methods of exhibiting and its system Download PDF

Info

Publication number
CN107329991B
CN107329991B CN201710420882.0A CN201710420882A CN107329991B CN 107329991 B CN107329991 B CN 107329991B CN 201710420882 A CN201710420882 A CN 201710420882A CN 107329991 B CN107329991 B CN 107329991B
Authority
CN
China
Prior art keywords
list
list page
page
access
template parent
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
CN201710420882.0A
Other languages
Chinese (zh)
Other versions
CN107329991A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710420882.0A priority Critical patent/CN107329991B/en
Publication of CN107329991A publication Critical patent/CN107329991A/en
Application granted granted Critical
Publication of CN107329991B publication Critical patent/CN107329991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides the access and methods of exhibiting and its system of a kind of list page, the present invention is when designing the template of list page of client, list page template parent is defined as abstract type, by defining commonsense method and abstract method in list page template parent, realization for each different list page, for one list page subclass of each list page definition, each list page subclass inherits list page template parent, identity logic during realizing each list access to web page by the commonsense method in invocation list template parent and showing, and mutually different logic during realizing each list access to web page by abstract method defined in the copying list page template parent in each list page subclass and show, by the encapsulation of unified service logic and the fractionation of otherness service logic come all in compatible client The processing logic of list page.

Description

A kind of list access to web page and methods of exhibiting and its system
Technical field
The present invention relates to page access and display technique fields, more particularly, to a kind of list access to web page and displaying side Method and its system.
Background technique
During the access of the original list of client and displaying, it can be related to much handling logic, it is traditional at present Scheme is that an original list corresponds to the relevant logic of a set of page, when needing to some specific original list access and exhibition When showing, carried out using the corresponding interrelated logic of the original list.
Since multiple pages have many similar processing code logics, it will lead to these same section service logics and largely weigh Multiple written in code.Product requires the logical code for modifying multiple original lists once carrying out the change of product demand every time, Be easily introduced in this way bug generation and it is extremely not convenient for safeguarding the disadvantages of.
Summary of the invention
The present invention provides a kind of list access to web page for overcoming the above problem or at least being partially solved the above problem and exhibition Show method and its system.
According to an aspect of the present invention, a kind of list access to web page and methods of exhibiting are provided, comprising:
S1 defines the list page template parent of abstract type, in the list page template parent for multiple list pages Define multiple commonsense methods and multiple abstract methods;
S2, defines the list page subclass of each list page, and the list page subclass inherits the list page template parent;
S3, logic identical for each list page are called corresponding with the logic in the list page template parent Commonsense method, and the logic different for each list page pass through the copying list page template father in list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page in class.
The invention has the benefit that list page template parent is defined when designing the template of list page of client For abstract type, by and define commonsense method and abstract method in list page template parent, for each different column The realization of table page, is one list page subclass of each list page definition, each list page subclass inherits list page template father Class is realized that each list access to web page is identical with during displaying by the commonsense method in invocation list template class and patrolled Volume, and each column is realized by abstract method defined in the copying list page template parent in each list page subclass Table access to web page and mutually different logic during showing pass through the encapsulation of unified service logic and otherness service logic Split the processing logic for carrying out all list pages in compatible client.
Based on the above technical solution, the present invention can also improve as follows.
Further, the commonsense method includes the list attribute setting method and transmission data request method of list page, The abstract method includes request data address acquiring method and required parameter acquisition methods.
Further, the step S3 is specifically included:
S31, the invocation list property setting method in list page template parent carry out attribute setting to list page;
S32 obtains list page subclass respectively and passes through the request data address acquiring method in copying list page template parent The request data address of transmitting, and joined by the request that the required parameter acquisition methods in copying list page template parent transmit Number;
S33 generates data access request according to request data address and required parameter, and calls and send request of data side Normal direction server sends the data access request;
S34 receives the data result that server returns, data result is shown in the form of list page.
Further, the step S34 is specifically included:
Data result is put into view container by S341 when the data result for receiving server return;
S342 judges the affiliated type of each single item data result in view container, and according to each single item data result Affiliated type takes corresponding layout that each single item data result is carried out load displaying in list page.
Further, the step S342 is specifically included:
Function is monitored in setting in the client, monitors list page slip event by monitoring function;
When listening to list page slip event, the data item number that statistics list page has currently loaded, when having loaded Data item number reach preset load number, then again to server send data access request.
Further, list page template parent requests to send data to server by http network in the step S33 Access request.
According to another aspect of the present invention, a kind of list access to web page and display systems are additionally provided, comprising:
First definition module defines the list page template parent of abstract type, in the column for being directed to multiple list pages Multiple commonsense methods and multiple abstract methods are defined in table page template parent;
Second definition module, for defining the list page subclass of each list page, described in the list page subclass is inherited List page template parent;
Calling and copy module are used for logic identical for each list page, call the list page template parent In commonsense method corresponding with the logic, and the logic different for each list page, by list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page in copying list page template parent.
Further, the commonsense method includes the list attribute setting method and transmission data request method of list page, The abstract method includes request data address acquiring method and required parameter acquisition methods.
Further, the calling and copy module include the first call unit and the second call unit, and the system is also Including obtaining module and receiving module;
First call unit carries out list page for the invocation list property setting method in list page template parent Attribute setting;
Module is obtained, passes through the request data address in copying list page template parent for obtaining list page subclass respectively The request data address that acquisition methods are transmitted to list page template parent, and joined by the request in copying list page template parent The required parameter that number acquisition methods are transmitted to list page template parent;
Second call unit for generating data access request according to request data address and required parameter, and calls hair Data request method is sent to send the data access request to server;
Receiving module is opened up data result for receiving the data result of server return in the form of list page Show.
According to the third aspect of the invention we, a kind of access of list page and the equipment of methods of exhibiting, including processing are provided Device (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out following method:
For multiple list pages, the list page template parent of abstract type is defined, it is fixed in the list page template parent Adopted multiple commonsense methods and multiple abstract methods;
The list page subclass of each list page is defined, the list page subclass inherits the list page template parent;
Logic identical for each list page is called corresponding with the logic general in the list page template parent Circulation method, and the logic different for each list page, by list page subclass in copying list page template parent Abstract method corresponding with the logic realizes the access and displaying of each list page.
Detailed description of the invention
Fig. 1 is the list access to web page and methods of exhibiting flow chart of one embodiment of the invention;
Fig. 2 is that the list access to web page of another embodiment of the present invention connects block diagram with display systems;
Fig. 3 is that the list access to web page of another embodiment of the invention connects block diagram with display systems;
Fig. 4 is that the list access to web page of further embodiment of the present invention connects block diagram with display systems;
Fig. 5 is that the list access to web page of one embodiment of the invention connects block diagram with the equipment of methods of exhibiting.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
The list access to web page and methods of exhibiting of one embodiment of the invention are provided referring to Fig. 1, Fig. 1, has write a set of pumping The list page template logic of elephant can be compatible with the access and exhibition of all list page contents of current client by writing for the logic It is existing.This method comprises: S1 defines the list page template parent of abstract type, in the list page template for multiple list pages Multiple commonsense methods and multiple abstract methods are defined in parent;S2 defines the list page subclass of each list page, the list Page subclass inherits the list page template parent;S3, logic identical for each list page call the list page template Commonsense method corresponding with the logic in parent, and the logic different for each list page, by list page Abstract method corresponding with the logic realizes the access and exhibition of each list page in copying list page template parent in class Show.
Due to having the access and displaying of multiple list pages in the client, in the process of each list access to web page and displaying In, each list page show content or form be a bit it is identical, some are different.Traditional processing mode be for The access of each list page and displaying process write a set of corresponding logic, in some specific list access to web page and displaying In the process, it can all be handled using logic corresponding with the list page, it in this way can be extremely complex.Therefore, the present embodiment writes one Set substantially the list page of access and the displaying of all list pages can handle logic on compatible client.
Specifically, all list pages for needing to access and show for client, define the list of an abstract type Page template parent, and multiple commonsense methods and multiple abstract methods are defined in list page template parent.Commonsense method therein Primarily directed to the same section of each list page, different piece of the abstract method primarily directed to each list page.
It then is one list page subclass of each list page definition, each list page subclass inherits list page template Parent, i.e. parent of the list page template parent as each list page subclass.Each list page subclass inherits list page father Class then all has the function of list page template parent in list page subclass.Design in this way, so that for each column The logic of the different piece of table page can be deferred in list page subclass and go to realize.
During each specific list access to web page and displaying, for patrolling for each list page same section Volume, it is realized by the commonsense method in invocation list page template parent, and for the logic of each list page different piece, It is then realized by the abstract function in each list page subclass in copying list page template parent, by each column Abstract function in table page subclass in copying list page template parent can be realized the different piece of each list page.
List page template designed by the present embodiment is It realizes compatible multiple page logic this target, cannot be realized by defining concrete implementation class, but need to define and take out It is realized as class carries out abstract business function to entire service logic class.
Wherein, specific service class can only realize some specific logic of business functions, and abstract class can be used in describing The abstract business event of one kind carries out abstract description to a kind of specific similar functional characteristic.
List page template parent designed by the present embodiment is described by way of abstract class, can be compatible with A variety of list pages.Two parts are broadly divided into list page template parent, a part is that specific business function realizes part, another Part is realized for abstract business function in part, and specific business realizing part is mainly realized identical in multiple original lists Part, this layer of abstract service logic mainly different service parts is realized by relevant abstract function, then lead to It crosses these abstract functions and carrys out the integrality that occupy-place reaches overall flow to corresponding specific business department's classification.Abstract function is in list Definition is only existed in page template parent, there is no implementing, the realization of abstract function needs to come in each list subclass Corresponding realize is completed to operate.
Therefore, the present embodiment can be by writing the list page template parent of a set of general abstract type, and in list page Commonsense method and abstract method are defined in template parent, the realization for each different list page is each list page A list page subclass is defined, each list page subclass inherits list page template parent, by invocation list template class Commonsense method is come the identity logic during realizing each list access to web page and showing, and by each list page subclass Abstract method defined in middle copying list page template parent is come mutual not phase during realizing each list access to web page and showing Same logic, by the encapsulation of unified service logic and the fractionation of otherness service logic come lists all in compatible client The processing logic of page.
In one embodiment of the invention, the commonsense method includes the list attribute setting method and transmission of list page Data request method, the abstract method include request data address acquiring method and required parameter acquisition methods.
During the list access to web page of client and displaying, the same section of each list page is corresponded to by definition Commonsense method realize that and the different piece of each list page is by first defining corresponding pumping in the list page template parent Image function is realized.The shape that the logic of the different piece of each list page is detached and pass through abstract function by the present embodiment Formula is presented, and abstract function is only defined in list page template parent, and list page is deferred to when concrete implementation It is carried out in subclass.
Can be understood as the placeholder that abstract function is exactly a function to be achieved, define this placeholder primarily to Ensure the realization of the process of specific service logic, can facilitate so complete by calling abstract function in specific service logic At the realization of entire specific logic.
Above-mentioned commonsense method generally includes list attribute setting method and sends data request method, is respectively used to each The list attribute setting of a list page is used and sends request of data and is used, these are all the common parts of each list page. And abstract method generally includes request data address acquiring method and required parameter acquisition methods, wherein for each list The access process of page, the data source of content is different in each list page, in the mistake for carrying out data access to server Cheng Zhong needs the data address source of the incoming data to be accessed therefore to realize using abstract method.Similarly, each is arranged The required parameter of table page is also different, and therefore, is realized also by abstract method.
In another embodiment of the present invention, the step S3 is specifically included, and: S31 is adjusted in list page template parent With list attribute setting method, attribute setting is carried out to list page;S32 obtains list page subclass respectively and passes through copying list page The request data address of request data address acquiring method transmitting in template parent, and by copying list page template parent Required parameter acquisition methods transmitting required parameter;S33 generates data access according to request data address and required parameter Request, and call and send data request method to the server transmission data access request;S34 receives what server returned Data result is shown by data result in the form of list page.
During the entire process of each list access to web page and displaying, the list attribute of each list page is carried out first Setting, in general, in the client, the list page attribute of all list pages is the same, therefore, to each list page When attribute is configured, it is only necessary to which list attribute setting method this commonsense method in invocation list page template parent can be real Now the attribute of each list page is arranged.During carrying out data access to server, need to know each list Page needs the specific data accessed therefore for each list page, to need to send each list page to server and need to visit Ask the data address and required parameter of data.List page template parent in client obtains the transmitting of each list page subclass The required parameter of request data address.Wherein, specific transmission method is, since each list page subclass inherits list Page template parent, and respectively defined the request data acquisition methods of abstract type in list page template parent and be abstracted The required parameter acquisition methods of type, therefore, in each list page subclass, it is only necessary to pass through copying list page template parent In request data acquisition methods and required parameter acquisition methods, request data address and required parameter can be passed to list In page template parent.
After list page template parent gets request data address and the required parameter of list page, generates data access and ask It asks, wherein include the data address and required parameter of list page request in access request.Subsequent list page template parent is sent This commonsense method of data request method, and pass through HTTP (HyperText Transfer Protocol, Hyper text transfer association View) data access request of generation is sent to server by network request, and receives the data result of server return, and logarithm It is shown in the form of a list according to result.
In one embodiment of the invention, the step S34 is specifically included: S341, when receive server return Data result is put into view container by data result;S342 judges the affiliated class of each single item data result in view container Type, and according to the affiliated type of each single item data result, take corresponding layout that each single item data result is enterprising in list page Row load is shown.
When client receive server return data result, data result is put into view container, is waited for Load is shown.During the displaying for carrying out list page on the client, client needs to detect each data item in view container Data type, the data item of different types of data, layout in list page is different.I.e. client first judges in view container The data type of each data item, and according to the affiliated type of each data item, take corresponding layout that each data item exists Load displaying is carried out in list page.
In another embodiment of the invention, the step S342 is specifically included: function is monitored in setting in the client, is led to It crosses monitoring function and monitors list page slip event;When listening to list page slip event, statistics list page has currently been loaded Data item number, when the data item number loaded reaches preset load number, then again to server transmission data visit Ask request.
During the load that list page carries out data item is shown, function is monitored in setting in the client, mainly logical It crosses monitoring function and monitors list page sliding time.When user carries out browsing list page, if browse to the bottom of list page, meeting Pass through the more contents of sliding list page browsing, wherein more contents are that client adds in the list page of user's browsing Carry displaying.Therefore, when the monitoring function in client listens to list page slip event, then the list page has been counted currently The data item number of load, the number of the data item currently loaded to list page reach preset load number, then need Data access request is sent to server again, data are obtained from server and carry out load displaying.
By realizing the realization logic of above-mentioned abstract part and specific part, that is, list page template parent is established. At this time if necessary to the access and displaying of one specific original list of realization, it is thus only necessary to define a new list page face Class, and the original list subclass is allowed to inherit this abstract list page template parent.Then manifolding exists in list leaf class It is related that the abstract method defined in list page template parent, in this way this list page subclass just have a whole set of complete list Logic.
It can be seen that it is only necessary to the variable part in the copying list page is (namely abstract for final original list of realizing Function part) service logic can be realized as a whole set of original list load target, greatly improve development efficiency, together When reduce a possibility that problem occurs.
By the design of this programme, entire original list is abstracted into abstract service part and specific service part, each Partially Each performs its own functions completes relevant service logic to reach a kind of design framework of list template.The new column of subsequent development It is only necessary to inherit the abstract list page template parent when table page, and realize abstract function, it will be able to realize all lists The logics such as the load of page and data access.The development efficiency of program is greatly improved in this way, and subsequent if necessary to modify In the partial list page when logic, it is thus only necessary to modify the service logic of bottom, the interface of top layers all in this way is due to being The logic of underlying pages is inherited, all top level pages can be modified, and having reached can be realized whole pages at modification one The target of modification is also greatly improved the maintainability of program.
Referring to fig. 2, Fig. 2 provides the list access to web page and display systems of another embodiment of the present invention, including first determines Adopted module 21, the second definition module 22 and calling and copy module 23.
First definition module 21 defines the list page template parent of abstract type, described for being directed to multiple list pages Multiple commonsense methods and multiple abstract methods are defined in list page template parent;
Second definition module 22, for defining the list page subclass of each list page, the list page subclass inherits institute State list page template parent;
It calls and calls the list page template father for logic identical for each list page with copy module 23 Commonsense method corresponding with the logic in class, and the logic different for each list page, by list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page in middle copying list page template parent.
Referring to Fig. 3, wherein call and copy module 23 includes the first call unit 231 and the second call unit 232, institute The system of stating further includes obtaining module 24 and receiving module 25.
First call unit 231, in list page template parent invocation list property setting method, to list page into The setting of row attribute.
Module 24 is obtained, for obtaining list page subclass respectively by the request data in copying list page template parent The request data address that location acquisition methods are transmitted to list page template parent, and pass through the request in copying list page template parent The required parameter that parameter acquiring method is transmitted to list page template parent.
Second call unit 232 for generating data access request according to request data address and required parameter, and is adjusted The data access request is sent to server with data request method is sent.
Receiving module 25 is carried out data result for receiving the data result of server return in the form of list page It shows.
Referring to fig. 4, list access to web page and display systems further include memory module 26, judgment module 27, monitor 28 and of module Loading module 29.
Wherein, memory module 26, when for receiving the data result of server return when receiving module 25, by data knot Fruit is put into view container.
Judgment module 27, for judging the affiliated type of each single item data result in view container.
Module 28 is monitored, monitors list page slip event for monitoring function by setting in the client.
Loading module 29 takes corresponding layout by each item number for the affiliated type according to each single item data result Load displaying is carried out in list page according to result, and is also used to listen to list page slip event when monitoring module 28, is counted The data item number that list page has currently loaded, when the data item number loaded reaches preset load number, then again It is secondary to send data access request to server.
Fig. 5 shows the structural block diagram of the equipment of the data processing method of the embodiment of the present application.
Referring to Fig. 5, the equipment of data processing method includes: processor (processor) 501, memory (memory) 502 With bus 503;Wherein, the processor 501 and memory 502 complete mutual communication by the bus 503.
The processor 501 is used to call the program instruction in the memory 502, to execute above-mentioned each method embodiment Provided method, for example, be directed to multiple list pages, the list page template parent of abstract type defined, in the list Multiple commonsense methods and multiple abstract methods are defined in page template parent;The list page subclass of each list page is defined, it is described List page subclass inherits the list page template parent;Logic identical for each list page calls the list page mould Commonsense method corresponding with the logic in plate parent, and the logic different for each list page, by list page In subclass in copying list page template parent abstract method corresponding with the logic come realize each list page access and It shows.
The present invention discloses a kind of computer program product, which can including being stored in non-transient computer The computer program on storage medium is read, which includes program instruction, when program instruction is computer-executed, meter Calculation machine is able to carry out list access to web page and methods of exhibiting provided by above-mentioned Fig. 1 corresponding embodiment, for example, is directed to multiple column Table page defines the list page template parent of abstract type, and multiple commonsense methods and more are defined in the list page template parent A abstract method;The list page subclass of each list page is defined, the list page subclass inherits the list page template parent; Logic identical for each list page calls commonsense method corresponding with the logic in the list page template parent, And the logic different for each list page, by being patrolled in copying list page template parent with described in list page subclass Corresponding abstract method is collected to realize the access and displaying of each list page.
The present invention also provides a kind of non-transient computer readable storage medium, which is deposited Computer instruction is stored up, which makes computer execute list access to web page and exhibition provided by above-mentioned Fig. 1 corresponding embodiment Show method, for example, be directed to multiple list pages, the list page template parent of abstract type defined, in the list page template Multiple commonsense methods and multiple abstract methods are defined in parent;Define the list page subclass of each list page, the list page Subclass inherits the list page template parent;Logic identical for each list page calls the list page template parent In commonsense method corresponding with the logic, and the logic different for each list page, by list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page in copying list page template parent.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as the equipment of the access of list page described above and methods of exhibiting are only schematical, wherein making It may or may not be physically separated for the unit of separate part description, component shown as a unit can be Or it may not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be with Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment according to the actual needs.The common skill in this field Art personnel are without paying creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Certain Part Methods of example or embodiment.
List access to web page and methods of exhibiting provided by the invention and its system, in the template of the list page of design client When, list page template parent is defined as abstract type, by and define commonsense method in list page template parent and be abstracted Method, the realization for each different list page are one list page subclass of each list page definition, each list Page subclass inherits list page template parent, each list access to web page is realized by the commonsense method in invocation list template class With the identity logic during displaying, and pass through defined in the copying list page template parent in each list page subclass take out Mutually different logic during realizing each list access to web page as method and showing, passes through the envelope of unified service logic The fractionation of dress and otherness service logic carrys out the processing logic of all list pages in compatible client.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of list access to web page and methods of exhibiting characterized by comprising
S1 defines the list page template parent of abstract type, defines in the list page template parent for multiple list pages Multiple commonsense methods and multiple abstract methods;
S2, defines the list page subclass of each list page, and the list page subclass inherits the list page template parent;
S3, logic identical for each list page are called corresponding with the logic general in the list page template parent Circulation method, and the logic different for each list page, by list page subclass in copying list page template parent Abstract method corresponding with the logic realizes the access and displaying of each list page.
2. list access to web page as described in claim 1 and methods of exhibiting, which is characterized in that the commonsense method includes list page List attribute setting method and send data request method, the abstract method includes request data address acquiring method and asking Seek parameter acquiring method.
3. list access to web page as claimed in claim 2 and methods of exhibiting, which is characterized in that the step S3 is specifically included:
S31, the invocation list property setting method in list page template parent carry out attribute setting to list page;
S32 obtains list page subclass respectively and passes through the request data address acquiring method transmitting in copying list page template parent Request data address, and the required parameter transmitted by required parameter acquisition methods in copying list page template parent;
S33 generates data access request according to request data address and required parameter, and call send data request method to Server sends the data access request;
S34 receives the data result that server returns, data result is shown in the form of list page.
4. list access to web page as claimed in claim 3 and methods of exhibiting, which is characterized in that the step S34 is specifically included:
Data result is put into view container by S341 when the data result for receiving server return;
S342 judges the affiliated type of each single item data result in view container, and according to belonging to each single item data result Type takes corresponding layout that each single item data result is carried out load displaying in list page.
5. list access to web page as claimed in claim 4 and methods of exhibiting, which is characterized in that the step S342 is specifically included:
Function is monitored in setting in the client, monitors list page slip event by monitoring function;
When listening to list page slip event, the data item number that list page has currently loaded is counted, when the number loaded Reach preset load number according to item number, then sends data access request to server again.
6. list access to web page as claimed in claim 5 and methods of exhibiting, which is characterized in that list page mould in the step S33 Plate parent requests to send data access request to server by http network.
7. a kind of list access to web page and display systems characterized by comprising
First definition module defines the list page template parent of abstract type, in the list page for being directed to multiple list pages Multiple commonsense methods and multiple abstract methods are defined in template parent;
Second definition module, for defining the list page subclass of each list page, the list page subclass inherits the list Page template parent;
Call and copy module, be used for logic identical for each list page, call in the list page template parent with The corresponding commonsense method of the logic, and the logic different for each list page, by being made carbon copies in list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page in list page template parent.
8. list access to web page as claimed in claim 7 and display systems, which is characterized in that the commonsense method includes list page List attribute setting method and send data request method, the abstract method includes request data address acquiring method and asking Seek parameter acquiring method.
9. list access to web page as claimed in claim 8 and display systems, which is characterized in that the calling and copy module include First call unit and the second call unit, the system also includes obtain module and receiving module;
First call unit carries out attribute to list page for the invocation list property setting method in list page template parent Setting;
Module is obtained, is obtained for obtaining list page subclass respectively by the request data address in copying list page template parent The request data address that method is transmitted to list page template parent, and obtained by the required parameter in copying list page template parent The required parameter for taking method to transmit to list page template parent;
Second call unit for generating data access request according to request data address and required parameter, and calls transmission number The data access request is sent to server according to requesting method;
Data result is shown by receiving module for receiving the data result of server return in the form of list page.
10. a kind of equipment of list access to web page and methods of exhibiting characterized by comprising
Including processor (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough execute as the method according to claim 1 to 6.
CN201710420882.0A 2017-06-07 2017-06-07 A kind of list access to web page and methods of exhibiting and its system Active CN107329991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710420882.0A CN107329991B (en) 2017-06-07 2017-06-07 A kind of list access to web page and methods of exhibiting and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710420882.0A CN107329991B (en) 2017-06-07 2017-06-07 A kind of list access to web page and methods of exhibiting and its system

Publications (2)

Publication Number Publication Date
CN107329991A CN107329991A (en) 2017-11-07
CN107329991B true CN107329991B (en) 2019-12-03

Family

ID=60194050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710420882.0A Active CN107329991B (en) 2017-06-07 2017-06-07 A kind of list access to web page and methods of exhibiting and its system

Country Status (1)

Country Link
CN (1) CN107329991B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945031B (en) * 2017-12-25 2021-02-12 泰康保险集团股份有限公司 Data processing system and method for generating reinsurance risk unit data
CN109101264A (en) * 2018-07-27 2018-12-28 武汉斗鱼网络科技有限公司 A kind of method and electronic equipment for direct broadcasting room page development
CN111125591B (en) * 2018-11-01 2023-07-25 百度在线网络技术(北京)有限公司 Method, device, terminal and storage medium for counting exposure information
CN111191161B (en) * 2018-11-15 2022-06-21 武汉斗鱼网络科技有限公司 Page display method, storage medium, electronic device and system
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814961B (en) * 2018-12-26 2020-11-06 北京城市网邻信息技术有限公司 List control method and device, electronic equipment and storage medium
CN110457043A (en) * 2019-07-23 2019-11-15 上海易点时空网络有限公司 Page processing method and device based on React
CN117008884B (en) * 2023-07-06 2024-05-17 广州三七极耀网络科技有限公司 Logic class processing method, device, equipment and storage medium in game development

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286120A (en) * 2008-05-28 2008-10-15 北京中企开源信息技术有限公司 Website page manufacture method and system
CN106407344A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Method and system for generating search engine optimization label

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286120A (en) * 2008-05-28 2008-10-15 北京中企开源信息技术有限公司 Website page manufacture method and system
CN106407344A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Method and system for generating search engine optimization label

Also Published As

Publication number Publication date
CN107329991A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107329991B (en) A kind of list access to web page and methods of exhibiting and its system
US11481396B2 (en) Executing untrusted commands from a distributed execution model
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
CN109716320A (en) Figure for distributed event processing system generates
US20110258573A1 (en) Methods, Apparatus and Systems for Displaying and/or Facilitating Interaction with Secure Information via a Channel Grid Framework
CN107836007A (en) It was found that and issue API information
EP3020017A1 (en) Method and system for creating tax configuration templates
CN109976667A (en) A kind of mirror image management method, apparatus and system
CN104516794B (en) Backup method, the apparatus and system of database file
CN102710793B (en) Network printing system based on cloud computing and data storage method thereof
Di Martino et al. Towards a unified owl ontology of cloud vendors' appliances and services at paas and saas level
CN108595316A (en) Life cycle management method, manager, equipment and the medium of Distributed Application
Belcastro et al. Big data analysis on clouds
CN109710613A (en) Management method, device, server and the storage medium of field
Strengholt Data Management at scale
CA3178644A1 (en) Techniques to facilitate a migration process to cloud storage
Soldatos et al. A reference architecture model for big data systems in the finance sector
CN107408239A (en) Carry out the framework of Mass Data Management in communication applications by multiple mailboxes
Yao et al. Building architectures for data‐intensive science using the ADAGE framework
CN112035555B (en) Information display method, device and equipment
Katal et al. Energy optimized container placement for cloud data centers: a meta-heuristic approach
US11960488B2 (en) Join queries in data virtualization-based architecture
CN112579149B (en) Method, device, equipment and storage medium for generating model training program mirror image
CN109445966A (en) Event-handling method, device, medium and calculating equipment
CN115361389A (en) Cloud computing instance creation method and device

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