CN110866202A - Front-end paging method and device and readable storage medium - Google Patents

Front-end paging method and device and readable storage medium Download PDF

Info

Publication number
CN110866202A
CN110866202A CN201911124701.5A CN201911124701A CN110866202A CN 110866202 A CN110866202 A CN 110866202A CN 201911124701 A CN201911124701 A CN 201911124701A CN 110866202 A CN110866202 A CN 110866202A
Authority
CN
China
Prior art keywords
page
access request
page number
data
number corresponding
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.)
Pending
Application number
CN201911124701.5A
Other languages
Chinese (zh)
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.)
Chengdu Zhidaochuangyu Information Technology Co Ltd
Original Assignee
Chengdu Zhidaochuangyu Information 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 Chengdu Zhidaochuangyu Information Technology Co Ltd filed Critical Chengdu Zhidaochuangyu Information Technology Co Ltd
Priority to CN201911124701.5A priority Critical patent/CN110866202A/en
Publication of CN110866202A publication Critical patent/CN110866202A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation

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)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a front-end paging method, a front-end paging device and a readable storage medium, wherein the method comprises the following steps: receiving a page access request initiated on a current page; acquiring a page number corresponding to the page access request; and determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and displaying the page number corresponding to the page access request and the display data. The method improves the processing efficiency of front-end paging.

Description

Front-end paging method and device and readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for front-end paging, and a readable storage medium.
Background
The existing front-end paging method generally requests data from the back-end after the front-end receives the request, and then performs encapsulation of paging plug-in and display of the data based on the requested data to implement front-end paging. In the process, each time a request is received, data needs to be requested to the back end, which is time-consuming and inefficient.
Therefore, the front-end paging method in the prior art needs the front end to request the back end for multiple times, the transmission time of the network layer is long, and the processing efficiency is low.
Disclosure of Invention
An embodiment of the present invention provides a method and an apparatus for front-end paging, and a readable storage medium, so as to improve the processing efficiency of front-end paging.
In a first aspect, an embodiment of the present application provides a method for front-end paging, including: receiving a page access request initiated on a current page; acquiring a page number corresponding to the page access request; and determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and displaying the page number corresponding to the page access request and the display data.
In the embodiment of the application, when a page access request initiated on a current page is received, a page number corresponding to the page access request is acquired, corresponding display data is determined according to the page number and pre-stored page data acquired from a back end, and then the display is performed. Compared with the prior art, after the corresponding page number is acquired, all data acquired from the back end are stored in advance, so that the corresponding display data can be directly determined according to the corresponding page number and all data, the data are prevented from being requested from the back end for many times, and finally, the display is carried out. Therefore, the method improves the processing efficiency of the front-end paging.
As a possible implementation manner, acquiring a page number corresponding to the page access request includes: if the page access request is to enter a target page from the current page, deleting a stored page number, and acquiring a default page number, wherein the default page number is a page number corresponding to the page access request; and if the page access request is to refresh the current page, reading the stored page number, wherein the stored page number is the page number corresponding to the page access request.
Corresponding page numbers are obtained according to different page access requests, the page access requests can be responded quickly and accurately, and the processing efficiency of front-end paging is improved.
As a possible implementation, reading the stored page number includes: the page number stored in sessionStorage or localStorage is read.
In the embodiment of the application, the page number can be stored through sessionStorage or localStorage, and when the page is opened, the sessionStorage or localStorage can store data in the current session, so that the page number is stored through sessionStorage or localStorage, when the page is refreshed, the page number is obtained from the page and displayed, and the displayed page number is still kept as the page number before refreshing.
As a possible implementation, the method further includes: and when a page number jump request initiated on the current page is received, updating the page number stored in the sessionStorage or the localStorage according to the page number jump request.
In the embodiment of the application, when a page jump request exists, page jump is realized by updating the page number stored in sessionStorage or localStorage.
As a possible implementation manner, determining display data corresponding to a page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request includes: and determining display data corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data.
In the embodiment of the application, the corresponding display data can be determined according to the corresponding page number and the data quantity of each page of the page data, so that the processing efficiency of front-end paging is improved.
As a possible implementation manner, determining, according to the page number corresponding to the page access request and the data quantity of each page of the total data, display data corresponding to the page number corresponding to the page access request includes: determining a data sequence corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data; determining the display data from the data sequence.
In the embodiment of the application, the corresponding display data can be determined by determining the data sequence corresponding to the page access request, so that the processing efficiency of front-end paging is improved.
As a possible implementation manner, displaying the page number and the display data corresponding to the page access request includes: determining the total page number of all the data according to the total data amount of all the data and the data quantity of each page; rendering a paging module according to a page number corresponding to the page access request and the total page number; and displaying the page number corresponding to the page access request and the display data through the paging module.
In the embodiment of the application, the total page number of all data is determined, then the paging module can be rendered according to the corresponding page number and the total page number, and then the corresponding page number and the display data are displayed through the paging module, so that the processing efficiency of front-end paging is improved.
In a second aspect, an embodiment of the present application provides a front-end paging apparatus, where the apparatus includes a functional module configured to implement the method described in the first aspect and any one of possible implementation manners of the first aspect.
In a third aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a computer, the computer program performs the method according to the first aspect and any one of the possible implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flowchart of a method for front-end paging according to an embodiment of the present disclosure;
fig. 2 is a block diagram illustrating functional modules of a front-end paging device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The technical scheme provided by the embodiment of the application is applied to front-end paging, wherein the front end is a foreground part of a website, runs on browsers such as a Personal Computer (PC) end and a mobile end and displays a webpage browsed by a user. When the data is displayed at the front end, the displayed data is displayed in a page mode for the convenience of viewing by a user, and therefore, the front-end page is an important part of the display of the front-end data. Therefore, the technical scheme provided by the embodiment of the application can be applied to a PC end, a mobile end or a browser.
Based on the application scenario, fig. 1 is a flowchart of a front-end paging method provided in an embodiment of the present application, where the method includes:
step 101: a page access request initiated on a current page is received.
Step 102: and acquiring a page number corresponding to the page access request.
Step 103: and determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and displaying the page number corresponding to the page access request and the display data.
Compared with the prior art, after the corresponding page number is acquired, all data acquired from the back end are stored in advance, so that the corresponding display data can be directly determined according to the corresponding page number and all data, the data are prevented from being requested from the back end for many times, and finally, the display is carried out. Therefore, the method improves the processing efficiency of the front-end paging.
The flow of steps 101 to 103 will be described.
In step 101, a page access request initiated on a current page is received, and for the current page, it is understood that the page is currently accessed on a website by a user, and the page may be a page displayed after entering through a certain web page link. Based on the current page, there are various page access requests initiated on the current page, such as a page access request for entering a new page after clicking related link text or other link information on the current page. As another example, the data displayed on the current page may also be displayed in pages, and therefore, may also be an access request for performing page jump. For another example, the user may perform a refresh operation due to a network, and the access request at this time is an access request for refreshing the current page.
Further, due to various situations of the page access request, different processing modes need to be adopted. In step 102, as one possible implementation: if the page access request is to enter a target page from a current page, deleting the stored page number, and acquiring a default page number, wherein the default page number is a page number corresponding to the page access request; and if the page access request is to refresh the current page, reading the stored page number, wherein the stored page number is the page number corresponding to the page access request.
If the page access request enters the target page from the current page, the access page corresponding to the page access request is a new page, namely the target page is a new page different from the current page. Then, the page to be displayed is the target page, and the target page needs to be paged and displayed. The target page is a new page to be displayed, and the original page number is not used, so that the stored page number (namely the original page number) can be deleted, and a default page number is obtained, wherein the default page number is the page number corresponding to the page access request.
Further, if the page access request is to refresh the current page, representing that the access page corresponding to the page access request is still the current page, the page number corresponding to the page access request should be the same as the page number of the current page, so that the stored page number can be read, where the stored page number is the page number corresponding to the page access request.
For the stored page number, the representation is the page number corresponding to the current page, and the page number can be stored in sessionStorage or localStorage.
For sessionStorage and localStorage, both belong to Web Storage, which is a network Storage mechanism. Web Storage is divided into two categories: sessionStorage: the data is saved in the session object. Session refers to the time from when a user enters a website to when the browser is closed when the user browses the website, that is, the time spent by the user to browse the website. The session object may be used to save any data that is required to be saved during this time. localStorage: the data is stored in the local hardware device (usually referred to as a hard disk, or other hardware devices) of the client, even if the browser is closed, the data still exists, the data can still be used when the browser is opened next time to access the website, and currently, if the stored data needs to be cleared, the data can also be cleared. The difference between the two is that sessionStorage is a temporary storage and localStorage is a permanent storage. In the embodiment of the present application, temporary storage or permanent storage may be adopted, because when it is determined that a new page is entered, the stored page number is deleted, and then the page number corresponding to the entered new page is not affected.
Therefore, when the page access request enters a new target page, in order to avoid adopting the previous page numbers stored in the sessionStorage and localStorage, the stored page number may be deleted, and the page number corresponding to the page access request may be determined as a default page number, which may be 1.
In addition, in the implementation manner of step 102, when the page access request is to refresh the current page, it may be determined that the page numbers stored in the sessionStorage and localStorage are the page numbers corresponding to the page access request, and specifically, the page numbers may be implemented by reading the page number values stored in the sessionStorage and localStorage.
In the embodiment of the present application, the page number may be stored by sessionStorage or localStorage, and the storage form may be a form of a key-value pair. sessionStorage or localStorage can store data in the current session when a page is open, and therefore, sessionStorage or localStorage is used to store page numbers, and when the page is refreshed, the page numbers are obtained from the page and displayed, so that the displayed page numbers are still maintained as the page numbers before refreshing.
For example, assume that the page number displayed by the current page is 2, the default page number is 1, and the page number displayed by the current page is already stored in sessionStorage or localStorage. If the page access request is to enter a new target page from the current page, it indicates that the currently displayed page is not applicable, and the new target page also needs to be paged and displayed, so the default page number 1 can be used as the page number corresponding to the page access request. If the page access request is to refresh the current page, it indicates that the currently displayed page number should be maintained and the corresponding data is displayed, so that the stored page number can be directly read from the sessionStorage or localStorage, and the page number corresponding to the page access request is 2 at this time.
Further, after the page number corresponding to the page access request is obtained in step 102, front-end page display may be performed, that is, step 103 is executed: and determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data acquired from the back end, and displaying the page number and the display data corresponding to the page access request.
The display data corresponding to the page number corresponding to the page access request may be display data corresponding to the page number corresponding to the page access request in all data acquired from the back end in advance. All data acquired from the back end in advance can be understood as all data related to the current page, the data includes all data of the current page and all data of the target page, and the data can be acquired before entering the current page or after entering the current page. For example, assuming that the current page is the display page corresponding to link 1, and link 2 and link 3 are also included in the display page corresponding to link 1, link 2 and link 3 may be understood as the link related to link 1, and correspondingly, the display pages corresponding to link 2 and link 3 are related to the display page corresponding to link 1, and the display data corresponding to the display pages are also related. Furthermore, when data is acquired from the back end, the related data can be acquired to the front end at one time and then displayed according to requirements, so that data is prevented from being requested from the back end for many times. The back end can be understood as a server end, and realizes business logic, database table structure design, server configuration, load balancing, data storage and the like, wherein the front end is used for displaying, and the back end is used for supporting the display of the front end. Assuming that the page access request is an access target page, all data corresponding to the page access request are all data of the target page; assuming that the page access request is to refresh the current page, all data corresponding to the page access request is all data of the current page.
It can be understood that, although all the data corresponding to the page access request are stored on the front end, the data are displayed together, which is inconvenient for the user to view, and therefore, the display data corresponding to the page number corresponding to the page access request needs to be determined from all the data. For example, assuming that all data have 10 pages, it is determined that the page number corresponding to the page access request is page 1, and then the data of page 1 is the display data corresponding to the page number corresponding to the page access request.
In addition, after all data are acquired from the back end, default and total hiding can be controlled by a CSS (Cascading Style Sheet), the data are not displayed on a page at first, and then the content needing to be displayed is judged and displayed through the page number. The CSS is also commonly referred to as a Style Sheet (Style Sheet), and is used to Style web pages. For example, if the link word is blue when it is not clicked, it is a style that the word becomes red and underlined when the mouse is moved over. By setting up a style sheet, display attributes of respective marks in HTML (Hyper Text Markup Language) can be uniformly controlled. Cascading style sheets may enable a user to more effectively control the appearance of a web page. Using cascading style sheets, the ability to precisely specify the position, appearance, and creation of special effects of web page elements may be extended. Therefore, all the acquired data can be controlled not to be displayed by the CSS.
In step 103, display data corresponding to a page number corresponding to the page access request is determined, and as an alternative implementation, the process may include: and determining display data corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data. Further, the data sequence corresponding to the page number corresponding to the page access request may be determined according to the page number corresponding to the page access request and the data quantity of each page of all the data, and then the display data may be determined according to the corresponding data sequence. It will be appreciated that the data sequence may represent the order of the data, and when the amount of data per page is known, the data sequence per page is also known, and the data to be displayed on each page can be accurately located according to the data sequence per page. Such as: if the corresponding page number is page 2 and each page has 10 pieces of data, adding a className to the contents with the number sequence of 10 to 20, wherein the className contains display: the block is made to be displayed by default, and the first ten pieces of data are presented.
The process of determining the display data is equivalent to judging the data to be presented on the corresponding page, and the process can be realized by js (JavaScript), which is a prototype inherited case-distinguished client scripting language of an object-oriented dynamic type developed by LiveScript of Netscape.
Further, after the display data is determined, the corresponding page number and the display data may be displayed together. As an optional implementation manner, displaying the page number and the display data corresponding to the page access request may include: determining the total page number of all data according to the total data amount of all data and the data quantity of each page; rendering a paging module according to a page number corresponding to the page access request and a total page number; and displaying the page number and the display data corresponding to the page access request through the paging module.
In such an embodiment, in addition to displaying data, a paging module may need to be rendered in order to display a page number. When rendering a paging module, the total page number is needed in addition to the corresponding page number (i.e., the current page number). The total page number can be calculated by the total amount of all data and the amount of data per page, for example: assuming that there are 100 pieces of data and 5 pieces of data per page, the total page number is 100/5-20 pages. After the total page number is determined, the page number corresponding to the page access request and the total page number are transmitted into the packaged paging plug-in, and then the paging module can be rendered. For paging plug-ins, the package can be made through JS.
In the embodiment of the application, the total page number of the page data is determined, then the paging module can be rendered according to the corresponding page number and the total page number, and then the corresponding page number and the display data are displayed through the paging module, so that the processing efficiency of front-end paging is improved.
When displaying the page number and the display data, corresponding styles, such as a display style of the page number, a display style of the display data, and the like, may also be displayed through the CSS.
Furthermore, the page access request of the current page may be directly a page jump request, in addition to the two requests mentioned in the foregoing embodiments, in which case the method further includes: and when a page number jump request initiated on the current page is received, updating the page number stored in the sessionStorage or localStorage according to the page number jump request.
In this embodiment, for the page jump request, it may be understood that the page number corresponding to the current page is changed, and the specific change corresponds to the page jump request. For example, the page jump request may be the next page, where the page number corresponding to the current page is added with 1, that is, the page number stored in the sessionStorage or localStorage is added with 1; for example, the page jump request may also be a target page, and the page corresponding to the current page is updated to the target page, that is, the page stored in the sessionStorage or localStorage is updated to the target page.
In addition, the page code value updated in the process can be used for reading the stored page number in step 102, so that the stored page number can be updated each time the user clicks a page number jump, so that the determined corresponding page number is the real-time correct page code value.
Based on the same inventive concept, referring to fig. 2, an embodiment of the present application further provides a front-end paging device 200, including: a receiving module 201, an obtaining module 202 and a processing module 203.
A receiving module 201, configured to receive a page access request initiated on a current page. A determination module, 202, configured to: and acquiring a page number corresponding to the page access request. The processing module 203 is configured to determine display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and display the page number corresponding to the page access request and the display data.
Optionally, the obtaining module 202 is further configured to: if the page access request is to enter a target page from the current page, deleting a stored page number, and acquiring a default page number, wherein the default page number is a page number corresponding to the page access request; and if the page access request is to refresh the current page, reading the stored page number, wherein the stored page number is the page number corresponding to the page access request.
Optionally, the obtaining module 202 is further configured to: the page number stored in sessionStorage or localStorage is read.
Optionally, the processing module 203 is further configured to: and when a page number jump request initiated on the current page is received, updating the page number stored in the sessionStorage or the localStorage according to the page number jump request.
Optionally, the processing module 203 is further configured to: and determining display data corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data.
Optionally, the processing module 203 is further configured to: determining a data sequence corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data; determining the display data from the data sequence.
Optionally, the processing module 203 is further configured to: determining the total page number of all the data according to the total data amount of all the data and the data quantity of each page; rendering a paging module according to a page number corresponding to the page access request and the total page number; and displaying the page number corresponding to the page access request and the display data through the paging module.
The embodiments and specific examples of the method for front-end paging in the foregoing embodiments are also applicable to the apparatus in fig. 2, and the detailed description of the method for front-end paging in fig. 2 is clear to those skilled in the art, so that the detailed description is omitted here for brevity of the description.
Based on the same inventive concept, an embodiment of the present application further provides an apparatus, including: the memory and the processor are connected, and the method for front-end paging provided by the embodiment of the present application may be applied to the device, which may be the PC side, the mobile side, and the like mentioned in the foregoing embodiments.
The memory may store various software programs and modules, such as program instructions/modules corresponding to the method and apparatus for front-end paging provided by the embodiments of the present application. The processor executes various functional applications and data processing by executing software programs and modules stored in the memory, that is, the method for front-end paging in the embodiments of the present application is implemented.
The Memory may include, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (electrically Erasable Programmable Read-Only Memory), and the like.
The processor may be an integrated circuit chip having signal processing capabilities. Can be a general purpose Processor including a CPU (Central Processing Unit), NP (Network Processor), etc.; but may also be a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Based on the same inventive concept, an embodiment of the present application further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a computer, the method for front-end paging according to any of the above embodiments is performed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as 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 above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for front-end paging, comprising:
receiving a page access request initiated on a current page;
acquiring a page number corresponding to the page access request;
and determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and displaying the page number corresponding to the page access request and the display data.
2. The method of claim 1, wherein obtaining the page number corresponding to the page access request comprises:
if the page access request is to enter a target page from the current page, deleting a stored page number, and acquiring a default page number, wherein the default page number is a page number corresponding to the page access request;
and if the page access request is to refresh the current page, reading the stored page number, wherein the stored page number is the page number corresponding to the page access request.
3. The method of claim 2, wherein reading the stored page number comprises:
the page number stored in sessionStorage or localStorage is read.
4. The method of claim 3, further comprising:
and when a page number jump request initiated on the current page is received, updating the page number stored in the sessionStorage or the localStorage according to the page number jump request.
5. The method of claim 1, wherein determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request comprises:
and determining display data corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data.
6. The method according to claim 5, wherein determining the display data corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data amount per page of the total data comprises:
determining a data sequence corresponding to the page number corresponding to the page access request according to the page number corresponding to the page access request and the data quantity of each page of all the data;
determining the display data from the data sequence.
7. The method of claim 6, wherein displaying the page number and the display data corresponding to the page access request comprises:
determining the total page number of all the data according to the total data amount of all the data and the data quantity of each page;
rendering a paging module according to a page number corresponding to the page access request and the total page number;
and displaying the page number corresponding to the page access request and the display data through the paging module.
8. An apparatus for front-end paging, comprising:
the receiving module is used for receiving a page access request initiated on a current page;
the acquisition module is used for acquiring the page number corresponding to the page access request;
and the processing module is used for determining display data corresponding to the page number corresponding to the page access request based on the page number corresponding to the page access request and all pre-stored data corresponding to the page access request, and displaying the page number corresponding to the page access request and the display data.
9. The apparatus of claim 8, wherein the obtaining module is further configured to:
if the page access request is to enter a target page from the current page, deleting a stored page number, and acquiring a default page number, wherein the default page number is a page number corresponding to the page access request;
and if the page access request is to refresh the current page, reading the stored page number, wherein the stored page number is the page number corresponding to the page access request.
10. A readable storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-7.
CN201911124701.5A 2019-11-15 2019-11-15 Front-end paging method and device and readable storage medium Pending CN110866202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911124701.5A CN110866202A (en) 2019-11-15 2019-11-15 Front-end paging method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911124701.5A CN110866202A (en) 2019-11-15 2019-11-15 Front-end paging method and device and readable storage medium

Publications (1)

Publication Number Publication Date
CN110866202A true CN110866202A (en) 2020-03-06

Family

ID=69654113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911124701.5A Pending CN110866202A (en) 2019-11-15 2019-11-15 Front-end paging method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110866202A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580810A (en) * 2020-03-30 2020-08-25 深圳市麦谷科技有限公司 Method, device, mobile terminal and storage medium for realizing active paging
CN113986439A (en) * 2021-11-01 2022-01-28 挂号网(杭州)科技有限公司 Data display method and device
CN114625991A (en) * 2022-03-11 2022-06-14 上海弘玑信息技术有限公司 Table display method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145186A1 (en) * 2009-12-16 2011-06-16 Henrik Hempelmann Online access to database snapshots
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN105760457A (en) * 2016-02-05 2016-07-13 成都康赛信息技术有限公司 Data paging optimizing method based on MongoDB
CN106897433A (en) * 2017-02-27 2017-06-27 福建中金在线信息科技有限公司 A kind of data capture method and device
CN109032457A (en) * 2017-08-18 2018-12-18 金蝶软件(中国)有限公司 page display method, device, terminal and storage medium
CN109241494A (en) * 2018-08-07 2019-01-18 平安科技(深圳)有限公司 Page processing method, system, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145186A1 (en) * 2009-12-16 2011-06-16 Henrik Hempelmann Online access to database snapshots
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN105760457A (en) * 2016-02-05 2016-07-13 成都康赛信息技术有限公司 Data paging optimizing method based on MongoDB
CN106897433A (en) * 2017-02-27 2017-06-27 福建中金在线信息科技有限公司 A kind of data capture method and device
CN109032457A (en) * 2017-08-18 2018-12-18 金蝶软件(中国)有限公司 page display method, device, terminal and storage medium
CN109241494A (en) * 2018-08-07 2019-01-18 平安科技(深圳)有限公司 Page processing method, system, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580810A (en) * 2020-03-30 2020-08-25 深圳市麦谷科技有限公司 Method, device, mobile terminal and storage medium for realizing active paging
CN113986439A (en) * 2021-11-01 2022-01-28 挂号网(杭州)科技有限公司 Data display method and device
CN114625991A (en) * 2022-03-11 2022-06-14 上海弘玑信息技术有限公司 Table display method and electronic equipment

Similar Documents

Publication Publication Date Title
US8301645B1 (en) Aggregated web analytics request systems and methods
US10911554B2 (en) Method and system for tracking web link usage
US9411782B2 (en) Real time web development testing and reporting system
US8397212B2 (en) Module hosting and content generation platform
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
US20170004331A1 (en) Sanitization of content displayed by web-based applications
CN110866202A (en) Front-end paging method and device and readable storage medium
US9967370B2 (en) OData enabled mobile software applications
CN111984902A (en) Visual page configuration method, system, computer equipment and storage medium
CN112612982A (en) Webpage preloading method and device and computer equipment
CN108319474B (en) Page information generation method, device and equipment
CN106936727A (en) A kind of Webpage display process and device
CN111431767A (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN108664191B (en) System access method and device
US20220078161A1 (en) Method and apparatus for advertisement anti-blocking
EP1204030A1 (en) Extending hypermedia documents by adding tagged attributes
CN107391175B (en) Control data configuration method and computer readable storage medium
CN113190321A (en) Method and equipment for application program page pull-up refreshing
US20140250503A1 (en) Systems and methods for delivering platform-independent web content
CN111756744B (en) H5 user identification method, device, equipment and storage medium
US11288336B2 (en) Systems and methods for providing content items in situations involving suboptimal network conditions
US10114805B1 (en) Inline address commands for content customization
US11770437B1 (en) Techniques for integrating server-side and client-side rendered content
CN106599306A (en) Compatible display method of CSS style in network page
US8661334B1 (en) Mapping behavior to data

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200306

RJ01 Rejection of invention patent application after publication