CN107329991A - 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
CN107329991A
CN107329991A CN201710420882.0A CN201710420882A CN107329991A CN 107329991 A CN107329991 A CN 107329991A CN 201710420882 A CN201710420882 A CN 201710420882A CN 107329991 A CN107329991 A CN 107329991A
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.)
Granted
Application number
CN201710420882.0A
Other languages
Chinese (zh)
Other versions
CN107329991B (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 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, pass through commonsense method and abstract method defined in list page template parent, for the realization of each different list page, for one list page subclass of each list page definition, each list page subclass inherits list page template parent, the identity logic during each list access to web page and displaying is realized by the commonsense method in invocation list template parent, and mutually different logic during each list access to web page and displaying is realized by the abstract method defined in the copying list page template parent in each list page subclass, by the encapsulation of unified service logic and the fractionation of otherness service logic come the processing logic of all list pages in compatible client.

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 field, more particularly, to a kind of list access to web page and displaying side Method and its system.
Background technology
During original list in client is accessed and shown, many processing logics can be related to, it is traditional at present Scheme is the related logic of a set of page of original list correspondence, when needing to access some specific original list and During displaying, carried out using the corresponding interrelated logic of the original list.
Because multiple pages there are many similar processing code logics, these same section service logics can be caused a large amount of The written in code repeated.Product is required for changing every time the logic generation of multiple original lists once carrying out the change of product demand Code, be so easily introduced bug generation and extremely not easy care the shortcomings of.
The content of the invention
Present invention offer is a kind of to overcome above mentioned problem or the list access to web page solved the above problems at least in part and exhibition Show method and its system.
According to an aspect of the present invention there is provided a kind of list access to web page and methods of exhibiting, including:
S1, for multiple list pages, defines the list page template parent of abstract type, in the list page template parent Defined in 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 father Class;
S3, for each list page identical logic, is called corresponding with the logic in the list page template parent Commonsense method, and for the different logic of 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.
Beneficial effects of the present invention are:When designing the template of list page of client, list page template parent is defined For abstract type, by and commonsense method and abstract method defined in list page template parent, for each different row The realization of table page, is one list page subclass of each list page definition, and 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 is realized by the abstract method defined in the copying list page template parent in each list page subclass Mutually different logic during list access to web page and displaying, is patrolled by the encapsulation and otherness business of unified service logic That collects splits the processing logic for carrying out all list pages in compatible client.
On the basis of above-mentioned technical proposal, the present invention can also make following improvement.
Further, the commonsense method includes the list attribute method to set up of list page and sends data request method, 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 carries out attribute setting to list page;
S32, obtains list page subclass and passes through the request data address acquiring method in copying list page template parent respectively The request data address of transmission, and the request transmitted by the required parameter acquisition methods in copying list page template parent are joined Number;
S33, according to request data address and required parameter, generates data access request, and call transmission request of data side Normal direction server sends the data access request;
S34, the data result that the reception server is returned, data result is shown in the form of list page.
Further, the step S34 is specifically included:
S341, when the data result for receiving server return, data result is put into view container;
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 into loading displaying in list page.
Further, the step S342 is specifically included:
Set in the client and monitor function, list page slip event is monitored by monitoring function;
When listening to list page slip event, the data item number that statistics list page has currently been loaded, when having loaded Data item number reach default loading number, then again to server send data access request.
Further, list page template parent asks 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, including:
First definition module, for for multiple list pages, the list page template parent of abstract type being defined, described Multiple commonsense methods and multiple abstract methods defined in list page template parent;
Second definition module, the list page subclass for defining each list page, the list page subclass is inherited described List page template parent;
Call and copy module, for for each list page identical logic, calling the list page template parent In commonsense method corresponding with the logic, and for the different logic of 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 method to set up of list page and sends data request method, The abstract method includes request data address acquiring method and required parameter acquisition methods.
Further, described call includes the first call unit and the second call unit with copy module, and the system is also Including acquisition module and receiving module;
First call unit, for the invocation list property setting method in list page template parent, is carried out to list page Attribute is set;
Acquisition module, the request data in copying list page template parent is passed through for obtaining list page subclass respectively The request data address that location acquisition methods are transmitted to list page template parent, and pass through asking in copying list page template parent The required parameter for asking parameter acquiring method to be transmitted to list page template parent;
Second call unit, for according to request data address and required parameter, generating data access request, and call Send data request method and send the data access request to server;
Receiving module, the data result returned for the reception server, exhibition is carried out by data result in the form of list page Show.
According to the third aspect of the invention we there is provided a kind of access of list page and the equipment of methods of exhibiting, including processing Device (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory storage, which has, to call described program by the programmed instruction of the computing device, the processor Instruction 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;
For each list page identical logic, call corresponding with the logic in the list page template parent Commonsense method, and for the different logic of each list page, pass through the copying list page template parent in list page subclass In abstract method corresponding with the logic realize the access and displaying of each list page.
Brief description of the drawings
Fig. 1 is the list access to web page and methods of exhibiting flow chart of one embodiment of the invention;
Fig. 2 connects block diagram for the list access to web page and display systems of another embodiment of the present invention;
Fig. 3 is the list access to web page and display systems integrated connection block diagram of another embodiment of the invention;
Fig. 4 connects block diagram for the list access to web page and display systems of further embodiment of the present invention;
Fig. 5 is the list access to web page of one embodiment of the invention and the equipment connection block diagram of methods of exhibiting.
Embodiment
With reference to the accompanying drawings and examples, the embodiment to the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
The list access to web page and methods of exhibiting of one embodiment of the invention are provided, a set of take out has been write referring to Fig. 1, Fig. 1 The list page template logic of elephant, by the logic write can the compatible access of all list page contents of client at present and Show.This method includes:S1, for multiple list pages, defines the list page template parent of abstract type, in the list page Multiple commonsense methods and multiple abstract methods defined in template parent;S2, defines the list page subclass of each list page, institute State list page subclass and inherit the list page template parent;S3, for each list page identical logic, calls the row Commonsense method corresponding with the logic in table page template parent, and for the different logic of each list page, by Corresponding with logic abstract method realizes each list page in copying list page template parent in list page subclass Access and displaying.
Due to having the access and displaying of multiple list pages in the client, in each list access to web page and the mistake of displaying Cheng Zhong, the content or form of the displaying of each list page are identical a bit, and some are different.Traditional processing mode It is that access for each list page and displaying process write a set of corresponding logic, in some specific list access to web page During displaying, it can all be handled using logic corresponding with the list page, so can be extremely complex.Therefore, this implementation Example write it is a set of substantially can on compatible client access and the displaying of all list pages list page processing logic.
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 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.
Then it is one list page subclass of each list page definition, each list page subclass inherits list page mould Plate parent, i.e. list page template parent as each list page subclass parent.Each list page subclass inherits list page Parent, then be respectively provided with the function of list page template parent in list page subclass.Pass through such design so that for each The logic of the different piece of individual list 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, realized by the commonsense method in invocation list page template parent, and patrolling for each list page different piece Volume, then realized by the abstract function in the copying list page template parent in each list page subclass, by each Abstract function in individual list page subclass in copying list page template parent can realize the different piece of each list page.
List page template designed by the present embodiment is the processing logic for all original lists in compatible client, In order to realize compatible this target of multiple page logics, it is impossible to realized by defining concrete implementation class, but need definition Abstract class carries out abstract business function to whole service logic class and realized.
Wherein, specific service class can only realize some specific logic of business functions, and abstract class can be used in description The abstract business event of one class, abstract description is carried out to the specific similar functional characteristic of a class.
List page template parent designed by the present embodiment is described by way of abstract class, Neng Goujian Hold a variety of list pages.Two parts are broadly divided into list page template parent, a part realizes part for specific business function, Another part is that abstract business function realizes part, and specific business realizing part is mainly realized in multiple original lists Identical part, this layer of abstract service logic is mainly by related abstract function to realize different service parts, Then the integrality of overall flow is reached to corresponding specific business department's classification come occupy-place by these abstract functions.Abstract letter Number only exists definition in list page template parent, does not implement, and the realization of abstract function is needed in each row Table subclass operates to complete corresponding realize.
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 defined in template parent, are each list page for the realization of each different list page A list page subclass is defined, each list page subclass inherits list page template parent, by invocation list template class Commonsense method come realize each list access to web page and displaying during identity logic, and by each list page son In class copying list page template parent defined in abstract method come realize each list access to web page and displaying during mutually not Identical logic, owns by the encapsulation of unified service logic and the fractionation of otherness service logic in compatible client The processing logic of list page.
In one embodiment of the invention, the commonsense method includes the list attribute method to set up and hair of list page Data request method is sent, the abstract method includes 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 passes through definition pair The commonsense method answered is realized, and the different piece of each list page passes through elder generation's correspondence defined in the list page template parent Abstract function realize.The present embodiment is detached the logic of the different piece of each list page and by abstract letter Several forms is presented, and abstract function is only defined in list page template parent, and postpone during concrete implementation Carried out into list page subclass.
The placeholder that abstract function is exactly a function to be achieved is can be understood as, this placeholder is defined and is mainly and be Ensure the realization of the flow of specific service logic, so can facilitate in specific service logic by calling abstract function To complete the realization of whole specific logic.
Above-mentioned commonsense method generally includes list attribute method to set up and sends data request method, is respectively used to every The list attribute setting of one list page is used and sent request of data and is used, and these are all the common portions of each list page Point.And abstract method generally includes request data address acquiring method and required parameter acquisition methods, wherein, for each The data source of content is different in the access process of list page, each list page, and data visit is being carried out to server , it is necessary to which the data address source of the incoming data to be accessed, therefore, is realized using abstract method during asking.Similarly, The required parameter of each list page is also different, therefore, is realized also by abstract method.
In another embodiment of the present invention, the step S3 is specifically included:S31, is adjusted in list page template parent List attribute method to set up is used, attribute setting is carried out to list page;S32, obtains list page subclass and passes through copying list page respectively The request data address of request data address acquiring method transmission in template parent, and pass through copying list page template parent In required parameter acquisition methods transmission required parameter;S33, according to request data address and required parameter, generates data Access request, and call transmission data request method to send the data access request to server;S34, the reception server is returned The data result returned, data result is shown 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 entered first Row is set, generally, in the client, what the list page attributes of all list pages was just as, therefore, to each list The attribute of page is when being configured, it is only necessary to list attribute method to set up this commonsense method in invocation list page template parent It can be achieved to set the attribute of each list page., it is necessary to know every during data access is carried out to server One list page needs the specific data accessed, therefore, for each list page, it is necessary to send each row to server Table page needs to access the data address and required parameter of data.List page template parent in client obtains each list The required parameter of the request data address of page subclass transmission.Wherein, specific transmission method is, due to each list page Class inherits list page template parent, and the number of request of abstract type has been respectively defined in list page template parent According to acquisition methods and the required parameter acquisition methods of abstract type, therefore, in each list page subclass, it is only necessary to pass through Request data acquisition methods and required parameter acquisition methods in copying list page template parent, you can by request data address Passed to required parameter in list page template parent.
List page template parent is got after request data address and the required parameter of list page, and generation data access please Ask, wherein, access request includes the data address and required parameter of list page request.Subsequent list page template parent hair Send data request method this commonsense method, and pass through HTTP (HyperText Transfer Protocol, Hyper text transfer Agreement) data access request of generation is sent to server by network request, and the data result that the reception server is returned, and Data result is shown in the form of a list.
In one embodiment of the invention, the step S34 is specifically included:S341, when receive server return Data result, data result is put into view container;S342, judges the affiliated of each single item data result in view container Type, and according to the affiliated type of each single item data result, take and be laid out each single item data result accordingly in list page Carry out loading displaying.
When client receives the data result of server return, data result is put into view container, waited for Loading displaying.During the displaying for carrying out list page on the client, client needs each data item in detection view container Data type, the data item of different types of data, layout in list page is different.I.e. client first judges view container In each data item data type, and according to the affiliated type of each data item, take corresponding layout by each data Item carries out loading displaying in list page.
In an alternative embodiment of the invention, the step S342 is specifically included:Set in the client and monitor function, List page slip event is monitored by monitoring function;When listening to list page slip event, statistics list page has currently been loaded Data item number, when the data item number loaded reaches default loading number, then send data to server again Access request.
During list page carries out the loading displaying of data item, set monitor function in the client, mainly lead to Cross monitoring function and monitor list page sliding time.When user carries out browsing list page, if browse to the bottom of list page, Can by the more contents of sliding list page browsing, wherein, in the list page that user browses more contents be client carry out Loading displaying.Therefore, when the monitoring function in client listens to list page slip event, then the list page is counted current The data item number loaded, the number of the data item currently loaded to list page reaches default loading number, then Need to send data access request to server again, data are obtained at server and carry out loading displaying.
Logic is realized in the abstract part above-mentioned by realizing and specific part, that is, has established list page template parent. The access and displaying of a specific original list are now realized if desired, it is thus only necessary to define a new original list Subclass, and allow the original list subclass to inherit this abstract list page template parent.Then made carbon copies in list leaf class The good abstract method defined in list page template parent, so this list page subclass just possess a whole set of complete list Related logic.
It can be seen that final realizes that the variable part that original list is needed only in the copying list page (is namely taken out Image function part) service logic can be realized as a whole set of original list loading target, greatly improve exploitation effect Rate, while reducing the possibility of problem appearance.
By the design of this programme, whole original list is abstracted into abstract service part and specific service part, each Partly Each performs its own functions completes related service logic to have reached a kind of design framework of list template.Subsequent development is new Need only to inherit the abstract list page template parent when list page, and realize abstract function, it becomes possible to realize all row The logic such as the loading of table page and data access.The development efficiency of program is so greatly improved, and subsequently if desired When changing logic in the partial list page, it is thus only necessary to change the service logic of bottom, the interfaces of so all top layers by Then the logic of underlying pages is inherited, all top level pages can be changed, whole can be realized at modification one by having reached The target of page 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 call and copy module 23.
First definition module 21, for for multiple list pages, the list page template parent of abstract type being defined, in institute State multiple commonsense methods and multiple abstract methods defined in list page template parent;
Second definition module 22, the list page subclass for defining each list page, the list page subclass inherits institute State list page template parent;
Call with copy module 23, for for each list page identical logic, calling the list page template father Commonsense method corresponding with the logic in class, and for the different logic of each list page, by list page subclass Abstract method corresponding with the logic realizes the access and exhibition of each list page in middle copying list page template parent Show.
Referring to Fig. 3, wherein, call includes the first call unit 231 and the second call unit 232, institute with copy module 23 Stating system also includes acquisition module 24 and receiving module 25.
First call unit 231, for the invocation list property setting method in list page template parent, to list page Carry out attribute setting.
Acquisition module 24, the request data in copying list page template parent is passed through for obtaining list page subclass respectively The request data address that address acquiring method is transmitted to list page template parent, and by copying list page template parent The required parameter that required parameter acquisition methods are transmitted to list page template parent.
Second call unit 232, for according to request data address and required parameter, generating data access request, and adjust With transmission data request method the data access request is sent to server.
Receiving module 25, the data result returned for the reception server, data result is carried out in the form of list page Displaying.
Referring to Fig. 4, list access to web page and display systems also include memory module 26, judge module 27, monitor the and of module 28 Load-on module 29.
Wherein, memory module 26, for when receiving module 25 receives the data result that server is returned, by data As a result it is put into view container.
Judge module 27, the affiliated type for judging each single item data result in view container.
Module 28 is monitored, for monitoring function monitoring list page slip event by setting in the client.
Load-on module 29, for the affiliated type according to each single item data result, takes corresponding layout by each item number Loading displaying is carried out in list page according to result, and is additionally operable to, when monitoring module 28 listens to list page slip event, count The data item number that list page has currently been loaded, when the data item number loaded reaches default loading number, then again It is secondary to send data access request to server.
Fig. 5 shows the structured flowchart of the equipment of the data processing method of the embodiment of the present application.
Reference picture 5, the equipment of data processing method includes:Processor (processor) 501, memory (memory) 502 and bus 503;Wherein, the processor 501 and memory 502 complete mutual communication by the bus 503.
The processor 501 is used to call the programmed instruction in the memory 502, is implemented with performing above-mentioned each method The method that is there is provided of example, for example including:For multiple list pages, the list page template parent of abstract type is defined, in the row Multiple commonsense methods and multiple abstract methods defined in table page template parent;Define the list page subclass of each list page, institute State list page subclass and inherit the list page template parent;For each list page identical logic, the list is called Commonsense method corresponding with the logic in page template parent, and for the different logic of each list page, by row Corresponding with logic abstract method realizes the visit of each list page in copying list page template parent in table page subclass Ask and show.
The present invention discloses a kind of computer program product, and the computer program product includes being stored in non-transient computer Computer program on readable storage medium storing program for executing, the computer program includes programmed instruction, when programmed instruction is computer-executed When, computer is able to carry out the list access to web page and methods of exhibiting that above-mentioned Fig. 1 correspondence embodiment is provided, for example including:For Multiple list pages, define the list page template parent of abstract type, multiple common defined in the list page template parent Method and multiple abstract methods;The list page subclass of each list page is defined, the list page subclass inherits the list page Template parent;For each list page identical logic, call corresponding with the logic in the list page template parent Commonsense method, and for the different logic of each list page, pass through the copying list page template parent in list page subclass In abstract method corresponding with the logic realize the access and displaying of each list page.
The present invention also provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing Store computer instruction, the computer instruction make computer perform list access to web page that above-mentioned Fig. 1 correspondence embodiment provided and Methods of exhibiting, for example including:For multiple list pages, the list page template parent of abstract type is defined, in the list page mould Multiple commonsense methods and multiple abstract methods defined in plate parent;Define the list page subclass of each list page, the row Table page subclass inherits the list page template parent;For each list page identical logic, the list page template is called Commonsense method corresponding with the logic in parent, and for the different logic of 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.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can lead to Cross the related hardware of programmed instruction to complete, foregoing program can be stored in a computer read/write memory medium, the journey Sequence upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
The embodiment such as the access of list page described above and the equipment of methods of exhibiting is only schematical, wherein The unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can To be or may not be physical location, you can with positioned at a place, or multiple NEs can also be distributed to On.Some or all of module therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.This Field those of ordinary skill is not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment The mode of required general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Based on such reason Solution, the part that above-mentioned technical proposal substantially contributes to prior art in other words can be embodied in the form of software product Out, the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, Including some instructions to cause a computer equipment (can be personal computer, server, or network equipment etc.) to hold Some Part Methods of each embodiment of row or embodiment.
List access to web page and methods of exhibiting and its system that the present invention is provided, in the template of the list page of design client When, list page template parent is defined as abstract type, by and commonsense method defined in list page template parent and abstract Method, is one list page subclass of each list page definition for the realization of each different list page, each row Table page subclass inherits list page template parent, and each list page is realized by the commonsense method in invocation list template class Identity logic during accessing and showing, and by fixed in the copying list page template parent in each list page subclass The abstract method of justice passes through unified business come mutually different logic during realizing each list access to web page and showing The encapsulation of logic and the fractionation of otherness service logic carry out the processing logic of all list pages in compatible client.
Finally, the present processes are only preferably embodiment, are 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 substitution and improvements made etc., should be included in the guarantor of the present invention Within the scope of shield.

Claims (10)

1. a kind of list access to web page and methods of exhibiting, it is characterised in that including:
S1, for multiple list pages, defines the list page template parent of abstract type, defined in the list page template parent 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, for each list page identical logic, is called corresponding with the logic general in the list page template parent Circulation method, and for the different logic of each list page, by the copying list page template parent in list page subclass Abstract method corresponding with the logic realizes the access and displaying of each list page.
2. list access to web page as claimed in claim 1 and methods of exhibiting, it is characterised in that the commonsense method includes list page List attribute method to set up and send data request method, the abstract method include request data address acquiring method and please Seek parameter acquiring method.
3. list access to web page as claimed in claim 2 and methods of exhibiting, it is characterised in that the step S3 is specifically included:
S31, the invocation list property setting method in list page template parent carries out attribute setting to list page;
S32, obtains list page subclass and is transmitted by the request data address acquiring method in copying list page template parent respectively Request data address, and pass through copying list page template parent in required parameter acquisition methods transmit required parameter;
S33, according to request data address and required parameter, generates data access request, and call transmission data request method to Server sends the data access request;
S34, the data result that the reception server is returned, 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, it is characterised in that the step S34 is specifically included:
S341, when the data result for receiving server return, data result is put into view container;
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 into loading displaying in list page.
5. list access to web page as claimed in claim 4 and methods of exhibiting, it is characterised in that the step S342 is specifically included:
Set in the client and monitor function, list page slip event is monitored by monitoring function;
When listening to list page slip event, the data item number that list page has currently been loaded is counted, when the number loaded Default loading number is reached 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, it is characterised in that list page mould in the step S33 Plate parent asks to send data access request to server by http network.
7. a kind of list access to web page and display systems, it is characterised in that including:
First definition module, for for multiple list pages, the list page template parent of abstract type being defined, in the list page Multiple commonsense methods and multiple abstract methods defined in template parent;
Second definition module, the list page subclass for defining each list page, the list page subclass inherits the list Page template parent;
Call and copy module, for for each list page identical logic, call in the list page template parent with The corresponding commonsense method of the logic, and for the different logic of each list page, pass through and 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, it is characterised in that the commonsense method includes list page List attribute method to set up and send data request method, the abstract method include request data address acquiring method and please Seek parameter acquiring method.
9. list access to web page as claimed in claim 8 and methods of exhibiting, it is characterised in that described call includes with copy module First call unit and the second call unit, the system also include acquisition module and receiving module;
First call unit, for the invocation list property setting method in list page template parent, attribute is carried out to list page Set;
Acquisition module, the request data address acquisition in copying list page template parent is passed through for obtaining list page subclass respectively 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 be transmitted to list page template parent;
Second call unit, for according to request data address and required parameter, generating data access request, and call transmission number According to requesting method the data access request is sent to server;
Receiving module, the data result returned for the reception server, data result is shown in the form of list page.
10. the equipment of a kind of list access to web page and methods of exhibiting, it is characterised in that including:
Including processor (processor), memory (memory) and bus;
The processor and memory complete mutual communication by the bus;
The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program to instruct energy Enough perform the method as described in claim any one of 1-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 true CN107329991A (en) 2017-11-07
CN107329991B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945031A (en) * 2017-12-25 2018-04-20 泰康保险集团股份有限公司 Data handling system and unit of risk data creation method is protected again
CN109101264A (en) * 2018-07-27 2018-12-28 武汉斗鱼网络科技有限公司 A kind of method and electronic equipment for direct broadcasting room page development
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814961A (en) * 2018-12-26 2019-05-28 北京城市网邻信息技术有限公司 List controls method, apparatus, electronic equipment and storage medium
CN110457043A (en) * 2019-07-23 2019-11-15 上海易点时空网络有限公司 Page processing method and device based on React
CN111125591A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Statistical method, device, terminal and storage medium of exposure information
CN111191161A (en) * 2018-11-15 2020-05-22 武汉斗鱼网络科技有限公司 Page display method, storage medium, electronic device and system
CN117008884A (en) * 2023-07-06 2023-11-07 广州三七极耀网络科技有限公司 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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945031A (en) * 2017-12-25 2018-04-20 泰康保险集团股份有限公司 Data handling system and unit of risk data creation method is protected again
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
CN111125591A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Statistical method, device, terminal and storage medium of exposure information
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
CN111191161A (en) * 2018-11-15 2020-05-22 武汉斗鱼网络科技有限公司 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
CN109814961A (en) * 2018-12-26 2019-05-28 北京城市网邻信息技术有限公司 List controls method, apparatus, electronic equipment and storage medium
CN110457043A (en) * 2019-07-23 2019-11-15 上海易点时空网络有限公司 Page processing method and device based on React
CN117008884A (en) * 2023-07-06 2023-11-07 广州三七极耀网络科技有限公司 Logic class processing method, device, equipment and storage medium in game development
CN117008884B (en) * 2023-07-06 2024-05-17 广州三七极耀网络科技有限公司 Logic class processing method, device, equipment and storage medium in game development

Also Published As

Publication number Publication date
CN107329991B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN107329991A (en) A kind of list access to web page and methods of exhibiting and its system
CN109845221A (en) Access control policy for service layer is synchronous
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN107396199A (en) Barrage method for exhibiting data and device, computer-readable recording medium
CN104216698B (en) A kind of registration web page method and relevant apparatus
CN112860777B (en) Data processing method, device and equipment
CN108170731A (en) Data processing method, device, computer storage media and server
CN108804484A (en) The data measures and procedures for the examination and approval, equipment and computer readable storage medium
CN107423635A (en) A kind of Application share method and its device, user terminal
US11882154B2 (en) Template representation of security resources
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN108134812A (en) Data processing method and device
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN103975301B (en) The method for carrying out Event Service to local client computer application by home server
CN107515907B (en) The display methods and device of browser page
CN108984339A (en) Data reconstruction method and Related product
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN107408239A (en) Carry out the framework of Mass Data Management in communication applications by multiple mailboxes
CN106209584A (en) User profile processing method based on the Internet, client and server
CN110673827B (en) Resource calling method and device based on android system and electronic equipment
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
CN104978372A (en) Multimedia information processing method, multimedia device and multimedia network system
CN102184105A (en) Data processing method based on modularity and data center system
CN106775835A (en) Obtain method, server and the terminal of upgrade file

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