CN110908747A - Page processing method and device, electronic equipment and storage medium - Google Patents

Page processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110908747A
CN110908747A CN201910995590.9A CN201910995590A CN110908747A CN 110908747 A CN110908747 A CN 110908747A CN 201910995590 A CN201910995590 A CN 201910995590A CN 110908747 A CN110908747 A CN 110908747A
Authority
CN
China
Prior art keywords
text box
content
backup
editing operation
page
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
CN201910995590.9A
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.)
Reach Best Technology Co Ltd
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Reach Best 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 Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN201910995590.9A priority Critical patent/CN110908747A/en
Publication of CN110908747A publication Critical patent/CN110908747A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a page processing method, a page processing device, an electronic device and a storage medium, wherein the method is applied to a client, and comprises the following steps: monitoring the editing operation of a text box of a specified page; when the editing operation on the text box is monitored, acquiring the editing operation information of the text box based on a preset backup frequency; and backing up the content of the text box based on the editing operation information and uploading the content to a backup server so as to load the backup content of the text box from the backup server when the specified page is restored. The page processing method can provide data loss prevention protection for the specified page, and can also avoid the problems that the client frequently backs up the text box content to cause excessive resource occupation or the text box content is not backed up in time to cause data loss of the specified page and the like. In addition, the page processing method is strong in universality and expansibility.

Description

Page processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a page processing method and apparatus, an electronic device, and a storage medium.
Background
In the daily document writing process, the situations of page fault closing, computer crash, program crash and the like are likely to occur. If the page is not saved at this point, the previously edited pages disappear when the document is opened again. For this reason, it is necessary to prevent the page data from being lost.
In a page processing method in the related art, a wiki tool is generally used for protecting page data, but the wiki tool is only suitable for a page edited on a wiki platform, and the page is saved only when a user's saving operation on the page is detected. The scheme is not suitable for other platforms, and the problem that the page data cannot be stored in time to cause page data loss exists.
Disclosure of Invention
The disclosure provides a page processing method, a page processing device, an electronic device and a storage medium, so as to at least solve the problems that the page processing method in the related art is not universal and cannot save page data in time. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a page processing method applied to a client, the method including:
monitoring the editing operation of a text box of a specified page;
when the editing operation on the text box is monitored, acquiring the editing operation information of the text box based on a preset backup frequency;
and backing up the content of the text box based on the editing operation information and uploading the content to a backup server so as to load the backup content of the text box from the backup server when the specified page is restored.
According to a second aspect of the embodiments of the present disclosure, there is provided a page processing apparatus applied to a client, the apparatus including:
a monitoring unit configured to perform monitoring of an editing operation on a textbox of a specified page;
an acquisition unit configured to execute, when an editing operation on the text box is monitored, acquiring editing operation information of the text box based on a predetermined backup frequency;
a backup unit configured to perform backup of the content of the text box based on the editing operation information and upload to a backup server to load the backup content of the text box from the backup server when restoring the specified page.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page processing method of the first aspect of the embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of an electronic device, enable a page processing apparatus to perform the page processing method according to the first aspect of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the page processing method of the first aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the method comprises the steps that editing operation on a text box of a specified page is monitored through a client, editing operation information of the text box is obtained based on a preset backup frequency when the editing operation on the text box is monitored, the content of the text box is backed up and uploaded to a backup server based on the obtained editing operation information, data loss prevention protection can be provided for the specified page, and the specified page can be recovered when conditions of mistakenly closing the specified page, breakdown of the client and program crash occur. Secondly, the client acquires the editing operation information based on the preset backup frequency and backs up and uploads the content of the text box based on the editing operation information, so that the problems that the client frequently acquires the editing operation information and the content of the text box to occupy too many client resources or the content of the text box is not backed up in time to cause data loss of a specified page and the like can be avoided. Furthermore, the client side uploads the content of the text box to the backup server for storage after backing up, so that the occupation of storage resources of the client side can be reduced. In addition, the page processing method provided by the embodiment of the disclosure has strong universality and expansibility, and can be applied to various types of document pages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an implementation environment to which embodiments of the present disclosure relate.
Fig. 2 is a flowchart illustrating a page processing method according to an exemplary embodiment, wherein the method is applied to a client.
FIG. 3 is a diagram illustrating a hint information to specify a page in accordance with an exemplary embodiment.
FIG. 4 is a flowchart illustrating a method of page processing, as applied to a backup server, in accordance with an exemplary embodiment.
FIG. 5 is an interaction diagram illustrating a page processing method according to an example embodiment.
Fig. 6 is a block diagram illustrating a page processing apparatus applied to a client according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a page processing apparatus applied to a client according to another exemplary embodiment.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical solutions provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Before explaining the technical solutions provided by the embodiments of the present disclosure, an implementation environment related to the embodiments of the present disclosure is first explained. FIG. 1 is a schematic diagram of an implementation environment to which embodiments of the present disclosure relate. As shown in fig. 1, an implementation environment related to the embodiment of the present disclosure includes: a client 100 and a backup server 200, and the client 100 is connected with the backup server 200 in communication. Among other things, the client 100 may be any client that provides editing operations on a page, such as a pc (personal computer) machine, a mobile smart phone, a tablet electronic device, a portable computer (e.g., a laptop, etc.), a Personal Digital Assistant (PDA), a desktop computer, a smart wearable device, and so on. The backup server 200 may be a server providing storage service for data uploaded by the client 100, wherein the backup server 200 is configured with a database in advance, and data from the client 100 can be written into the database for storage.
Based on the implementation environment shown in fig. 1, the embodiment of the present disclosure provides a page processing method, which is applied to a client, where the client may be the client 100 in fig. 1. FIG. 2 is a flowchart illustrating a method of page processing according to an exemplary embodiment, as shown in FIG. 2, including the steps of:
in step S21, an editing operation on a text box of the specified page is listened to.
The designated page may be a page that needs to be backed up and is preset by the user, or a page that is currently displayed to the user.
The editing operation on the text box may include: adding data to the text box, replacing data in the text box, deleting data of the text box, and the like. In an alternative embodiment, the client may determine the user's editing operation in the textbox by listening to whether the textbox of the specified page is altered. For example, the client may determine to monitor the editing operation of the textbox when monitoring the textbox content addition, deletion, replacement, and the like of the specified page.
In step S22, when an editing operation for a text box of a specified page is monitored, editing operation information for the text box is acquired based on a predetermined backup frequency.
The operation information of the editing operation may include one or more of content of a text box before the editing operation, content of a text box after the editing operation, content of a text box change before and after the editing operation, identity information (for example, a user name, an ID, a mailbox, and the like) of an operator of the editing operation, a unique primary key ID of a page to which the text box belongs, and the like. For example, if the user (i.e., operator) adds a character "// end value" in the text box, the editing operation information may include the added character "// end value".
The backup frequency may include backup at a set period (for example, backup once every 1 minute), backup at a preset time interval after the editing operation is stopped (for example, backup once at an interval of N seconds after the editing operation is stopped, where N is a positive number).
In an alternative embodiment, the client may obtain the editing operation information of the text box according to a predetermined backup frequency by starting a countdown timer. For example, if the predetermined backup frequency is that backup is performed at an interval of N seconds (N is a positive number) after the editing operation on the text box of the designated page is stopped, a countdown timer may be started after the editing operation on the text box of the designated page is monitored, and a backup function is triggered to backup the content of the text box of the designated page and upload the content to the backup server at an interval of N seconds after the editing operation is stopped. After the backup content of the textbox is uploaded to a backup server, if the countdown timer is still running, continuing to monitor the editing operation of the textbox of the specified page; if the countdown timer runs out, a countdown timer is started again, and the steps are repeatedly executed.
In step S23, the contents of the text box of the specified page are backed up based on the acquired editing operation information and uploaded to the backup server to load the backed-up contents of the text box of the specified page from the backup server when the specified page is restored.
In the embodiment of the present disclosure, the contents of all text boxes of the specified page may be backed up; or, the content of the text box to be backed up may be determined based on a selection operation of the user on the content of the text box of the specified page, and the content of the text box to be backed up may be backed up based on the backup frequency. The content of the text box of the designated page may include text information, image information, and the like, and the content of the text box to be backed up may be determined in the text box of the designated page in the form of selecting, copying, and the like of characters or images. Therefore, the data required to be backed up can be customized by a user.
For the backup of the content of the text box, in an alternative embodiment, the obtained editing operation information may include the content of the text box before and after the editing operation. Accordingly, in step S23, the changed content of the text box may be determined based on the content of the text box before and after the editing operation, and the changed content of the text box may be backed up and uploaded to a backup server (e.g., the backup server 200 shown in fig. 1) so that the backup server may incrementally store the changed content of the text box from the client.
In another alternative embodiment, the obtained editing operation information may include the content of the text box after the editing operation. Accordingly, in the above step S23, the content of the text box after the editing operation may be backed up and uploaded to the backup server, so that the backup server performs overlay storage on the content of the text box after the editing operation. For example, after receiving the backup content of the text box uploaded by the client each time, the backup server judges whether the backup content of the text box is stored in the database, and if the backup content of the text box is not stored in the database, the backup content is directly written into the database; and if the backup content of the text box is stored in the database, overwriting the backup content in the database.
It can be understood that, in this embodiment, the client only uploads the content of the text box after the editing operation each time, and the backup server processes and records the content of the text box after the editing operation, so that the workload of the client can be reduced.
It should be noted that the backup content uploaded to the text box of the backup server by the client may further include a unique primary key ID of the designated page, an identity (e.g., a user name, an ID, a mailbox, etc.) of an operator of the editing operation, and the like.
In the embodiment of the disclosure, the client monitors the editing operation on the textbox of the designated page, acquires the editing operation information of the textbox based on the predetermined backup frequency when the editing operation on the textbox is monitored, backs up and uploads the content of the textbox to the backup server based on the acquired editing operation information, and can provide data loss prevention protection for the designated page so as to restore the designated page when the conditions of mistaken closing of the designated page, shutdown of the client, program crash and the like are met. Secondly, the client acquires the editing operation information based on the preset backup frequency and backs up and uploads the content of the text box based on the editing operation information, so that the problems that the client frequently acquires the editing operation information and the content of the text box to occupy too many client resources or the content of the text box is not backed up in time to cause data loss of a specified page and the like can be avoided. Furthermore, the client side uploads the content of the text box to the backup server for storage after backing up, so that the occupation of storage resources of the client side can be reduced. In addition, the page processing method provided by the embodiment of the disclosure has strong universality and expansibility, and can be applied to various types of document pages.
Further, in another embodiment of the present disclosure, before the step S22, the page processing method provided in the embodiment of the present disclosure may further include: the backup frequency is determined based on the importance level identification of the designated page and/or the network rate of the client. The importance level identifier of the designated page may be an identifier preset by the user based on the content of the designated page and used for representing the importance level of the designated page. For example, the importance level identification for a given page may include: important, general and not.
For example, if the importance level identifier of the designated page indicates that the designated page is important, the backup frequency may be determined as backup immediately (i.e., at an interval of 0 second) after the editing operation on the text box of the designated page is stopped; if the importance level identifier of the specified page indicates that the specified page is not important, the backup frequency can be determined as 10 seconds after the editing operation on the text box of the specified page is stopped.
For another example, if it is detected that the network rate of the client reaches a set value, it may be determined that the backup frequency is to perform backup every 10 seconds; if the network rate of the client is detected to be smaller than the set value, the backup frequency can be determined to be backup every 30 seconds.
It can be understood that the backup frequency is determined based on the importance degree identifier of the designated page, so that the contents of the text box of the designated page are backed up according to the backup frequency, the contents of the text box of the important designated page can be ensured to be backed up in time, and the data of the important designated page is prevented from being lost due to an unexpected condition. The backup frequency is determined based on the network rate of the client side, so that backup is carried out according to the backup frequency, and the problem that the content of the text box of the specified page cannot be backed up in time due to the influence of the network condition of the client side can be avoided.
It should be noted that, in the embodiment of the present disclosure, the backup frequency may also be set by a user in a customized manner based on personal needs.
Further, in another embodiment of the present disclosure, after step S23, the page processing method provided in the embodiment of the present disclosure may further include: and receiving feedback information returned by the backup server, and outputting prompt information on a specified page based on the feedback information, wherein the feedback information comprises a state code for indicating the storage state of the backup content of the text box and the storage time of the backup content of the text box.
The prompt information is information used for showing storage time, storage state and the like of the backup content of the text box of the specified page to a user, and the prompt information can be one or a combination of characters, emoticons, voice and the like. For example, as shown in FIG. 3, a text of "your content has been automatically saved and the last saving time is 2019-9-1218: 49: 1" is shown on the designated page.
It can be understood that, by outputting the prompt information on the specified page, the page processing method provided in this embodiment can enable the user to timely know the backup condition of the content of the text box of the specified page, so that the user can take corresponding measures to prevent the data of the specified page from being lost, and further improve the user experience.
In another embodiment of the present disclosure, after step S23, the page processing method provided in the embodiment of the present disclosure may further include: and loading the backup content of the text box from the backup server under the condition of receiving a recovery instruction of the specified page, and recovering the specified page based on the backup content of the text box.
For example, the client may determine to receive the recovery instruction for the specified page when the client detects that the specified page is closed and then opens again, or when a recovery button (for example, a "switch last automatic save" button shown in fig. 3) of the specified page is triggered.
It can be understood that the page processing method provided by the embodiment can recover the specified page when the specified page is mistakenly closed, the client is down, the program is crashed, and the like, and improve user experience.
The embodiment of the present disclosure further provides a page processing method, which is applied to a backup server, where the backup server may be the backup server 200 in fig. 1. FIG. 4 is a flowchart illustrating a method of page processing, as shown in FIG. 4, including the steps of:
in step S41, the backup content of the text box of the specified page sent by the client is received.
And the backup content is uploaded after the client side monitors the editing operation of the user on the textbox and backups the textbox content.
In step S42, the backup content of the text box is written into a database.
In an alternative embodiment, the backup content of the text box of the designated page sent by the client includes the changed content of the text box before and after editing, in which case, the backup server may store the changed content of the text box in an incremental manner.
In another optional implementation manner, the backup content of the text box of the designated page sent by the client includes the content of the edited text box, in this case, after receiving the backup content of the text box uploaded by the client each time, the backup server determines whether the backup content of the text box is stored in the database, and if the backup content of the text box is not stored in the database, the backup content is directly written into the database; and if the backup content of the text box is stored in the database, overwriting the backup content in the database.
It should be noted that the backup content of the textbox of the specified page sent by the client may further include a unique primary key ID of the specified page, an identity (e.g., a user name, an ID, a mailbox, etc.) of an operator of the editing operation, and the like.
In the embodiment of the disclosure, the backup server receives and stores the backup content of the text box of the designated page uploaded by the client, and can provide data loss prevention protection for the designated page so as to recover the designated page when the designated page is closed by mistake, the client is down, the program is crashed and the like. Secondly, the backup server receives and stores the content of the text box, so that the occupation of the storage resources of the client can be reduced. In addition, the page processing method provided by the embodiment of the disclosure has strong universality and expansibility, and can be applied to a large number of types of document pages.
Further, in another embodiment, after the step S42, the backup server may further return feedback information to the client after storing the backup content of the text box, so that the client outputs prompt information on the specified page based on the feedback information. Wherein the feedback information may include a status code indicating a storage status of the backup content of the text box and a storage time of the backup content of the text box.
Further, the backup content is used to restore the specified page. Specifically, the backup server may further send, when receiving a load instruction from the client, the backup content of the textbox of the specified page to the client, so that the client restores the specified page based on the backup content, where the load instruction is used to instruct to load the backup content of the textbox of the specified page from the client.
FIG. 5 is an interaction diagram illustrating a page processing method according to an example embodiment. The following describes the page processing method in the embodiment of the present disclosure in detail with reference to fig. 1 to 5. The method specifically comprises the following steps:
in step S51, the client 100 listens for an editing operation on the text box of the specified page.
In step S52, the client 100 acquires the editing operation information of the text box based on a predetermined backup frequency when it listens to the editing operation of the text box of the designated page.
In step S53, the client 100 backs up the contents of the text box of the designated page based on the acquired editing operation information.
In step S54, the client 100 uploads and uploads the backup content of the text box to the backup server 200.
The above three steps have been described in detail in the embodiment illustrated in fig. 2, and are not described again here.
In step S55, the backup server 200 writes the backup contents of the text box into the database.
This step has been described in detail in the embodiment illustrated in fig. 4, and is not described here again.
In the embodiment of the disclosure, the client monitors the editing operation on the textbox of the designated page, acquires the editing operation information of the textbox based on the predetermined backup frequency when the editing operation on the textbox is monitored, backs up and uploads the content of the textbox to the backup server based on the acquired editing operation information, and can provide data loss prevention protection for the designated page so as to restore the designated page when the conditions of mistaken closing of the designated page, shutdown of the client, program crash and the like are met. Secondly, the client acquires the editing operation information based on the preset backup frequency and backs up and uploads the content of the text box based on the editing operation information, so that the problems that the client frequently acquires the editing operation information and the content of the text box to occupy too many client resources or the content of the text box is not backed up in time to cause data loss of a specified page and the like can be avoided. Furthermore, the client side uploads the content of the text box to the backup server for storage after backing up, so that the occupation of storage resources of the client side can be reduced. In addition, the page processing method provided by the embodiment of the disclosure has strong universality and expansibility, and can be applied to various types of document pages.
Further, after step S55, the page processing method according to the above embodiment may further include: the backup server 200 returns feedback information to the client 100, and the client 100 outputs prompt information on the specified page based on the feedback information returned by the backup server 200.
Wherein the feedback information comprises a status code indicating a storage status of the text box content and a storage time of the text box content. The prompt information is information used for showing the storage time, the storage state and the like of the text box content of the specified page to a user, and the prompt information can be one or a combination of characters, emoticons, voice and the like.
It can be understood that, in the page processing method provided in this embodiment, the client 100 outputs the prompt information on the specified page, so that the user can timely know the backup condition of the content of the text box of the specified page, so that the user can take corresponding measures to prevent the data loss of the specified page, and further improve the user experience.
Further, in another embodiment of the present disclosure, after the step S55, the page processing method according to the above embodiment may further include: the client 100 loads the backup content of the text box from the backup server 200 and restores the specified page based on the backup content of the text box, in a case where a restoration instruction for the specified page is received.
For example, the client may determine to receive the recovery instruction for the specified page when the client detects that the specified page is closed and then opens again, or when a recovery button (for example, a "switch last automatic save" button shown in fig. 3) of the specified page is triggered.
It can be understood that the page processing method provided by the embodiment can recover the specified page when the specified page is mistakenly closed, the client is down, the program is crashed, and the like, and improve user experience.
Fig. 6 is a block diagram illustrating a page processing apparatus according to an example embodiment. Referring to fig. 6, the apparatus 600 includes a listening unit 601, an acquisition unit 602, and a backup unit 603.
The listening unit 601 is configured to perform listening for an editing operation on a text box of a specified page.
The obtaining unit 602 is configured to obtain editing operation information of the text box based on a predetermined backup frequency when the editing operation on the text box is monitored.
The backup unit 603 is configured to perform backup of the contents of the text box based on the editing operation information and upload to a backup server to load the backup contents of the text box from the backup server when restoring the specified page.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the page processing apparatus according to this embodiment, the client monitors the editing operation on the textbox of the designated page, acquires the editing operation information of the textbox based on the predetermined backup frequency when the editing operation on the textbox is monitored, and backs up and uploads the content of the textbox to the backup server based on the acquired editing operation information, so that data loss prevention protection can be provided for the designated page, and the designated page can be recovered when conditions such as mistaken closing of the designated page, downtime of the client, and program crash occur. Secondly, the client acquires the editing operation information based on the preset backup frequency and backs up and uploads the content of the text box based on the editing operation information, so that the problems that the client frequently acquires the editing operation information and the content of the text box to occupy too many client resources or the content of the text box is not backed up in time to cause data loss of a specified page and the like can be avoided. Furthermore, the client side uploads the content of the text box to the backup server for storage after backing up, so that the occupation of storage resources of the client side can be reduced. In addition, the page processing method provided by the embodiment of the disclosure has strong universality and expansibility, and can be applied to various types of document pages.
Optionally, the apparatus further comprises:
a first determining unit 604 configured to perform, before the backup unit 603 backs up the content of the text box based on the editing operation information, determining the backup frequency based on the importance level identification of the specified page and/or the network rate of the client.
It can be understood that the backup frequency is determined based on the importance degree identifier of the designated page, so that the editing operation information of the text box is obtained according to the backup frequency, and the content of the text box is backed up based on the editing operation information, thereby ensuring that the content of the important designated page is backed up in time and avoiding the important designated page from being lost due to an unexpected condition. And determining the backup frequency based on the network rate of the client to perform backup according to the backup frequency, so that the situation that the client cannot backup the text box content of the specified page in time due to the influence of the network condition can be avoided.
Optionally, as shown in fig. 7, the apparatus 600 further includes:
a second determining unit 605 configured to perform, before the backup unit backs up the content of the text box based on the editing operation information, a text box content to be backed up based on a selection operation of a user for the text box content of the specified page;
the backup unit 603 is further configured to:
and executing backup of the text box content to be backed up based on the editing operation information and uploading the content to the backup server.
Therefore, the data required to be backed up can be customized by a user.
Optionally, the editing operation information includes contents of the text box before and after the editing operation;
the backup unit 603 is further configured to perform:
determining the changing content of the text box based on the content of the text box before and after the editing operation;
and backing up the change content of the text box and uploading the change content to the backup server so that the backup server performs incremental storage on the change content of the text box.
Optionally, the editing operation information includes content of the text box after the editing operation;
the backup unit 603 is further configured to:
and executing backup on the content of the text box after the editing operation and uploading the content to the backup server so that the backup server performs overlay storage on the content of the text box after the editing operation.
It can be understood that, in this embodiment, the client only uploads the content of the text box after the editing operation each time, and the backup server processes and records the content of the text box after the editing operation, so that the workload of the client can be reduced.
Optionally, as shown in fig. 7, the apparatus 600 further includes:
a receiving unit 606 configured to perform, after the backup unit 603 backs up and uploads the content of the text box to a backup server based on the editing operation information, receiving feedback information returned by the backup server, where the feedback information includes a status code indicating a storage status of the backup content of the text box and a storage time of the backup content of the text box;
an output unit 607 configured to perform outputting of the prompt information at the specified page based on the status code and the storage time.
It can be understood that the prompt information is output on the specified page, so that the user can timely know the backup condition of the text box content of the specified page, the user can conveniently take corresponding measures to prevent the data loss of the specified page, and the user experience is further improved.
Optionally, the backup frequency includes: and backing up according to a set period, and backing up at preset time intervals after the editing operation is stopped.
Optionally, as shown in fig. 7, the apparatus further includes:
a loading unit 608 configured to execute loading of the backup content of the text box from the backup server in a case where a restore instruction for the specified page is received;
a restoring unit 609 configured to restore the specified page based on the backup content of the text box. It can be understood that by means of the embodiment, the specified page can be recovered when conditions such as mistaken closing of the specified page, downtime of the client, program crash and the like are met, and user experience is improved.
Fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. For example, the apparatus 800 may be a client of a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and so forth. Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the page processing method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A page processing method is applied to a client, and comprises the following steps:
monitoring the editing operation of a text box of a specified page;
when the editing operation on the text box is monitored, acquiring the editing operation information of the text box based on a preset backup frequency;
and backing up the content of the text box based on the editing operation information and uploading the content to a backup server so as to load the backup content of the text box from the backup server when the specified page is restored.
2. The method according to claim 1, wherein before the obtaining of the editing operation information of the text box based on the predetermined backup frequency, the method further comprises:
and determining the backup frequency based on the importance degree identification of the specified page and/or the network speed of the client.
3. The method of claim 1, wherein before the backing up and uploading the content of the text box to a backup server based on the editing operation information, the method further comprises:
determining the text box content to be backed up based on the selection operation of the user on the text box content of the specified page;
the backing up the content of the text box based on the editing operation information and uploading the content to a backup server comprises the following steps:
and backing up the content of the text box to be backed up based on the editing operation information and uploading the content to the backup server.
4. The method according to claim 1, wherein the editing operation information includes contents of the text box before and after the editing operation;
the backing up the content of the text box based on the editing operation information and uploading the content to a backup server comprises the following steps:
determining the changing content of the text box based on the content of the text box before and after the editing operation;
and backing up the change content of the text box and uploading the change content to the backup server so that the backup server performs incremental storage on the change content of the text box.
5. The method according to claim 1, wherein the editing operation information includes contents of the text box after the editing operation;
the backing up the content of the text box based on the editing operation information and uploading the content to a backup server comprises the following steps:
and backing up the content of the text box after the editing operation and uploading the content to the backup server so that the backup server performs covering storage on the content of the text box after the editing operation.
6. The method of claim 1, wherein after the backing up and uploading the content of the text box to a backup server based on the editing operation information, the method further comprises:
receiving feedback information returned by the backup server, wherein the feedback information comprises a state code used for indicating the storage state of the backup content of the text box and the storage time of the backup content of the text box;
and outputting prompt information on the designated page based on the state code and the storage time.
7. The method of any of claims 1 to 6, wherein the backup frequency comprises: and backing up according to a set period, and backing up at preset time intervals after the editing operation is stopped.
8. The method according to any one of claims 1 to 6, further comprising:
loading the backup content of the text box from the backup server under the condition that a recovery instruction for the specified page is received;
and restoring the specified page based on the backup content of the text box.
9. A page processing apparatus applied to a client, the apparatus comprising:
a monitoring unit configured to perform monitoring of an editing operation on a textbox of a specified page;
an acquisition unit configured to execute, when an editing operation on the text box is monitored, acquiring editing operation information of the text box based on a predetermined backup frequency;
a backup unit configured to perform backup of the content of the text box based on the editing operation information and upload to a backup server to load the backup content of the text box from the backup server when restoring the specified page.
10. The apparatus of claim 9, further comprising:
a first determining unit configured to perform, before the backup unit backs up the content of the text box based on the editing operation information, determination of the backup frequency based on the importance level identification of the specified page and/or the network rate of the client.
11. The apparatus of claim 9, further comprising:
a second determining unit configured to perform a text box content determination to be backed up based on a user selection operation on the text box content of the specified page before the backup unit backs up the content of the text box based on the editing operation information;
the backup unit is further configured to:
and executing backup of the text box content to be backed up based on the editing operation information and uploading the content to the backup server.
12. The apparatus according to claim 9, wherein the editing operation information includes contents of the text box before and after the editing operation;
the backup unit is further configured to perform:
determining the changing content of the text box based on the content of the text box before and after the editing operation;
and backing up the change content of the text box and uploading the change content to the backup server so that the backup server performs incremental storage on the change content of the text box.
13. The apparatus according to claim 9, wherein the editing operation information includes contents of the text box after the editing operation;
the backup unit is further configured to:
and executing backup on the content of the text box after the editing operation and uploading the content to the backup server so that the backup server performs overlay storage on the content of the text box after the editing operation.
14. The apparatus of claim 9, further comprising:
the receiving unit is configured to execute receiving feedback information returned by a backup server after the backup unit backs up and uploads the content of the text box to the backup server based on the editing operation information, wherein the feedback information comprises a state code used for indicating the storage state of the backup content of the text box and the storage time of the backup content of the text box;
an output unit configured to perform outputting of prompt information at the specified page based on the status code and the storage time.
15. The apparatus of any of claims 9 to 14, wherein the backup frequency comprises: and backing up according to a set period, and backing up at preset time intervals after the editing operation is stopped.
16. The apparatus of any one of claims 9 to 14, further comprising:
a loading unit configured to execute loading of the backup content of the text box from the backup server in a case where a restoration instruction for the specified page is received;
a restoring unit configured to perform restoring the specified page based on the backup content of the text box.
17. An electronic device, applied to a client, the apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page processing method of any of claims 1 to 8.
18. A storage medium in which instructions, when executed by a processor of an electronic device, enable a page processing apparatus to perform the page processing method of any one of claims 1 to 8.
CN201910995590.9A 2019-10-18 2019-10-18 Page processing method and device, electronic equipment and storage medium Pending CN110908747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910995590.9A CN110908747A (en) 2019-10-18 2019-10-18 Page processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910995590.9A CN110908747A (en) 2019-10-18 2019-10-18 Page processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110908747A true CN110908747A (en) 2020-03-24

Family

ID=69815700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910995590.9A Pending CN110908747A (en) 2019-10-18 2019-10-18 Page processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458644A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave method
US20100205205A1 (en) * 2009-02-06 2010-08-12 Greg Hamel Computing platform based on a hierarchy of nested data structures
CN107992455A (en) * 2017-10-31 2018-05-04 努比亚技术有限公司 A kind of text handling method, terminal and computer-readable recording medium
CN108197166A (en) * 2017-12-15 2018-06-22 重庆数字城市科技有限公司 A kind of browser-cross office examination & approval trace method and system
CN109857999A (en) * 2018-12-30 2019-06-07 广东一一五科技股份有限公司 A kind of document drafts store method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458644A (en) * 2007-12-12 2009-06-17 新奥特(北京)视频技术有限公司 Document autosave method
US20100205205A1 (en) * 2009-02-06 2010-08-12 Greg Hamel Computing platform based on a hierarchy of nested data structures
CN107992455A (en) * 2017-10-31 2018-05-04 努比亚技术有限公司 A kind of text handling method, terminal and computer-readable recording medium
CN108197166A (en) * 2017-12-15 2018-06-22 重庆数字城市科技有限公司 A kind of browser-cross office examination & approval trace method and system
CN109857999A (en) * 2018-12-30 2019-06-07 广东一一五科技股份有限公司 A kind of document drafts store method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109936481B (en) Master-slave server switching method and device, electronic equipment and storage medium
CN106970754B (en) Screen capture processing method and device
CN104536848B (en) Firmware restoration method, apparatus and terminal
CN107193678B (en) Method and device for determining cause of stuck and storage medium
CN106790581B (en) Application data processing method and device and terminal
US20170139944A1 (en) Method, device and computer-readable medium for monitoring a file in system partition
CN104951377A (en) Exception handling method and device for smart home terminal
KR20160034839A (en) Method and device for back up file
CN111259289B (en) Picture loading method and device, electronic equipment and storage medium
CN107729098B (en) User interface display method and device
US20160150384A1 (en) Method for processing an audio message
CN109634762B (en) Data recovery method and device, electronic equipment and storage medium
CN104951184A (en) Application program downloading method and device
CN110908747A (en) Page processing method and device, electronic equipment and storage medium
CN104239095A (en) Operating-system starting method, device and terminal equipment
CN107422954B (en) Lock screen prolonging method and device
CN105446835A (en) Method and device for repairing system file
CN111290882B (en) Data file backup method, data file backup device and electronic equipment
CN110502714B (en) Information detection method and device, electronic equipment and storage medium
CN114416475A (en) Data processing method and device, electronic equipment and storage medium
CN115729754A (en) Equipment testing method and device, electronic equipment and storage medium
CN110798721B (en) Episode management method and device and electronic equipment
CN108762944B (en) Processing method, device, equipment and medium of business system
CN106776204B (en) Method and device for determining power consumption application
CN111917917A (en) File backup method and device and electronic equipment

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