CN111177616B - Page restoration display method and device, computer equipment and storage medium - Google Patents
Page restoration display method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111177616B CN111177616B CN201911269819.7A CN201911269819A CN111177616B CN 111177616 B CN111177616 B CN 111177616B CN 201911269819 A CN201911269819 A CN 201911269819A CN 111177616 B CN111177616 B CN 111177616B
- Authority
- CN
- China
- Prior art keywords
- page
- file
- target
- target page
- draft
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000009877 rendering Methods 0.000 claims abstract description 39
- 238000012544 monitoring process Methods 0.000 claims abstract description 26
- 238000011084 recovery Methods 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 11
- 230000009191 jumping Effects 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
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)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a page restoration display method and device, computer equipment and a storage medium. The method comprises the following steps: respectively monitoring the access operation of the page corresponding to each pre-stored access address; acquiring input information currently displayed on a target page pointed by the access operation; when the target page is exited, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction statement corresponding to the input file into the page rendering file to obtain a draft file, and storing the draft file; when the access operation of the target page is monitored again, the target page is rendered and displayed based on the draft file, the input information recorded by the input file is read according to the introduction statement, and the input information is restored and displayed on the target page. By adopting the method, the complexity of inputting data again when the page exits abnormally can be reduced.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for restoring and displaying a page, a computer device, and a storage medium.
Background
With the development of computer technology, various types of terminals are appeared, and various network platforms, such as Web pages (World Wide Web ), APPs (applications), etc., can be run on the terminals. When a user uses a certain network platform at a terminal, the user can input data on a page currently displayed by the network platform. If the network platform is abnormally quitted due to the reasons of user negligence or misoperation, system abnormality or system environment abnormality and the like in the data input process of the user, the user has to input data again, and the operation is complicated.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for page recovery display, which can reduce the complexity of re-inputting data when a page exits abnormally.
A method for restoring and displaying a page, the method comprising: respectively monitoring the access operation of the page corresponding to each pre-stored access address; acquiring input information currently displayed on a target page pointed by the access operation; when the target page exits, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction sentence corresponding to the input file into the page rendering file to obtain a draft file, and storing the draft file; when the access operation of the target page is monitored again, the target page is rendered and displayed based on the draft file, the input information recorded by the input file is read according to the introduction statement, and the input information is restored and displayed on the target page.
In one embodiment, the method further comprises: when the access operation is a page refreshing operation on a target page, acquiring a page dragging distance corresponding to the page refreshing operation; determining a dragging distance interval to which the page dragging distance belongs; inquiring the page content category having an association relation with the dragging distance interval; and acquiring and displaying the page content belonging to the page content category.
In one embodiment, the method further comprises: when page jump operation based on the target page occurs, recording a display position corresponding to page data in the target page; the rendering and displaying the target page based on the draft file comprises: and loading the draft file according to the display position to display the target page.
In one embodiment, the storing the draft file includes: determining a marking primary key of the target page; storing the draft file and the identification primary key to a local cache correspondingly according to the page recovery configuration information corresponding to the identification primary key; or encrypting the draft file according to the secret key recorded by the page recovery configuration information, and storing the identifier main key and the encrypted draft file to a server.
In one embodiment, the method further comprises: determining the access depth of the target page relative to the entry page of the platform to which the target page belongs; when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page tag of each page displayed in the process of jumping from the entry page to the target page; and when the triggering operation of the page tag occurs, directly returning to the corresponding page.
A page restoration display apparatus, the apparatus comprising: the page access monitoring module is used for respectively monitoring the access operation of the page corresponding to each pre-stored access address; the draft content storage module is used for acquiring input information currently displayed on a target page pointed by the access operation; when the target page exits, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction sentence corresponding to the input file into the page rendering file to obtain a draft file, and storing the draft file; and the page rendering recovery module is used for rendering and displaying the target page based on the draft file when monitoring the access operation to the target page again, reading the input information recorded by the input file according to the introduction statement, and recovering and displaying the input information on the target page.
In one embodiment, the apparatus further includes a page content refresh module, configured to, when the access operation is a page refresh operation on a target page, obtain a page drag distance corresponding to the page refresh operation; determining a dragging distance interval to which the page dragging distance belongs; inquiring the page content category having an association relation with the dragging distance interval; and acquiring and displaying the page content belonging to the page content category.
In one embodiment, the apparatus further includes a page jump return module, configured to determine an access depth of the target page with respect to an entry page of the platform to which the target page belongs; when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page tag of each page displayed in the process of jumping from the entry page to the target page; and when the triggering operation of the page tag occurs, directly returning to the corresponding page.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the page restoration display method provided in any one of the embodiments of the present application when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the page restoration display method provided in any one of the embodiments of the present application.
According to the page restoration display method, the page restoration display device, the computer equipment and the storage medium, the active monitoring of the access operation of the corresponding page can be realized by pre-configuring and storing the address to be accessed; when monitoring the access operation based on the target page, the page content currently displayed by the target page can be obtained; when the target page is monitored to be exited, a page rendering draft file can be generated according to the page content; when the access operation of the target page is monitored again, page rendering is carried out based on the draft file, so that the page content recovery can be realized, and the trouble that a user needs to input data again every time the user abnormally exits is avoided.
Drawings
FIG. 1 is a diagram of an application scenario of a page restoration display method in one embodiment;
FIG. 2 is a flowchart illustrating a page restore display method according to an embodiment;
FIG. 3 is a block diagram showing the construction of a page restoration display apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in 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 present application and are not intended to limit the present application.
The page restoration display method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 has a function of accessing the internet, and may be a mobile phone, a tablet computer, or a desktop computer. Different target applications are run on different terminals 102. A general data recovery application is also run on each terminal 102. The general data recovery application can run independently or be integrated in a target application in a plug-in mode. The data recovery application may be implemented based on a CS (Client-Server) architecture, and is configured to monitor a page access operation of a user based on a target application, and store monitored page content in time to back up the page content. Server 104 may be an application server that provides services for a data recovery application. The server 104 may be implemented as a stand-alone server or a server cluster of multiple servers.
In an embodiment, as shown in fig. 2, a page restoration display method is provided, which is described by taking the application of the method to the terminal 102 in fig. 1 as an example, and includes the following steps:
When the general data recovery application runs on the terminal independently, the user can configure the access address of each target application needing to be monitored in the data recovery application. The representation form of the target Application may be a Web site, APP (Application program), an applet, or the like. The target application may specifically be a social application, an online shopping application, a payment application, etc.
The access address refers to an address link between a location of a Resource available from the internet and an access method, and may be a Uniform Resource Locator (URL). The access address can be an access address of an entry page of the target application, and can also be an access address of a specific page or pages needing to be monitored in the target application. And if the access address is the access address of the entry page of the target application, the data recovery application monitors each page in the corresponding target application. It is easy to understand that if the data recovery application is integrated in the target application in a plug-in manner, the user does not need to perform configuration of the access address.
And the terminal monitors the information input operation of the user in the target system based on the data recovery application. The target application refers to an application whose access address is configured in advance in the data recovery application. And the terminal pair monitors the access operation of the user based on the target system. The access operation may be an information entry operation, a page exit operation, a page jump operation, or a page refresh operation, among others.
And step 204, acquiring the input information currently displayed on the target page pointed by the access operation.
The target page pointed by the access operation refers to a page triggered by the user to be accessed. The input information refers to content input on the target page by the user according to the content of the page displayed on the target page, and specifically may be text, picture, video or audio information, or may be a file or the like.
And step 206, when the target page exits, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction sentence corresponding to the input file in the page rendering file to obtain a draft file, and storing the draft file.
The target page exit may be actively triggered by the user, such as by clicking a page close control of the target page to exit the target page, or by clicking a page jump control of the target page to jump from the target page exit to another page. The target page exit may also be an exception due to a system failure. Such as a system crash or a terminal power down.
The page rendering file refers to page resource information required for loading the target page. The page-fumigating file includes an HTML file (referred to as an initial HTML file) and external files introduced based on the initial HTML file, such as a JS file, a CSS file, and the like. The initial page rendering file also includes the pictures or multimedia assets, etc. involved in the initial HTML file. The HTML file is a descriptive text composed of HTML commands, and the HTML commands can describe page elements such as characters, graphics, animation, sound, tables, links and the like. The JS file is used for operating page elements in the HTML file to enable the Web page to generate a dynamic effect; CSS files are used to present page elements in different styles (e.g., font size, color, etc.).
By adding the statement for introducing the input file into the HTML file, the initial page rendering file can be updated, and the page rendering draft file can be obtained. Wherein the input file may be a temporary file generated based on the input information.
And step 208, when the access operation to the target page is monitored again, rendering and displaying the target page based on the draft file, reading the input information recorded by the input file according to the introduction statement, and recovering and displaying the input information on the target page.
When the target page exits unexpectedly under the condition that the input information is not saved due to browser faults, unexpected power failure, misoperation of a user or limitation of browsing duration and the like, the user can restart the target page. And the data recovery application monitors the starting operation of each target system, loads the page rendering draft file corresponding to the target page after monitoring the restarting operation, and performs page rendering based on the page rendering draft file to realize recovery display of the input information.
According to the page restoration display method, the active monitoring of the access operation of the corresponding page can be realized by pre-configuring and storing the address to be accessed; when monitoring the access operation based on the target page, the page content currently displayed by the target page can be obtained; when the quit of the target page is monitored, a page rendering draft file can be generated according to the page content; when the access operation of the target page is monitored again, page rendering is carried out based on the draft file, so that the page content recovery can be realized, and the trouble that the user needs to input data again every time the user abnormally exits is avoided.
In one embodiment, the page restoration display method includes: when the access operation is a page refreshing operation on a target page, acquiring a page dragging distance corresponding to the page refreshing operation; determining a dragging distance interval to which a page dragging distance belongs; inquiring page content categories with association relation between the page content categories and the dragging distance interval; and acquiring and displaying the page content belonging to the page content category.
The page refresh operation is an operation capable of triggering the refresh page to restore the display content, such as a page drag operation indicating that the page slides in a specified direction. And when the terminal detects the page refreshing operation, the terminal can control the page to move towards the appointed direction. The page drag distance is the distance the page moves. The page dragging distance can be the same as the operation distance of the page dragging operation, and the operation distance of the page dragging operation can also be different. The page drag distance may specifically be a pixel distance. The dragging distance interval is a numerical value interval obtained by dividing the value range of the page dragging distance. The value range of the page dragging distance is the value range of the theoretically movable distance of the page. For example, when the page area displayed longitudinally moves as a whole, the range of the page dragging distance is from 0 to the longitudinal length of the display screen.
Specifically, the computer device may divide a value range of the page dragging distance into a plurality of dragging distance intervals in advance, so as to set different subsequent execution operations for different page dragging distances, or associate different data. It can be understood that the page dragging distance is usually unstable discrete numerical points, the number of the discrete numerical points is infinite, and the terminal cannot be set for each discrete numerical point respectively, so that the infinite discrete points in the numerical interval are uniformly set through the numerical interval. The interval lengths of different dragging distance intervals can be the same or different. Therefore, after the page dragging distance is obtained, the terminal can check which dragging distance interval the page dragging distance falls in, and accordingly the dragging distance interval to which the page dragging distance belongs is obtained.
The page content category is the type to which the page content belongs. The page content category is a basis for classifying and dividing the page content. A page content category such as a financial category, a military category, a sports category, a scientific category, or a political category, etc. The terminal can respectively associate different page content types with different dragging distance intervals in advance, so that the terminal can control the page content of different page content types to execute related operation under different page dragging distances. The terminal can pull the page content belonging to the page content category to the server for display when the page content category having the association relation with the dragging distance interval is inquired.
In a conventional page refreshing process, content obtained by refreshing a currently displayed page of an application program is generally content randomly obtained by a terminal, so that a user needs to spend more time for searching when selecting content, and the user may not find the content desired by the user.
In the embodiment, the user can control the page dragging distance by controlling the page dragging operation to control the refreshing of the page contents of different page content categories, so that the page contents desired by the user can be refreshed in a targeted manner.
In one embodiment, the page restoration display method further includes: when page jump operation based on a target page occurs, recording a display position corresponding to page data in the target page; rendering the presentation target page based on the draft file includes: and loading the draft file according to the display position to display the target page.
The target page may be a list showing the page content, denoted as a list page. When the user needs to browse the list page, the terminal loads the page content from the server. And the terminal calculates the number of cache pages according to the data size of the single page content and a preset cache threshold value. The number of cache pages is the maximum value of the number of pages of the list which can be cached by the terminal. Each list page that has been loaded has a corresponding page number. The user can browse different page contents on each list page through sliding at the terminal, and can jump to a detail page corresponding to a certain page content by clicking the page content in the browsing process, such as a commodity detail page.
The terminal acquires the page number of the list page and the total page number of the loaded list page, compares the page number of the list page and the loaded total page number with the number of cache pages respectively, and performs total cache or partial cache on the content of the loaded page according to the comparison result. Specifically, if the page number of the list page and the loaded total page number do not exceed the number of cache pages, all the loaded page contents are cached. And if the page number of the list page exceeds the cache page number, or the total loaded page number exceeds the cache page number, locally caching the loaded page content. The locally cached page content includes page content on the listpage where the jump occurred, and page content on multiple listpages consecutive to the listpage page number.
When receiving a trigger operation on a certain page content, the terminal acquires a display position corresponding to the triggered page content and records the display position corresponding to the triggered page content. And acquiring the display position corresponding to the triggered page content of the list page with different display modes in different modes. If the plurality of list pages are displayed in a paging manner, the terminal may obtain a distance between the first item of page content on the triggered list page and the first item of page content displayed on the screen, and obtain a display position corresponding to the triggered page content according to the distance. If a plurality of list pages are continuously displayed, the acquisition mode of the display position corresponding to the triggered page content comprises a plurality of modes. One of the obtaining modes is that when the jump occurs, the terminal obtains the relative distance between the triggered page content and the top of the screen, and obtains the display position corresponding to the triggered page content according to the relative distance.
When receiving a return operation on the detail page, the terminal may set a scrollTop value (vertical offset of a scroll bar) of the page content according to the recorded display position, and load the read page content according to the set scrollTop value, so as to position the returned list page to the last browsing position.
In this embodiment, when the list page jumps, the display position of the page jump is recorded, so that the page content read from the cache can be displayed according to the recorded display position when the list page is returned, thereby maintaining the state of the list page jump, ensuring that data is not initialized again from the server when the list page is returned, and continuing to display at the position of the list page where the jump occurs.
In one embodiment, storing the draft file includes: determining a marking primary key of a target page; restoring configuration information according to the page corresponding to the primary identification key, and correspondingly storing the draft file and the primary identification key to a local cache; or encrypting the draft file according to the secret key recorded by the page recovery configuration information, and storing the identification main key and the encrypted draft file to the server.
The user can configure the recovery strategy of each target application which is expected to open the temporary storage function through the data recovery application configuration at the terminal. In other words, the user also configures the recovery configuration information for each target page to be listened to in advance in the data recovery application. The recovery configuration information comprises an identification main key and temporary storage mode information of each target page in the target application. The identification primary key is information capable of uniquely identifying the target page. The temporary storage mode information comprises whether the target page supports automatic storage, whether remote reading and writing are supported, the number of input files is supported to be stored and the like. And the terminal stores the data recovery information to the server.
And the terminal inquires whether the recovery configuration information of the identification primary key corresponding to the target page exists or not. And if so, the terminal generates an input file according to the input information currently displayed on the target page. The restore configuration information includes a storage path of the input file. The input file may be in the form of a form including a plurality of data fields originally presented by the target page and one or more data field values that have been entered by the user. And the terminal stores the input file to a local cache according to the storage path.
And when receiving a page snapshot instruction triggered by a user, the terminal stores the input file to the server. In this embodiment, it is considered that not all target page users expect to support reading and writing in different places, and therefore the input file is stored in the server only when the user triggers the page snapshot instruction, which can save storage resources of the server. In another embodiment, if the recovery configuration information records that the current target page supports reading and writing in different places, the terminal automatically stores the current input file corresponding to the target page to the server without manually starting a page snapshot instruction by the user, so that the user operation is simplified.
And when the target page is accessed again, the terminal restores the target page. This example provides two reduction modes: local reduction and remote reduction. In the local restoration mode, a user firstly enters a blank target page to be edited and then selects and restores an input file which is locally cached and corresponds to the target page; in the remote restoration mode, a user selects a target page to be edited from the draft box and restores an input file which is stored by the remote server and corresponds to the target page.
Specifically, when the input file of the local cache exists, the terminal displays the draft restoring prompt, and when a confirmation instruction of the user for the draft restoring prompt is obtained, the target page is rendered based on the draft of the input file of the local cache. In another embodiment, the terminal obtains an authorization certificate, such as a public key, for the current user to access the target application. The terminal encrypts the input file based on the authorization certificate. And storing the encrypted input file to a local cache or a server. The input file is encrypted and then stored, so that the safety of the input information can be improved. The recovery configuration information further includes a digital signature, such as a private key, of a current login user of the target application. Because the private key is stored in the server, the input file can be rendered only after being decrypted by the server. And sending the user identification of the current user and the local draft to a server. And the terminal receives the decrypted input file returned by the server. The decrypted input file is obtained by the server decrypting the input file based on the preset private key of the current user. And rendering the target page based on the received decrypted input file by the terminal.
And when the locally cached input file does not exist, the terminal displays the input file list based on a draft browsing instruction triggered by the user in the data recovery application, so that the user can view and select the input file corresponding to the identification primary key in the input file list. The data recovery application has an input file box function. The draft box prompts how many remote input files are currently available, namely, an input file list is displayed. The user clicks a certain file identifier in the input file list, the corresponding file detail can be checked, and after clicking the file detail, the data recovery application displays prompt information of whether a previous target page needs to be opened or not. The terminal determines an input file selected by the user from the input file list, and renders the target page based on the input file pair. After the user clicks and confirms the recovery input, the system automatically jumps to the corresponding target page to be edited, and backfills the content of the relevant input file obtained by the background decryption of the server to the target page to be edited.
In one embodiment, the data recovery application indicates that the input information is normally stored when the data submission instruction triggered by the user on the Web page corresponding to the identification main key is monitored, and deletes the input file corresponding to the local cache without reusing the previous input file, so as to reduce the occupation of local cache storage resources.
In one embodiment, the data input is not equal to the data input is correct, the data recovery application only deletes the input file corresponding to the local cache when monitoring the data submission instruction, and the input file stored in the remote server is deleted only by the manual trigger of the user, so as to meet the data backup requirements of the user in different degrees.
In the embodiment, the input data can be automatically and safely stored without any secondary development of the existing target application, and the method supports reading and writing in different places, avoids frequent repeated operation caused by data loss and improves the data entry efficiency.
In one embodiment, the page restoration display method further includes: determining the access depth of a target page relative to an entry page of a platform to which the target page belongs; when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page label of each page displayed in the process of jumping from the entry page to the target page; and when the trigger operation on the page tag occurs, directly returning to the corresponding page.
The platform to which the target page belongs refers to a target application including the target page in the plurality of pages that appear. The access depth refers to the total number of pages browsed by the user from the entry page of the target page to the target page. For example, if the user jumps from the top page 0 of the application a to the page 1, jumps from the page 1 to the page 2, and jumps from the page 2 to the page 3, the access depth of the page 3 is 3.
And when the page jump operation occurs, the data recovery application also generates a page one-key return prompt of the target application according to the page browsing track. The page one-key return prompt comprises a number of page tags corresponding to the access depth. The page tag may be a thumbnail of the corresponding page, a page title, etc. For example, in the above example, the page one-key return prompt presented on page 3 includes the page tag of top page 0, page tag 1 of page 1, and page tag of page 2. The corresponding page can be directly returned one step by selecting different page tags.
In the embodiment, the page one-key return prompt is provided on the target page, so that different pages can be directly returned in one step, and compared with a layer-by-layer return mode, the page browsing efficiency can be improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a page restoration display apparatus including: a page access monitoring module 302, a page access monitoring module, and a page rendering recovery module 306, wherein:
the page access monitoring module 302 is configured to monitor access operations of a page corresponding to each pre-stored access address.
A draft content storage module 304, configured to obtain input information currently shown in a target page to which an access operation is directed; and when the target page exits, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction statement corresponding to the input file in the page rendering file to obtain a draft file, and storing the draft file.
And a page rendering recovery module 306, configured to render and display the target page based on the draft file when monitoring the access operation to the target page again, read the input information recorded in the input file according to the introduction statement, and recover to display the input information on the target page.
In an embodiment, the apparatus further includes a page content refresh module 308, configured to, when the access operation is a page refresh operation on a target page, obtain a page drag distance corresponding to the page refresh operation; determining a dragging distance interval to which a page dragging distance belongs; inquiring page content categories with association relation between the page content categories and the dragging distance interval; and acquiring and displaying the page content belonging to the page content category.
In an embodiment, the apparatus further includes a display position recording module 310, configured to record a display position corresponding to page data in the target page when a page jump operation based on the target page occurs; the page rendering recovery module 306 is further configured to load the draft file according to the display position to display the target page.
In one embodiment, draft content storage module 304 is further configured to determine the annotated primary key of the target page; restoring configuration information according to the page corresponding to the primary identification key, and correspondingly storing the draft file and the primary identification key to a local cache; or encrypting the draft file according to the secret key recorded by the page restoration configuration information, and storing the identification main key and the encrypted draft file in the server.
In one embodiment, the apparatus further includes a page jump returning module 312, configured to determine an access depth of the target page with respect to an entry page of the corresponding platform; when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page label of each page displayed in the process of jumping from the entry page to the target page; and when the trigger operation on the page tag occurs, directly returning to the corresponding page.
For specific limitations of the page restoration display apparatus, reference may be made to the above limitations on the page restoration display method, which is not described herein again. The various modules in the page restoration display device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a page restoration display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of providing a page restoration display method according to any one of the embodiments of the present application.
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 may be implemented by hardware that is instructed by a computer program, and the computer program may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not to be 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 concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (10)
1. A method for restoring and displaying a page, the method comprising:
respectively monitoring the access operation of the page corresponding to each pre-stored access address;
acquiring input information currently displayed on a target page pointed by the access operation;
when the target page is exited, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction statement corresponding to the input file into the page rendering file to obtain a draft file, and storing the draft file; wherein the input file comprises data fields originally displayed on the target page and data field values already input by a user;
when the access operation of the target page is monitored again, rendering and displaying the target page based on the draft file, reading the input information recorded by the input file according to the introduction statement, and recovering and displaying the input information on the target page;
the method further comprises the following steps:
determining the access depth of the target page relative to the entry page of the platform to which the target page belongs;
when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page tag of each page displayed in the process of jumping from the entry page to the target page;
and when the triggering operation of the page tag occurs, directly returning to the corresponding page.
2. The method of claim 1, further comprising:
when the access operation is a page refreshing operation on a target page, acquiring a page dragging distance corresponding to the page refreshing operation;
determining a dragging distance interval to which the page dragging distance belongs;
inquiring the page content category having an association relation with the dragging distance interval;
and acquiring and displaying the page content belonging to the page content category.
3. The method of claim 1, further comprising:
when page jump operation based on the target page occurs, recording a display position corresponding to page data in the target page;
the rendering and displaying the target page based on the draft file comprises:
and loading the draft file according to the display position to display the target page.
4. The method of claim 1, wherein storing the draft file comprises:
determining a marking primary key of the target page;
storing the draft file and the identification primary key to a local cache correspondingly according to the page recovery configuration information corresponding to the identification primary key; or
And encrypting the draft file according to the secret key recorded by the page restoration configuration information, and storing the identification main key and the encrypted draft file to a server.
5. A page restoration display apparatus, the apparatus comprising:
the page access monitoring module is used for respectively monitoring the access operation of the page corresponding to each pre-stored access address;
the draft content storage module is used for acquiring input information currently displayed on a target page pointed by the access operation; when the target page exits, generating an input file according to the input information, acquiring a page rendering file of the target page, adding an introduction sentence corresponding to the input file into the page rendering file to obtain a draft file, and storing the draft file; the input file comprises a data field originally displayed on the target page and a data field value which is input by a user;
the page rendering recovery module is used for rendering and displaying the target page based on the draft file when monitoring the access operation to the target page again, reading the input information recorded by the input file according to the introduction statement, and recovering and displaying the input information on the target page;
the device also comprises a page jump returning module which is used for determining the access depth of the target page relative to the entry page of the platform to which the target page belongs; when monitoring the access operation of the target page, displaying a page one-key return prompt corresponding to the access depth on the target page; the page one-key return prompt comprises a page tag of each page displayed in the process of jumping from the entry page to the target page; and when the triggering operation of the page tag occurs, directly returning to the corresponding page.
6. The apparatus according to claim 5, further comprising a page content refresh module, configured to, when the access operation is a page refresh operation on a target page, obtain a page drag distance corresponding to the page refresh operation; determining a dragging distance interval to which the page dragging distance belongs; inquiring the page content category having an association relation with the dragging distance interval; and acquiring and displaying the page content belonging to the page content category.
7. The device according to claim 5, further comprising a display position recording module, configured to record a display position corresponding to page data in the target page when a page jump operation based on the target page occurs;
and the page rendering recovery module is also used for loading the draft file according to the display position so as to display the target page.
8. The apparatus of claim 5, wherein the draft content storage module is further configured to determine a callout primary key of the target page; according to the page restoration configuration information corresponding to the identification primary key, the draft file and the identification primary key are correspondingly stored in a local cache; or encrypting the draft file according to the secret key recorded by the page recovery configuration information, and storing the identifier main key and the encrypted draft file to a server.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911269819.7A CN111177616B (en) | 2019-12-11 | 2019-12-11 | Page restoration display method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911269819.7A CN111177616B (en) | 2019-12-11 | 2019-12-11 | Page restoration display method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111177616A CN111177616A (en) | 2020-05-19 |
CN111177616B true CN111177616B (en) | 2023-04-07 |
Family
ID=70657178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911269819.7A Active CN111177616B (en) | 2019-12-11 | 2019-12-11 | Page restoration display method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111177616B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112100553B (en) * | 2020-08-11 | 2023-11-17 | 深圳市拓邦软件技术有限公司 | Webpage configuration method and device, electronic equipment and storage medium |
CN112114808B (en) * | 2020-09-29 | 2024-07-05 | 深圳市欢太科技有限公司 | Page rendering method and device and electronic equipment |
CN112199399A (en) * | 2020-10-22 | 2021-01-08 | 支付宝(杭州)信息技术有限公司 | Data processing method and device |
CN112416410A (en) * | 2020-12-09 | 2021-02-26 | 北京顺达同行科技有限公司 | Data management method and device for small program, computer equipment and storage medium |
CN112749124A (en) * | 2020-12-28 | 2021-05-04 | 深圳壹账通创配科技有限公司 | Page information management method and device, computer equipment and readable storage medium |
CN112818649A (en) * | 2021-02-02 | 2021-05-18 | 北京首汽智行科技有限公司 | Data filling method and system for data filling page cache |
CN113253988B (en) * | 2021-06-11 | 2022-10-18 | 山石网科通信技术股份有限公司 | Page processing method and device |
CN114281434B (en) * | 2021-12-15 | 2022-11-29 | 创优数字科技(广东)有限公司 | Applet user information management method, apparatus, computer device and storage medium |
CN114327453B (en) * | 2021-12-17 | 2023-04-14 | 中科大数据研究院 | Page display method, device, equipment and storage medium |
CN115499252B (en) * | 2022-11-18 | 2023-01-20 | 北京升鑫网络科技有限公司 | Page restoration device, page restoration method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215215A (en) * | 2010-08-02 | 2011-10-12 | 深圳市深信服电子科技有限公司 | Method for recovering page and electronic terminal |
CN103034568A (en) * | 2012-12-14 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for recovering input data of browser |
CN106411945A (en) * | 2016-11-25 | 2017-02-15 | 杭州迪普科技有限公司 | Web access method and web access device |
CN106776132A (en) * | 2016-12-01 | 2017-05-31 | 深圳市小满科技有限公司 | Data recovery system and method |
CN109710354A (en) * | 2018-12-13 | 2019-05-03 | 平安普惠企业管理有限公司 | Page monitor method, page restoring method, device, equipment and medium |
CN110489187A (en) * | 2018-05-15 | 2019-11-22 | 腾讯科技(深圳)有限公司 | Page furbishing method, device, storage medium and computer equipment |
-
2019
- 2019-12-11 CN CN201911269819.7A patent/CN111177616B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215215A (en) * | 2010-08-02 | 2011-10-12 | 深圳市深信服电子科技有限公司 | Method for recovering page and electronic terminal |
CN103034568A (en) * | 2012-12-14 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for recovering input data of browser |
CN106411945A (en) * | 2016-11-25 | 2017-02-15 | 杭州迪普科技有限公司 | Web access method and web access device |
CN106776132A (en) * | 2016-12-01 | 2017-05-31 | 深圳市小满科技有限公司 | Data recovery system and method |
CN110489187A (en) * | 2018-05-15 | 2019-11-22 | 腾讯科技(深圳)有限公司 | Page furbishing method, device, storage medium and computer equipment |
CN109710354A (en) * | 2018-12-13 | 2019-05-03 | 平安普惠企业管理有限公司 | Page monitor method, page restoring method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN111177616A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111177616B (en) | Page restoration display method and device, computer equipment and storage medium | |
CN110008455B (en) | Table editing method, apparatus, computer device and storage medium | |
CN109032457B (en) | Page display method, device, terminal and storage medium | |
CN112114913B (en) | Application program interface updating method and device, computer equipment and storage medium | |
CN108848142B (en) | Message pushing method and device, computer equipment and storage medium | |
CN106528587B (en) | Page display method and device in composite webpage system | |
CN108334395B (en) | Information processing method, apparatus, computer device, and storage medium | |
CN108255566B (en) | Data entry optimization processing method and device, computer equipment and storage medium | |
CN110413922B (en) | Page information display method, device, computer equipment and storage medium | |
CN110177039B (en) | Message sharing method and device, computer equipment and storage medium | |
CN111258466A (en) | Data visualization method and device, computer equipment and storage medium | |
CN111222153A (en) | Application program authority management method and device and storage medium | |
CN111190742B (en) | Resource coordination method, device, computer equipment and storage medium | |
CN109040284B (en) | Information display and information push method, device, equipment and storage medium | |
CN110659435A (en) | Page data acquisition processing method and device, computer equipment and storage medium | |
JP5753302B1 (en) | Program, method and system for warning access to web page | |
CN111597480A (en) | Webpage resource preloading method and device, computer equipment and storage medium | |
CN111382387A (en) | Webpage access method, device, equipment and storage medium based on small program | |
CN115145674A (en) | Page jump method, device, equipment and medium based on dynamic anchor point | |
CN112328922A (en) | Processing method and device | |
CN111326031B (en) | Interactive learning method, system, device and medium based on message flow | |
KR102100379B1 (en) | Method for managing web history and device using the same | |
CN111079192B (en) | Webpage content self-protection method and server | |
CN110879757A (en) | Restarting method and device for abnormal operation of client and computer equipment | |
CN111563005B (en) | Cookie data processing method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231223 Address after: Room 21032, Floor 9, Building 2, Micro World, No. 23, Century Avenue, Liuwu New District, Lhasa, Xizang Autonomous Region, 850000 Patentee after: Lhasa New Starting Point Cultural Communication Co.,Ltd. Address before: 200120 floor 15, No. 1333, Lujiazui Ring Road, Shanghai pilot Free Trade Zone Patentee before: Weikun (Shanghai) Technology Service Co.,Ltd. |
|
TR01 | Transfer of patent right |