CN107329976B - Webpage paging method and device, computer equipment and computer readable storage medium - Google Patents

Webpage paging method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN107329976B
CN107329976B CN201710386976.0A CN201710386976A CN107329976B CN 107329976 B CN107329976 B CN 107329976B CN 201710386976 A CN201710386976 A CN 201710386976A CN 107329976 B CN107329976 B CN 107329976B
Authority
CN
China
Prior art keywords
webpage
data
data volume
server
acquiring
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.)
Expired - Fee Related
Application number
CN201710386976.0A
Other languages
Chinese (zh)
Other versions
CN107329976A (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.)
Shenzhen Xiaoniu Online Internet Information Consulting Co ltd
Original Assignee
Shenzhen Xiaoniu Online Internet Information Consulting 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 Shenzhen Xiaoniu Online Internet Information Consulting Co ltd filed Critical Shenzhen Xiaoniu Online Internet Information Consulting Co ltd
Priority to CN201710386976.0A priority Critical patent/CN107329976B/en
Publication of CN107329976A publication Critical patent/CN107329976A/en
Application granted granted Critical
Publication of CN107329976B publication Critical patent/CN107329976B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention relates to a webpage paging method, a webpage paging device, computer equipment and a computer readable storage medium. The method comprises the following steps: acquiring the display data volume of each webpage; sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage; receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage; receiving an instruction of calling a webpage data volume acquisition function by the server; waiting for the server to call the webpage data volume acquisition function; receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function; and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data. The webpage paging method and device, the computer equipment and the computer readable storage medium can enhance the applicability of the paging method.

Description

Webpage paging method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for paging a web page, a computer device, and a computer-readable storage medium.
Background
With the development of internet and computer technologies, a method for obtaining information through a webpage is more and more emphasized by users, many webpages can relate to more data when being displayed, and data needs to be displayed in pages, so that the users can browse the webpages conveniently, view the data displayed by the webpages and perform related operations.
The traditional method for paging data on a webpage has single function of supporting paging, so that the applicability is not strong.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for paging web pages, aiming at the problem that the conventional method for paging web pages is not strong in applicability.
A method of paging web pages, the method comprising:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
waiting for the server to call a webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, the method further comprises:
when an asynchronous loading mode is adopted, executing the step of sending a request for asynchronously acquiring webpage data to a server;
when a synchronous loading mode is adopted, sending a request for synchronously acquiring webpage data to a server, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage;
receiving webpage data and total data volume of the webpage data which are synchronously returned by a server and have the same data volume;
displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, the method further comprises:
acquiring the number of times of the transmitted request for acquiring the webpage data;
and when the frequency of the requests for acquiring the webpage data exceeds a preset value, stopping sending the requests for acquiring the webpage data.
In one embodiment, the method comprises:
receiving a request for asynchronously acquiring webpage data sent by a terminal, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
according to the request for asynchronously acquiring the data, returning webpage data with the data volume equal to the display data volume of each webpage to the terminal;
calling the webpage data volume obtaining function in the terminal;
acquiring the total data volume of the webpage data through the webpage data volume acquisition function;
and sending the total data volume of the webpage data to the terminal.
In one embodiment, the step of obtaining the total data volume of the web page data through the web page data volume obtaining function includes:
and when the webpage data contain the total data volume of the webpage data, reading the total data volume of the webpage data.
In one embodiment, the step of obtaining the total data volume of the web page data through the web page data volume obtaining function includes:
when the webpage data do not contain the total data volume of the webpage data and the type of the webpage data is a list, calculating the length of the list;
and calculating the total data volume of the webpage data according to the length of the list.
A web page paging apparatus, the apparatus comprising:
the acquisition module is used for acquiring the display data volume of each page of webpage;
the asynchronous data loading module is used for sending a request for asynchronously acquiring webpage data to the server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
the first receiving module is used for receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
the waiting module is used for waiting for the server to call a webpage data volume acquisition function;
the second receiving module is used for receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and the first calculation module is used for calculating and displaying the page split of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
In one embodiment, the asynchronous data loading module is further configured to send a request for asynchronously acquiring web page data to the server when an asynchronous loading mode is adopted;
the device further comprises:
the synchronous data loading module is used for sending a request for synchronously acquiring webpage data to the server when the data loading mode is a synchronous loading mode, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage;
the third receiving module is used for receiving webpage data which are synchronously returned by the server and have the data volume equal to the display data volume of each webpage and the total data volume of the webpage data;
the display module is used for displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
and the second calculation module is used for calculating and displaying the page split of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
receiving an instruction of calling a webpage data volume acquisition function by the server;
waiting for the server to call the webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
receiving an instruction of calling a webpage data volume acquisition function by the server;
waiting for the server to call the webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function; and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
The webpage paging method, the webpage paging device, the computer equipment and the computer readable storage medium firstly acquire a data loading mode and a display data volume of each webpage, when the data loading mode is an asynchronous loading mode, a request carrying the display data volume of each webpage for asynchronously acquiring webpage data is sent to a server, webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage are received and displayed, a webpage data volume acquiring function is waited to be called by the server according to a received instruction of reading the webpage data volume acquiring function by the server, the total data volume of the webpage data returned by the server according to the webpage data volume acquiring function is received, finally, the number of pages to be paged is calculated and displayed according to the display data volume of each webpage and the total data volume of the webpage data, and the applicability of the webpage paging method is enhanced.
Drawings
FIG. 1 is a schematic diagram illustrating a web page paging system according to an embodiment;
FIG. 2 is a flow diagram of a web page paging method in accordance with an embodiment;
FIG. 3 is a flowchart illustrating a method for paging web pages according to another embodiment;
FIG. 4 is a flow diagram of the correlation steps in one embodiment;
FIG. 5 is a flowchart illustrating a method for paging a web page in accordance with yet another embodiment;
FIG. 6 is a flowchart of step S508 of the embodiment shown in FIG. 5;
FIG. 7 is a timing diagram illustrating a method for paging web pages in an embodiment;
FIG. 8 is a diagram illustrating an exemplary embodiment of a web page paging device;
FIG. 9 is a diagram illustrating a structure of a web page paging device according to another embodiment;
FIG. 10 is a block diagram of a computer device in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Before describing in detail embodiments that are in accordance with the present invention, it should be observed that the embodiments reside primarily in combinations of steps and apparatus components related to web page paging methods, apparatus, computer devices, and computer-readable storage media. Accordingly, the apparatus components and method steps have been represented where appropriate by conventional symbols in the drawings, showing only those details that are pertinent to understanding the embodiments of the present invention so as not to obscure the disclosure with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
In this document, relational terms such as left and right, top and bottom, front and back, first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a web page paging system according to an embodiment, where the web page paging system may include a plurality of terminals and servers, and the terminals may be a portable computer, a desktop computer, a mobile phone, a tablet computer, and the like. The server is a platform for providing network data for the terminal. The terminal and the server may communicate, for example, the terminal and the server may access the network through a router or the like, thereby achieving communication between the terminal and the server.
In one embodiment, please refer to fig. 2, which is a flowchart illustrating a web page paging method in an embodiment, where the method is applied to a terminal in the web page paging system in fig. 1. The terminal is operated with a terminal control program, and the webpage paging method of the terminal is implemented through the terminal control program. The method specifically comprises the following steps:
s202: and acquiring the display data volume of each webpage.
Specifically, the display data amount of each web page refers to the number of data displayable in the data display area of the web page, and the display data amount of each web page may be the number of pieces of display data of each web page, the number of rows of display data of each web page, the number of display data of each web page, or the like. Wherein the data display area of the web page may be the entire web page area, a portion of the web page area, or separate portions of the web page area.
S204: and sending a request for asynchronously acquiring webpage data to the server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage.
Specifically, asynchronous means that after the terminal sends a request for acquiring the web page data to the server, the terminal may continue to perform other work before the server returns the web page data. And the terminal sends a request for asynchronously acquiring the webpage data to the server, wherein the request for asynchronously acquiring the webpage data can carry the display data volume of each webpage at the same time. It should be noted that, when asynchronously acquiring web page data, the terminal may use one thread to execute a request for acquiring web page data, and another thread to execute other work, and when the server returns web page data, the server may directly return to the designated thread to ensure that the threads can be performed orderly without confusion, for example, the server may return to the thread for acquiring the request for web page data, or return to the thread for executing other corresponding work.
S206: and receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage.
Specifically, after the terminal sends a request for asynchronously acquiring the web page data to the server, the server reads the display data volume of each page of web page carried in the request for asynchronously acquiring the web page data, the server queries corresponding web page data according to the request for asynchronously acquiring the web page data, and reads the web page data according to a preset sequence according to the display data volume of each page of web page carried in the request for asynchronously acquiring the web page data, for example, the web page data with the data volume equal to the display data volume of each page of web page may be read according to the sequence of the arrangement of the web page data in the server to return to the terminal, or the web page data with the data volume equal to the display data volume of each page of web page may be acquired after the web page data stored in the server is sorted according to keywords in the request for the web page data to return to the terminal. After receiving the web page data returned by the server, the terminal displays the received web page data on the web page with the corresponding page number, for example, on the first page or on the fifth page. The quantity of the webpage data received by the terminal is equal to the quantity of the display data of each webpage.
S208: and waiting for the server to call a webpage data volume acquisition function.
Specifically, the web page data amount obtaining function refers to a function that can be called by the server and can obtain the web page data amount, and the web page data amount obtaining function is stored in the terminal. For example, the terminal may set a thread for calling the webpage data amount obtaining function, the thread may be generated when the terminal sends a request for asynchronously obtaining the webpage data, and the thread is in a ready state, and the server may call the webpage data amount obtaining function through the thread.
S210: and receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function.
Specifically, after a webpage data amount obtaining function arranged in the terminal is called by the server, the server obtains the total data amount of the webpage data through the webpage data amount obtaining function and sends the total data amount to the terminal, and then the terminal can receive the total data amount of the webpage data obtained by the server according to the webpage data amount obtaining function.
For example, when a user wants to obtain data related to "pan treasure", the request for obtaining the web page data related to "pan treasure" is sent to the server through the terminal, the server can query all web page data related to "pan treasure" according to the request, and the total amount of the web page data related to "pan treasure" is the total data amount of the web page data here.
S212: and calculating and displaying the page number of the webpage according to the display data volume of each webpage and the total data volume of the webpage data.
Specifically, the terminal receives the total data volume of the web page data, and can calculate the page number of the web page according to the total data volume of the received web page data and the acquired display data volume of each page of the web page, for example, the page number of the web page can be represented by a ratio of the total data volume of the web page data to the display data volume of each page of the web page, and then the page number of the web page is displayed to the user.
It should be noted that, format setting may also be performed on the webpage data to be displayed in the terminal, so that the display style may be changed when the webpage data is displayed, and functions such as displaying automatic skip of the webpage data may be implemented. For example, the web page data may be set on the terminal to be displayed in different colors on the terminal, the web page data may be red, green, yellow, or the like when the first page is displayed, the web page data may be red, green, yellow, or the like when the third page is displayed, the web page data of some lines of a certain page may be displayed in different colors, for example, the web page data of the third line of the first page may be displayed in red, green, blue, or the like. The terminal can also be set to perform operations such as multi-selection and single selection on the displayed webpage data, and can also be set to automatically jump to the related information of the currently clicked webpage data when a user clicks the displayed webpage data.
In the above embodiment, the terminal first obtains the display data volume of each page of web page, when the data loading mode is the asynchronous loading mode, the terminal sends a request for asynchronously obtaining web page data carrying the display data volume of each page of web page to the server, receives and displays web page data returned by the server and having the data volume equal to the display data volume of each page of web page, waits for the server to call the web page data volume obtaining function according to a received instruction for reading the web page data volume obtaining function by the server, receives the total data volume of the web page data returned by the server according to the web page data volume obtaining function, and finally calculates and displays the page division number according to the display data volume of each page of web page and the total data volume of the web page data, so that the applicability of the web page paging method is enhanced.
In one embodiment, referring to fig. 3, another web page paging method is provided, where the steps of the web page paging method may be performed after step S202 of the embodiment shown in fig. 2, that is, after the amount of display data of each web page is obtained, the steps of the web page paging method may include:
s302: and when an asynchronous loading mode is adopted, executing the step of sending the request for asynchronously acquiring the webpage data to the server.
Specifically, the asynchronous loading means that the terminal can execute other work before the loading of the webpage data of each page is completed. The method comprises the steps that a terminal acquires a data loading mode, when the terminal adopts an asynchronous loading mode, firstly, the terminal sends a request for asynchronously acquiring webpage data to a server, the request for asynchronously acquiring the webpage data carries the display data volume of each webpage, after the server receives the request for asynchronously acquiring the webpage data sent by a client, the server returns the webpage data with the data volume equal to the display data volume of each webpage to the terminal, and then, the terminal receives and displays the webpage data returned by the server; in addition, the terminal waits for the server to call a webpage data volume obtaining function, after the server calls the webpage data volume obtaining function, the total data volume of the webpage data is sent to the terminal, and the terminal receives the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function; and finally, calculating and displaying the page number of the webpage by the terminal according to the display data volume of each webpage and the total data volume of the webpage data, for example, the page number of the webpage can be represented by the ratio of the total data volume of the webpage to the display data volume of each webpage, and then the page number of the webpage is displayed to a user.
It should be noted that, when the terminal acquires the web page data to be displayed on the first page from the server for the first time and displays the web page data acquired from the server on the first page, the first page web page may load one UR L (uniform resource locator) address, when the terminal acquires the web page data on the second page, the terminal continues to send a request for asynchronously acquiring the web page data to the server, when the server receives the request for asynchronously acquiring the web page data sent by the terminal, the server returns the web page data to the terminal according to the request for asynchronously acquiring the web page data, where the data amount of the web page data is equal to the display data amount of each page web page, and then the terminal receives the web page data of the second page returned by the server and displays the received web page data on the web page of the second page, and the UR L address of the second page is the same as the UR L address of the first page, and so on the basis of all asynchronous web page data acquired by the terminal.
S304: and when a synchronous loading mode is adopted, sending a request for synchronously acquiring webpage data to the server, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage.
Specifically, synchronization means that after a terminal sends a request for acquiring webpage data to a server, the terminal can continue to execute subsequent work only after receiving the webpage data returned by the server; synchronous loading means that when the terminal loads the webpage data of each page, the terminal can execute subsequent work after the webpage data are acquired. And when the terminal adopts the synchronous loading mode, the terminal sends a request for synchronously acquiring webpage data to the server, and the request for synchronously acquiring the webpage data can carry the display data volume of each webpage at the same time.
When the terminal acquires the webpage data required to be displayed on the first page from the server for the first time and displays the webpage data acquired from the server on the first page, a UR L address is loaded on the first page, when the terminal acquires the webpage data of the second page, the terminal continues to send a request for synchronously acquiring the webpage data to the server, when the server receives the request for synchronously acquiring the webpage data sent by the terminal, the terminal returns the webpage data with the data quantity equal to the display data quantity of each page to the terminal according to the request for synchronously acquiring the webpage data, further the terminal receives the webpage data returned by the server, the received webpage data is displayed on the second page, and the UR L address of the second page is reloaded, namely, the UR L address of the new webpage changes each time the webpage data of the new webpage is loaded, and in the process of synchronously acquiring the webpage data, the UR L address of each page of the terminal generates a new UR L address each time the webpage acquires the data.
S306: receiving webpage data and total data volume of the webpage data, which are synchronously returned by the server and have the data volume equal to the display data volume of each webpage.
Specifically, after the terminal sends a request for synchronously acquiring the web page data to the server, the server reads the display and data volume of each web page included in the request for synchronously acquiring the web page data, the terminal receives the web page data returned by the server, the data volume of the web page data is equal to the display data volume of each web page, and in addition, different from the request for asynchronously acquiring the web page data, the terminal also receives the total data volume of the web page data sent by the server when the request for synchronously acquiring the web page data is received.
S308: and displaying the webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage.
Specifically, the terminal displays the web page data received from the server on the area of each web page where the display data is needed, and the data amount of the web page data received from the server by the terminal is equal to the display data amount of each web page.
S310: and calculating and displaying the page splitting number of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
Specifically, the terminal receives the total data volume of the web page data, and can calculate the page number of the web page according to the total data volume of the received web page data and the acquired display data volume of each page of the web page, for example, the page number of the web page can be represented by a ratio of the total data volume of the web page data to the display data volume of each page of the web page, and then the page number of the web page is displayed to the user.
In the embodiment, after the terminal acquires the display data volume of each webpage, a data loading mode is further acquired, and when the data loading mode is an asynchronous loading mode, a subsequent step of sending a request for asynchronously acquiring webpage data to the server is executed; when the data loading mode is a synchronous loading mode, firstly, a request for synchronously acquiring webpage data is sent to a server, the request for synchronously acquiring the webpage data carries the display data volume of each webpage, then, a terminal receives the webpage data and the total data volume of the webpage data, the data volume of which is synchronously returned by the server and is equal to the display data volume of each webpage, then, the webpage data is displayed on an area of each webpage needing the display data, and finally, page division of the webpage is calculated and displayed according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, referring to fig. 4, an association step is provided, which may be performed in the embodiment shown in fig. 2 or fig. 3, and the association step may include the following steps:
s402: and acquiring the number of times of the transmitted request for acquiring the webpage data.
Specifically, when the terminal sends a request for acquiring web page data to the server, the number of times of sending the request for acquiring web page data is recorded on the terminal, and the number of times of sending the request for acquiring web page data can be directly acquired. For example, when the terminal sends a request for acquiring webpage data to the server for the first time, the number of times of sending the request for acquiring webpage data is recorded as 1 on the terminal, when the terminal sends the request for acquiring webpage data to the server for the second time, the number of times of sending the request for acquiring webpage data is recorded as 1, and the number of times of sending the request for acquiring webpage data is recorded as 2 on the terminal, and each time the terminal sends the request for acquiring webpage data to the server, the number of times of sending the request for acquiring webpage data is recorded as 1 on the terminal, and the number of times of sending the webpage data is recorded as the data; the method may further include recording, on the terminal, the number of times of the transmitted request for acquiring the web page data as the number of pages of the web page or a preset value when the terminal transmits the request for acquiring the web page data to the server for the first time, and recording, on the terminal, the number of times of the transmitted request for acquiring the web page data minus 1 when the terminal transmits the request for acquiring the web page data to the server for the second time, and further recording, on the terminal, the number of times of the transmitted request for acquiring the web page data minus 1 each time the terminal transmits the request for acquiring the web page data to the server, where the number of times of the transmitted request for acquiring the web page is the number of pages of the web page minus the recorded data or.
S404: and when the frequency of the requests for acquiring the webpage data exceeds a preset value, stopping sending the requests for acquiring the webpage data.
Specifically, a preset value of the number of times of requests for acquiring web page data is set on the terminal, when the number of times of the requests for acquiring web page data that have been sent exceeds the preset value, the terminal stops sending the requests for acquiring web page data to the server, and the number of pages of the web page on the terminal is equal to the preset value of the number of times of the requests for acquiring web page data that are set on the terminal. For example, a preset value of 19 is set on the terminal for the number of requests for acquiring web page data, and when the terminal first sends a request for acquiring web page data to the server, the initial value of the number of transmitted requests for acquiring web page data is recorded as 1 on the terminal, whether the number of transmitted requests for acquiring web page data exceeds the preset value 19 is judged, if the preset value 19 is not exceeded, the next time the terminal sends a request to the server to retrieve web page data, the number of requests for acquiring web page data recorded on the terminal is increased by 1 until it is judged that the number of transmitted requests for acquiring web page data exceeds 19, and then the terminal stops sending a request for acquiring the webpage data to the server next time, the webpage data is only displayed to the webpage with the webpage number of 20, and the webpage data of the webpage with the webpage number exceeding 20 cannot be viewed by the user. Further, when the terminal sends the request for acquiring the web page data to the server for the first time, the initial value of the number of times of sending the request for acquiring the web page data is recorded on the terminal as a preset value, whether the number of times of sending the request for acquiring the web page data exceeds a preset value 19 is judged, and then every time the terminal sends the request for acquiring the web page data to the server, the number of times of sending the request for acquiring the web page data is reduced by 1, and the number of times of sending the request for acquiring the web page data is recorded, when the number of times of obtaining the request for acquiring the web page data exceeds the preset value 19, the terminal stops sending the request for acquiring the web page data to the server next time, and then the terminal stops acquiring the total data volume of the web page data and the web page data returned from the server, and then the web page data is only displayed to the web page with the web, the web page data of the web page exceeding the page number 20 cannot be viewed by the user.
In addition, the preset value of the number of times of requests for acquiring web page data is set to 20, before the terminal sends the request for acquiring web page data to the server, the initial value of the number of times of requests for acquiring web page data is recorded as 1, then the terminal sends the request for acquiring web page data to the server for the first time, whether the recorded number of times of sent requests for acquiring web page data exceeds the preset value 20 is judged, if the recorded number of times of sent requests for acquiring web page data does not exceed the preset value 20, the number of times of requests for acquiring web page data is continuously recorded before the terminal sends the next request for acquiring web page data to the server, then the terminal sends the request for acquiring web page data to the server, when the recorded number of times of sent requests for acquiring web page data exceeds the preset value 20, the terminal stops recording the number of times of requested data for acquiring web page data and stops sending the request for acquiring web, the web page data is only displayed to the web pages with the number of the web pages being 20, and the web page data of the web pages exceeding the number of the web pages being 20 cannot be viewed by the user. In addition, before the terminal sends the request for acquiring the web page data to the server, the initial value of the number of times of sending the request for acquiring the web page data is recorded on the terminal as a preset value, then the terminal sends the request for acquiring the web page data to the server, judges whether the number of times of sending the request for acquiring the web page data exceeds the preset value, when the number of times of sending the request for acquiring the web page data on the terminal next time before the terminal sends the request for acquiring the web page data to the server does not exceed the preset value, the number of times of sending the request for acquiring the web page data is reduced by 1, judges whether the number of times of sending the request for acquiring the web page data exceeds the preset value, when the number of times of sending the request for acquiring the web page data exceeds the preset value 20, the terminal stops recording the number of times of sending the request for acquiring the web page data to the server, and the web page data is only displayed to the, the web page data of the web page exceeding the page number 20 cannot be viewed by the user. It should be noted that the preset value of the number of times of requests for acquiring web page data may be set as required, for example, the preset value may be set to 22, 24, 30, and the like, and the preset value is smaller than the number of pages of the web page.
In the above embodiment, the number of times of the request for acquiring the web page data that has been sent is obtained from the terminal, and when the number of times of the request for acquiring the web page data by the terminal exceeds a preset value, the terminal stops sending the request for acquiring the web page data, and further the number of pages of the web page on the terminal is equal to the preset value of the number of times of the request for acquiring the web page data that is set on the terminal. The preset value of the times of acquiring the webpage data is set through the terminal, the maximum display number of the webpage can be realized, a user cannot view the webpage data exceeding the number of the webpage, the maximum display number of the webpage can be simply realized, and the functions are various.
In one embodiment, please refer to fig. 5, which is a flowchart illustrating a web page paging method in an embodiment, where the method is applied to a server in the web page paging application scenario in fig. 1. The server is operated with a server control program, and the web page paging method of the server is implemented by the server control program. The method specifically comprises the following steps:
s502: and receiving a request for asynchronously acquiring webpage data sent by a terminal, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage.
Specifically, asynchronous means that after the terminal sends a request for acquiring the web page data to the server, the terminal may continue to perform other work before the server returns the web page data. The server receives a request for asynchronously acquiring the webpage data sent by the terminal, wherein the request for asynchronously acquiring the webpage data carries the displayed data volume of each webpage in the terminal. It should be noted that, when asynchronously acquiring web page data, the terminal may use one thread to execute a request for acquiring web page data, and another thread to execute other work, and when the server returns web page data, the server may directly return to a designated thread to ensure that the threads can be performed orderly without confusion, for example, the server may return to the thread for acquiring the request for web page data, or return to the thread for executing other work.
S504: and returning webpage data with the data volume equal to the display data volume of each webpage to the terminal according to the request for asynchronously acquiring the data.
Specifically, after the server receives a request for asynchronously acquiring the web page data sent by the terminal, the server reads the display data volume of each web page carried in the request for asynchronously acquiring the web page data, the server queries corresponding web page data according to the request for the web page data, and reads the web page data in sequence according to the display data volume of each web page carried in the request for the web page data, for example, the web page data with the data volume equal to the display data volume of each web page may be read in sequence of the arrangement of the web page data in the server to return to the terminal, or the web page data stored in the server may be sorted according to a keyword in the request for the web page data, and then the web page data with the data volume equal to the display data volume of each web page is acquired to return to the terminal. And the data volume of the webpage data is equal to the display data volume of each webpage.
S506: and calling the webpage data volume acquisition function in the terminal.
Specifically, the web page data amount obtaining function refers to a function that can be called by the server and is used for obtaining the web page data amount, and the web page data amount obtaining function is stored in the terminal. After the server sends an instruction for calling the webpage data volume obtaining function to the terminal, the terminal waits for the server to call the webpage data volume obtaining function, and then the server calls the webpage data volume obtaining function arranged in the terminal. The server can call the webpage data volume obtaining function in the thread designated by the terminal, and other threads in the terminal perform other work, so that the threads can work orderly without confusion.
S508: and acquiring the total data volume of the webpage data through the webpage data volume acquisition function.
Specifically, after the server calls a web page data amount obtaining function set in the terminal, the server obtains the total data amount of the data on the web page to be displayed by the terminal by setting the web page data amount obtaining function.
For example, when a user wants to obtain data related to "pan treasure", the request for obtaining the web page data related to "pan treasure" is sent to the server through the terminal, the server can query all web page data related to "pan treasure" according to the request, and the total amount of the web page data related to "pan treasure" is the total data amount of the web page data here.
S510: and sending the total data volume of the webpage data to the terminal.
Specifically, after the server calls a webpage data amount obtaining function arranged in the terminal, the server obtains the total data amount of the webpage data through the webpage data amount obtaining function, and then the server sends the total data amount of the webpage data to the terminal.
In the embodiment, the server receives a request for asynchronously acquiring the webpage data sent by the terminal, the request for asynchronously acquiring the webpage data carries the display data volume of each webpage, then the server returns the webpage data with the data volume equal to the display data volume of each webpage to the terminal according to the request for asynchronously acquiring the webpage data, the server sends a command for reading the webpage data volume acquiring function to the terminal, the server calls the webpage data volume acquiring function in the terminal, the total data volume of the webpage data is acquired through the webpage data volume server acquiring function and is sent to the terminal, and the server and the terminal are adopted for interaction coordination, so that the data transmission real-time performance is good, the interaction is simple, and the applicability of the webpage paging method is enhanced.
In one embodiment, in step S508 of the embodiment shown in fig. 5, that is, the step of acquiring the total data volume of the web page data by the web page data volume acquiring function may further include: and when the webpage data contain the total data volume of the webpage data, reading the total data volume of the webpage data.
Specifically, when the server calls a webpage data amount obtaining function set in the terminal, the total data amount of the webpage data located in the server is read through the webpage data amount obtaining function, and if the value of the total data amount of the webpage data is directly set in the server, the server directly reads the value of the total data amount of the webpage data, and then sends the total data amount of the webpage data to the terminal. For example, when a user wants to acquire data related to "pan treasure", a request for acquiring web page data related to "pan treasure" is transmitted to the server through the terminal, the server can inquire all web page data related to "pan treasure" according to the request, if a value related to a total data amount of the web page data related to "pan treasure" is directly set in the server, the server directly reads the value of the total data amount of the web page data related to "pan treasure", and then transmits the total data amount of the web page data related to "pan treasure" to the terminal.
In the above embodiment, the server may directly read the value of the total data volume of the web page data, and then send the total data volume of the web page data to the terminal, the operation for obtaining the total data volume is simple, the complex code operation is not required, and the obtained total data volume of the web page is accurate.
In one embodiment, please refer to fig. 6, which provides a flowchart of step S508 in the embodiment shown in fig. 5, in which step S508, that is, the step of obtaining the total data volume of the web page data through the web page data volume obtaining function, may further include:
s602: and when the webpage data does not contain the total data volume of the webpage data and the type of the webpage data is a list, calculating the length of the list.
Specifically, when the server calls a webpage data amount acquisition function arranged in the terminal, the total data amount of the webpage data located in the server is read through the webpage data amount acquisition function, and if the server does not contain a value of the total data amount of the directly arranged webpage data and the type of the webpage data read by the server is a data list, the server calculates the length of the list according to the webpage data of the list type.
S604: and calculating the total data volume of the webpage data according to the length of the list.
Specifically, the total data size of the web page data on the server may be obtained according to the calculated length of the list, for example, when the length of the list is calculated, the number of the data included in the list may be calculated, and according to the number of the data included in the list, the total data size of the web page data may be obtained. The total data amount of the web page data may be calculated by further calculating the number of lines of data, the number of data, and the like included in the list, based on the calculated length of the list.
In the above embodiment, when the web page data does not include the total data volume of the web page data and the type of the web page data is a list, the server may directly read the web page data of the list type and calculate the length of the list, and then the server calculates the total data volume of the web page data according to the length of the list of the web page data, and the server may directly calculate the total data volume of the web page data according to the list of the web page data, which is not limited by the data format, and the total data volume of the web page data is obtained simply and easily, and has strong applicability.
In one embodiment, referring to FIG. 7, a timing diagram of a method for paging a web page is provided. When a user requests to view a first page of a webpage and a terminal adopts an asynchronous loading mode, sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage, the server returns the webpage data to the terminal after receiving the request for asynchronously acquiring the webpage data sent by the terminal, the terminal displays the webpage data of the first page to the user, the terminal displays the webpage data after receiving the webpage data returned by the server, the terminal waits for the server to call a webpage data volume acquisition function, the server obtains the total data volume of data stored in the server through the webpage data volume acquisition function after calling the webpage data volume acquisition function, and the server directly reads the total data volume value of the webpage data when the total data volume value of the webpage data is directly set in the server, and then the total data volume of the webpage data is sent to a terminal, if the server does not contain the value of the total data volume of the directly set webpage data and the type of the webpage data read by the server is a data list, the server calculates the length of the list according to the webpage data of the list type, thereby obtaining the total data volume of the webpage data on the server, the terminal receives the total data volume of the webpage data returned by the server, the terminal calculates the page split according to the display data volume of each page of the webpage and the total data volume of the webpage data, displays the page split to a user, judges the number of times of asynchronously obtaining the webpage data requests sent by the terminal to the server, records the number of times of asynchronously obtaining the webpage data requests, when the number of times of sending the asynchronously obtaining the webpage data requests does not exceed a preset value, the user requests to view a second page of the webpage, the terminal continues to send a request for asynchronously acquiring the webpage data to the server, records the number of times of the request for asynchronously acquiring the webpage data, acquires the data of the second webpage from the server and displays the data to the user, the number of pages is displayed to the user until the number of times of sending the request for asynchronously acquiring the webpage data exceeds a preset value, the terminal stops sending the request for asynchronously acquiring the webpage data to the server, and the user can only check a certain amount of webpages.
In the above embodiment, the terminal communicates with the server in real time, the terminal acquires the display data amount of each page of web page and then acquires a data loading mode, when the terminal is in an asynchronous loading mode and a user requests to view a first page of web page, the terminal sends a request for asynchronously acquiring web page data carrying the display data amount of each page of web page to the server, receives and displays web page data returned by the server and having a data amount equal to the display data amount of each page of web page, waits for the server to call a web page data amount acquisition function according to an instruction of the received server to read the web page data amount acquisition function, receives a total data amount of the web page data returned by the server according to the web page data amount acquisition function, calculates and displays a sub page number of the web page according to the display data amount of each page of web page and the total data amount of the web page data, and further determines whether the number of times of the request for, and if the number of times of sending the request for asynchronously acquiring the webpage data exceeds the preset value, the terminal stops sending the request for asynchronously acquiring the webpage data to the server.
In one embodiment, referring to fig. 8, a schematic structural diagram of a web page paging device is provided, in which the web page paging device 800 includes:
the obtaining module 810 is configured to obtain a display data amount of each page of the web page.
The asynchronous data loading module 820 is configured to send a request for asynchronously acquiring webpage data to the server, where the request for asynchronously acquiring webpage data carries a display data amount of each webpage.
The first receiving module 830 is configured to receive and display webpage data that is returned by the server and has a data volume equal to the display data volume of each webpage.
And a waiting module 840, configured to wait for the server to call the webpage data amount obtaining function.
The second receiving module 850 is configured to receive a total data volume of the web page data returned by the server according to the web page data volume obtaining function.
The first calculating module 860 is configured to calculate and display the page split number according to the display data amount of each page of the web page and the total data amount of the web page data.
In one embodiment, the asynchronous data loading module is further configured to send a request for asynchronously obtaining web page data to the server when an asynchronous loading mode is adopted, and the web page paging apparatus 800 may further include:
and the synchronous data loading module is used for sending a request for synchronously acquiring the webpage data to the server when the data loading mode is the synchronous loading mode, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage.
And the third receiving module is used for receiving webpage data which are synchronously returned by the server and have the data volume equal to the display data volume of each webpage and the total data volume of the webpage data.
And the display module is used for displaying the webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage.
And the second calculation module is used for calculating and displaying the page split of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
In one embodiment, the web page paging apparatus 800 may further include:
and the threshold value acquisition module is used for acquiring the number of times of the sent requests for acquiring the webpage data.
And the control module is used for stopping sending the request for acquiring the webpage data when the frequency of the request for acquiring the webpage data exceeds a preset value.
In one embodiment, referring to fig. 9, a schematic structural diagram of another web page paging device is provided, and the web page paging device 900 includes:
the data request receiving module 910 receives a request for asynchronously acquiring webpage data sent by a terminal, where the request for asynchronously acquiring webpage data carries a display data amount of each webpage.
The data returning module 920 returns the webpage data with the data volume equal to the display data volume of each webpage to the terminal according to the asynchronous data obtaining request.
A function receiving module 930, which calls the web page data volume obtaining function in the terminal; .
The data obtaining module 940 obtains the total data volume of the web page data through the web page data volume obtaining function.
The data transmission module 950 transmits the total data volume of the web page data to the terminal.
In one embodiment, the data obtaining module 940 may further include:
and the total data volume reading module is used for reading the total data volume of the webpage data when the webpage data contains the total data volume of the webpage data.
In one embodiment, the obtaining module 950 may further include:
a list length calculation module: and when the webpage data does not contain the total data volume of the webpage data and the type of the webpage data is a list, calculating the length of the list.
A total data amount calculation module: and calculating the total data volume of the webpage data according to the length of the list.
For the above specific limitations on the web page paging device, reference may be made to the above limitations on the web page paging method, which is not described herein again.
In one embodiment, referring to fig. 10, a schematic structural diagram of a computer device for executing the paging method is provided, where the computer device is a computer device of a terminal, and includes a memory, a processor, an operating system, a database, and a computer program stored in the memory and executable on the processor, where the memory may include an internal memory, a display screen, and an input device, and the processor executes the program to implement the following steps: and acquiring the display data volume of each webpage. And sending a request for asynchronously acquiring webpage data to the server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage. And receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage. And waiting for the server to call a webpage data volume acquisition function. And receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function. And calculating and displaying the page number of the webpage according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, the processor executes the program to further implement the following steps: when the asynchronous loading mode is adopted, the step of sending a request for asynchronously acquiring webpage data to the server is executed. When a synchronous loading mode is adopted, a request for synchronously acquiring webpage data is sent to the server, and the request for synchronously acquiring the webpage data carries the display data volume of each webpage. Receiving webpage data synchronously returned by the server, the data volume and the total data volume of the webpage data. And calculating and displaying the page split number of the webpage according to the display data volume of each webpage and the total data volume of the webpage data of the webpage, wherein the data volume of the webpage is equal to the display data volume of each webpage and is returned by the display server.
In one embodiment, the processor executes the program to further implement the following steps: and acquiring the number of times of the transmitted request for acquiring the webpage data. And when the frequency of the requests for acquiring the webpage data exceeds a preset value, stopping sending the requests for acquiring the webpage data.
For the above specific limitations of the computer device, reference may be made to the above webpage paging method, which is not described herein again.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of: and acquiring the display data volume of each webpage. And sending a request for asynchronously acquiring webpage data to the server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage. And receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage. And waiting for the server to call a webpage data volume acquisition function. And receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function. And calculating and displaying the page number of the webpage according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, the program when executed by the processor further performs the steps of: when the asynchronous loading mode is adopted, the step of sending a request for asynchronously acquiring webpage data to the server is executed. When a synchronous loading mode is adopted, a request for synchronously acquiring webpage data is sent to the server, and the request for synchronously acquiring the webpage data carries the display data volume of each webpage. Receiving webpage data synchronously returned by the server, the data volume and the total data volume of the webpage data. And displaying the webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage. And calculating and displaying the page number of the webpage according to the display data volume of each webpage and the total data volume of the webpage data.
In one embodiment, the program when executed by the processor further performs the steps of: and acquiring the number of times of the transmitted request for acquiring the webpage data. And when the frequency of the requests for acquiring the webpage data exceeds a preset value, stopping sending the requests for acquiring the webpage data.
For the above specific limitations of the computer-readable storage medium, reference may be made to the above webpage paging method, which is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for paging web pages, the method comprising:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage; receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage, wherein the webpage data returned by the server are acquired in a manner that the server reads the webpage data with the data volume equal to the display data volume of each webpage according to the sequence of the arrangement of the webpage data in the server;
waiting for the server to call a webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
2. The method of claim 1, further comprising:
when an asynchronous loading mode is adopted, executing the step of sending a request for asynchronously acquiring webpage data to a server;
when a synchronous loading mode is adopted, sending a request for synchronously acquiring webpage data to a server, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage;
receiving webpage data and total data volume of the webpage data, which are synchronously returned by a server and have the data volume equal to the display data volume of each webpage;
displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring the number of times of the transmitted request for acquiring the webpage data;
and when the frequency of the requests for acquiring the webpage data exceeds a preset value, stopping sending the requests for acquiring the webpage data.
4. A method for paging web pages, the method comprising:
receiving a request for asynchronously acquiring webpage data sent by a terminal, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage; the request for asynchronously acquiring the webpage data is sent by the terminal when acquiring the sent request for acquiring the webpage data, the number of times of judging that the number of times of acquiring the webpage data does not exceed a preset value, and when the terminal judges that the number of times of judging that the request for acquiring the webpage data exceeds the preset value, the request for asynchronously acquiring the webpage data cannot be sent to the server, so that a user cannot view the webpage data of which the number of pages exceeds the preset value;
according to the request for asynchronously acquiring the data, returning webpage data with the data volume equal to the display data volume of each webpage to the terminal;
calling the webpage data volume obtaining function in the terminal;
acquiring the total data volume of the webpage data through the webpage data volume acquisition function;
and sending the total data volume of the webpage data to the terminal.
5. The method according to claim 4, wherein the step of obtaining the total data volume of the web page data by the web page data volume obtaining function includes:
and when the webpage data contain the total data volume of the webpage data, reading the total data volume of the webpage data.
6. The method according to claim 4, wherein the step of obtaining the total data volume of the web page data by the web page data volume obtaining function includes:
when the webpage data do not contain the total data volume of the webpage data and the type of the webpage data is a list, calculating the length of the list;
and calculating the total data volume of the webpage data according to the length of the list.
7. A web page paging apparatus, the apparatus comprising:
the acquisition module is used for acquiring the display data volume of each page of webpage;
the asynchronous data loading module is used for sending a request for asynchronously acquiring webpage data to the server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage;
the first receiving module is used for receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage, and the webpage data returned by the server are acquired in a mode that the server reads the webpage data of which the data volume is equal to the display data volume of each webpage according to the sequence of the arrangement of the webpage data in the server;
the waiting module is used for waiting for the server to call a webpage data volume acquisition function;
the second receiving module is used for receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and the first calculation module is used for calculating and displaying the page split of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
8. The apparatus of claim 7, wherein the asynchronous data loading module is further configured to send a request for asynchronously obtaining web page data to the server when an asynchronous loading mode is adopted;
the device further comprises:
the synchronous data loading module is used for sending a request for synchronously acquiring webpage data to the server when the data loading mode is a synchronous loading mode, wherein the request for synchronously acquiring the webpage data carries the display data volume of each webpage;
the third receiving module is used for receiving webpage data which are synchronously returned by the server and have the data volume equal to the display data volume of each webpage and the total data volume of the webpage data;
the display module is used for displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage;
and the second calculation module is used for calculating and displaying the page split of the webpage according to the display data volume of each page of the webpage and the total data volume of the webpage data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage; receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage, wherein the webpage data returned by the server are acquired in a manner that the server reads the webpage data with the data volume equal to the display data volume of each webpage according to the sequence of the arrangement of the webpage data in the server;
receiving an instruction of calling a webpage data volume acquisition function by the server;
waiting for the server to call the webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function;
and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
10. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
acquiring the display data volume of each webpage;
sending a request for asynchronously acquiring webpage data to a server, wherein the request for asynchronously acquiring the webpage data carries the display data volume of each webpage; receiving and displaying webpage data which are returned by the server and have the data volume equal to the display data volume of each webpage, wherein the webpage data returned by the server are acquired in a manner that the server reads the webpage data with the data volume equal to the display data volume of each webpage according to the sequence of the arrangement of the webpage data in the server;
receiving an instruction of calling a webpage data volume acquisition function by the server;
waiting for the server to call the webpage data volume acquisition function;
receiving the total data volume of the webpage data returned by the server according to the webpage data volume obtaining function; and calculating and displaying page splitting numbers of the webpages according to the display data volume of each webpage and the total data volume of the webpage data.
CN201710386976.0A 2017-05-26 2017-05-26 Webpage paging method and device, computer equipment and computer readable storage medium Expired - Fee Related CN107329976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710386976.0A CN107329976B (en) 2017-05-26 2017-05-26 Webpage paging method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710386976.0A CN107329976B (en) 2017-05-26 2017-05-26 Webpage paging method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107329976A CN107329976A (en) 2017-11-07
CN107329976B true CN107329976B (en) 2020-07-14

Family

ID=60192908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710386976.0A Expired - Fee Related CN107329976B (en) 2017-05-26 2017-05-26 Webpage paging method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107329976B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442406B (en) * 2018-05-02 2022-08-12 北京京东乾石科技有限公司 Paging control data processing method, paging control and electronic equipment
CN110618972A (en) * 2019-08-26 2019-12-27 达疆网络科技(上海)有限公司 Method for improving deep paging by using self-increasing Id
CN110929131A (en) * 2019-10-12 2020-03-27 中国平安财产保险股份有限公司 Data export method, device, equipment and storage medium
CN112287264B (en) * 2020-11-19 2022-08-12 迈普通信技术股份有限公司 Webpage layout method and device, electronic equipment and storage medium
CN112965756B (en) * 2021-01-21 2023-09-26 北京达佳互联信息技术有限公司 Page resource loading amount monitoring method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069043A (en) * 2015-07-23 2015-11-18 上海斐讯数据通信技术有限公司 Paging reading method and system for web data information
CN105389386A (en) * 2015-12-10 2016-03-09 无锡天脉聚源传媒科技有限公司 Search result based pagination processing method and apparatus
CN105740419A (en) * 2016-01-29 2016-07-06 广州酷狗计算机科技有限公司 Method and apparatus for acquiring dynamically loaded content in webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069043A (en) * 2015-07-23 2015-11-18 上海斐讯数据通信技术有限公司 Paging reading method and system for web data information
CN105389386A (en) * 2015-12-10 2016-03-09 无锡天脉聚源传媒科技有限公司 Search result based pagination processing method and apparatus
CN105740419A (en) * 2016-01-29 2016-07-06 广州酷狗计算机科技有限公司 Method and apparatus for acquiring dynamically loaded content in webpage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
异步传输技术高效分页在WebService中的应用研究;王鹏等;《长春理工大学学报》;20090915;第32卷(第3期);第466-471页 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107329976B (en) Webpage paging method and device, computer equipment and computer readable storage medium
EP3316586A1 (en) Information pushing method and device
US20170163753A1 (en) Method and apparatus for controlling play device to play video
CN105867714B (en) Application program method for down loading, apparatus and system
CN110096660B (en) Method and device for loading page pictures and electronic equipment
JP2013122768A (en) Apparatus and methods for retrieving/downloading content on communication device
CN102542009B (en) Data query method and device
CN107463563B (en) Information service processing method and device of browser
US10755079B2 (en) Method and apparatus for acquiring facial information
CN110457097B (en) Page response control method and device, computer equipment and storage medium
CN112286887A (en) File sharing method and device and electronic equipment
WO2019041500A1 (en) Pagination realization method and device, computer equipment and storage medium
CN108334516B (en) Information pushing method and device
CN110928767A (en) Webpage analysis method, device, equipment and storage medium
CN105630525A (en) Page synchronization method and apparatus
CN112256363A (en) Application page rendering method and device and electronic equipment
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
CN112910741B (en) Interface testing method and device, computer equipment and storage medium
CN112148395A (en) Page display method, device, equipment and storage medium
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
US20200007957A1 (en) Wearable device, information processing method, apparatus and system
CN113626113B (en) Page rendering method and device
CN105589870B (en) Method and system for filtering webpage advertisements
US20180198915A1 (en) Interactive processing method and device
CN109299223B (en) Method and device for inquiring instruction

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200714

Termination date: 20210526

CF01 Termination of patent right due to non-payment of annual fee