WO2015003493A1 - Data recovery method and electronic device - Google Patents

Data recovery method and electronic device Download PDF

Info

Publication number
WO2015003493A1
WO2015003493A1 PCT/CN2014/071884 CN2014071884W WO2015003493A1 WO 2015003493 A1 WO2015003493 A1 WO 2015003493A1 CN 2014071884 W CN2014071884 W CN 2014071884W WO 2015003493 A1 WO2015003493 A1 WO 2015003493A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
electronic device
display screen
display
user
Prior art date
Application number
PCT/CN2014/071884
Other languages
French (fr)
Chinese (zh)
Inventor
韩智洵
周洪凯
司英豪
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015003493A1 publication Critical patent/WO2015003493A1/en

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs

Definitions

  • the present invention relates to the field of communications, and in particular, to a data recovery method and an electronic device.
  • the CPU Central Processing Unit
  • the CPU passes the linear return in the order of the records.
  • the method of retreating restores the error operation, that is, the error operation is linearly returned to the historical state 3, the historical state 2, and the historical state 1 in the order of the current state.
  • the linear regression method will not restore the intermediate user. Part of it has also been restored, which in turn affects the efficiency of editing data. Summary of the invention
  • An embodiment of the present invention provides a data recovery method and an electronic device, which can compare whether the first data and the second data are the same, and mark the change to the preset identifier by using the visual identifier, so that the user selects and needs to restore.
  • the record improves the user experience and the efficiency of editing data.
  • an embodiment of the present invention uses the following technical solution:
  • a data recovery method where the method includes:
  • the third data is recorded, wherein the third data includes the modified data of the first data
  • Marking by the visual identifier corresponding to the third data, a preset identifier, so that if a recovery instruction input by the user according to the visual identifier is received, the third data is restored according to the recovery instruction. data.
  • the third data is not recorded.
  • the visual identifier corresponding to the third data is marked to the preset identifier After the bit, the method further includes:
  • the displaying the third data by using the display screen further includes:
  • the time at which the third data is recorded is displayed through the display screen.
  • the obtaining the second data obtained after modifying the first data includes:
  • the second data obtained after modifying the first data is acquired periodically or non-periodically.
  • the preset identifier bit is specifically a navigation bar.
  • an embodiment of the present invention further provides an electronic device, including: an obtaining module, configured to acquire first data and second data obtained by modifying the first data;
  • a comparison module configured to compare whether the first data and the second data are the same;
  • the recording module configured to: if the first data and the second data are not identical, record the third data, where the third data The modified data including the first data;
  • An execution module configured to mark the visual identifier corresponding to the third data to a preset identifier, so that if a recovery instruction input by the user according to the visual identifier is received, the current data is determined according to the recovery instruction.
  • the third data is restored.
  • the recording module is further configured to: if the first data and the second data are identical, the third data is not recorded.
  • the execution module is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the current data is not in the current data. The third data is restored.
  • the electronic device further includes: the acquiring module, configured to: if the query instruction input by the user according to the visual identifier is received, obtain the Querying the third data indicated by the instruction;
  • a processing module configured to allocate, according to the third data and a resolution of the display screen, a pixel point required to display the third data, where the resolution indicates a pixel of the display screen a number of pixels, the number of pixels required to display the third data is not greater than the number of pixels of the display screen;
  • a display module configured to display the third data through the display screen.
  • the display module is further configured to display, by using the display screen, the third The time of the data.
  • the acquiring module is specifically configured to periodically or aperiodically acquire the modified The second data obtained after the first data.
  • the preset identifier bit is specifically a navigation bar.
  • the data recovery method and the electronic device provided by the embodiment of the present invention compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data is If the second data is not completely the same, the third data is recorded, where the third data includes the modified data of the first data, and the visual identifier corresponding to the third data is marked on the preset identifier, so that if the receiving To the recovery instruction input by the user according to the visual identification, the third data is restored on the current data according to the recovery instruction.
  • the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier.
  • the identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
  • Figure 1 shows the sequence relationship for recovering erroneous operations by means of linear back-off in the prior art
  • FIG. 2 is a schematic flowchart 1 of a method for data recovery according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart 2 of a method for data recovery according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a process of a data recovery method according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a process of a data recovery method according to an embodiment of the present invention
  • FIG. FIG. 8 is a schematic diagram of a process of the data recovery method provided by the embodiment of the present invention
  • FIG. 9 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention
  • FIG. 12 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a data recovery method. As shown in FIG. 2, the method includes:
  • the second data obtained after the electronic device acquires the first data and modifies the first data.
  • a data recovery method is provided by the embodiment of the present invention.
  • the electronic device When a user uses one data for editing, the electronic device first acquires the first data and the second data obtained after modifying the first data.
  • the electronic device compares whether the first data and the second data are the same.
  • the electronic device records the third data.
  • the third data includes the modified data of the first data.
  • the electronic device After acquiring the first data and the second data obtained after modifying the first data, the electronic device needs to compare whether the first data and the second data are the same. If the first data and the second data are not completely the same, the third data is recorded. .
  • the electronic device compares whether the first data and the second data are the same, and if the first data and the second data are not identical. After the electronic device acquires the first data, and before acquiring the second data, the user edits and uses the first data. The electronic device records the modified data of the first data, that is, the third data.
  • the electronic device marks the visual identifier corresponding to the third data to the preset identification bit, so that if the recovery instruction input by the user according to the visual identifier is received, the electronic device restores the third data on the current data according to the recovery instruction.
  • the electronic device marks the visual identifier corresponding to the third data to the preset identifier, where the preset identifier is specifically a navigation bar. Pass By using the visual identifier to mark the third data on the navigation bar, the user can quickly locate the location of the third data and view the content of the third data, so that the user operates on the data that needs to be restored.
  • the identifier bit may be a navigation bar, and the flag bit may also be another location capable of marking the third data, so that the user can quickly locate the third data.
  • Navigation marks the invention is not limited.
  • the electronic device After the electronic device marks the third data to the preset identification bit by using the visual identifier, if the user needs to modify the input data, the user inputs a recovery instruction. At this time, the electronic device receives the recovery instruction input by the user according to the visual identification, and the electronic device restores the third data on the current data according to the recovery instruction.
  • a method for data recovery is to compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data and the second data are If the data is not identical, the third data is recorded, where the third data includes the modified data of the first data, and the visual identifier corresponding to the third data is marked on the preset identifier, so that if the user is received according to the Visually identifying the input recovery command, then restoring the third data on the current data according to the recovery instruction.
  • the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier.
  • the identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
  • An embodiment of the present invention provides a data recovery method. As shown in FIG. 3, the method includes:
  • the second data obtained after the electronic device acquires the first data and modifies the first data.
  • a data recovery method provided by an embodiment of the present invention, when a user uses one data for editing, first, after the electronic device acquires the first data and modifies the first data, Second data.
  • the second data is periodically or non-periodically obtained according to the user policy.
  • the electronic device compares whether the first data and the second data are the same.
  • the electronic device records the third data.
  • the third data includes the modified data of the first data.
  • the electronic device After acquiring the first data and the second data obtained after modifying the first data, the electronic device needs to compare whether the first data and the second data are the same. If the first data and the second data are not completely the same, the third data is recorded. .
  • the electronic device compares whether the first data and the second data are the same, and if the first data and the second data are not identical. After the electronic device acquires the first data, and before acquiring the second data, the user edits and uses the first data. The electronic device records the modified data of the first data, that is, the third data.
  • the electronic device can acquire new data periodically or non-periodically, and at this time, the electronic device acquires The data is compared with the data obtained in the previous time. If the two data are not identical, it means that between the two data acquisitions by the electronic device, the data is edited and modified by the user, and the electronic device records the modified data.
  • the electronic device marks the visual identifier corresponding to the third data to the preset identifier.
  • the electronic device compares the first data with the second data obtained after modifying the first data. If the first data and the second data are not identical, the third data is marked to the preset identifier by using the visual identifier.
  • the third data is marked on the preset identifier by using a visual identifier, where the identifier is specifically a navigation bar.
  • the visual identifier can be a color or a symbol.
  • the identifier bit may be a navigation bar, and the flag bit may also be another location capable of marking the third data, so that the user can quickly locate the third data.
  • Navigation marks the invention is not limited.
  • the electronic device does not record the third data.
  • the electronic device After obtaining the first data and the second data obtained after modifying the first data, the electronic device compares whether the first data and the second data are the same. If the first data and the second data are identical, the electronic device records After a data, and before the second data is recorded, the user does not edit or modify the data, or the user edits the data, but the data does not change, the electronic device does not record the third data.
  • the electronic device obtains the second data obtained after modifying the first data, and compares whether the first data and the second data are the same, and periodically or non-periodically acquires data according to the user policy.
  • the data obtained by the electronic device is compared with the data obtained in the previous time. If the two data are identical, the user does not edit or modify the data between the two data acquisitions by the electronic device, or the user The data has been edited and modified, but the data has not changed, and the data that has not been modified needs to be recorded by the electronic device.
  • the electronic device obtains the third data indicated by the query instruction according to the query instruction, if the query instruction input by the user according to the visual identifier is received.
  • the electronic device After the electronic device marks the third data to the identification bit using the visual identification, if the user needs to view the marked third data, the query instruction is input according to the visual identification. If the electronic device receives the query instruction input by the user according to the visual identifier, the third data indicated by the query instruction is obtained according to the query instruction.
  • the electronic device is the third number according to the third data and the resolution of the display screen.
  • the pixel points required to display the third data are allocated, wherein the resolution indicates the number of pixels of the display screen, and the number of pixels required to display the third data is not greater than the number of pixels of the display screen.
  • resolution refers to the precision of the screen image, that is, the number of pixels that the display can display. Since the dots, lines and faces on the screen of the display are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information that can be displayed in the same screen area, so the resolution is very important.
  • One of the performance indicators With the electronic device, the resolution of the current display can be obtained.
  • a display with a resolution of 1 024 x 960 indicates a horizontal line on the display. It contains 1,024 pixels, and there are 960 horizontal lines, that is, the display has an upstream number of 1,024 lines, the ⁇ J number is 960 ⁇ J, and the resolution is 640 x 480. It represents a horizontal line on the display. 640 pixels, there are 480 horizontal lines, that is, the display has 640 lines and the number of columns is 480 columns.
  • the electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the data, wherein the resolution indicates the pixel of the display screen.
  • the number of pixels required to display data is not greater than the number of pixels of the display.
  • the electronic device needs to allocate the pixels required for the information of all the third data, for example, the current display has 1 000 pixels, and the third data has 10 bytes.
  • the electronic device can allocate less than or equal to 100 pixels for each byte according to a preset rule set by the user, that is, display one data by less than or equal to 100 pixels, and then display a third under one display screen. data.
  • the electronic device displays the third data through the display screen.
  • the electronic device acquires according to the query instruction.
  • the third data indicated by the instruction instruction, and the third data is displayed on the display screen after the pixel required to display the third data is allocated to the third data according to the third data and the resolution of the display screen.
  • the time for recording the third data may be simultaneously displayed, so that the user can more easily select the third data that needs to be restored. Improve the user experience.
  • the electronic device restores the third data on the current data according to the recovery instruction.
  • the electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the third data for the third data, and after displaying the third data through the display screen, if the user needs to recover the data, the user according to the visualization Identify the input recovery command. If the recovery instruction input by the user according to the visual identification is received, the electronic device restores the third data on the current data according to the restoration instruction.
  • the electronic device does not restore the third data on the current data.
  • the electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the third data for the third data, and after displaying the third data through the display screen, if the user does not need to recover the data, the user does not Enter the recovery instruction based on the visual ID. If the recovery instruction input by the user according to the visual identification is not received, the electronic device does not restore the third data on the current data.
  • the electronic device acquires the original state of the text as the first data, as shown in FIG. 4, and then the user edits the text, and the electronic device sets the period for acquiring the data to be 10 Second, after 10 seconds of acquiring the first data, the electronic device acquires the second data obtained after modifying the first data, as shown in FIG. 4 . Whether the electronic device compares the first data with the second data, and the electronic device knows that the first data is identical to the second data, and does not record any data; after that, the electronic device periodically acquires data according to the user policy, and obtains the second After 10 seconds of data, the electronic device acquires new data, as shown in FIG.
  • the electronic device compares the data with the second data, and compares the new data and the second data acquired by the electronic device, and the electronic device learns to obtain the data.
  • the new data is not exactly the same as the second data, and the third data is recorded (as indicated by the arrow in FIG. 5), wherein the third data includes the modified data of the second data, and the third record is recorded.
  • the electronic device marks the visual identifier corresponding to the third data to a preset identification bit (such as the black mark below FIG. 5); after that, the electronic device periodically compares the data, records the modified data, and The time of the modified data is recorded, and the modified data is marked with a visual identifier to the preset identification bit. As shown in FIG. 6, two modified data are marked on the preset mark bit.
  • the electronic device receives the query instruction input by the user according to the visual identifier, the third data indicated by the query instruction is obtained according to the query instruction, and according to The third data and the resolution of the display screen allocate the pixel points required for displaying the third data for the third data, wherein the resolution indicates the number of pixels of the display screen, and the number of pixels required to display the third data The number is not greater than the number of pixels of the display, and the third data is displayed through the display.
  • the recovery instruction is not input according to the visual identifier, and the electronic device does not restore the third data on the current data, and the data is still as shown in FIG. 6; when the user finds that the third data needs to be restored. , the input recovery command is input according to the visual identifier, and the electronic device restores the third data on the current data, and the data is restored as shown in FIG. 8 .
  • the input query command may specifically be a preset identifier bit on the touch navigation bar (as indicated by the arrow in FIG. 7 ), so that the electronic device can display Querying the third data indicated by the instruction; when the user inputs the recovery instruction according to the visual identifier, the preset identifier bit on the touch navigation bar may be changed from the preset identification bit on the touch navigation bar to make the electronic device Receiving the recovery instruction input by the user according to the visual identifier, recovering the third data on the current data according to the recovery instruction.
  • a method for data recovery is to compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data and the second data are Not identical, the third data is recorded, wherein the third data includes the modified data of the first data, and the third data pair
  • the visual identification mark should be marked to the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction.
  • An embodiment of the present invention further provides an electronic device 1 .
  • the electronic device 1 includes:
  • the obtaining module 10 is configured to obtain the first data and the second data obtained by modifying the first data.
  • the comparison module 1 1 is configured to compare whether the first data and the second data are the same.
  • the recording module 12 is configured to record third data if the first data and the second data are not completely identical, wherein the third data includes the modified data of the first data.
  • the execution module 13 is configured to mark the visual identifier corresponding to the third data to the preset identifier bit, so that if the recovery instruction input by the user according to the visual identifier is received, the third data is restored on the current data according to the resume instruction.
  • the recording module 12 is further configured to not record the third data if the first data and the second data are completely the same.
  • the executing module 13 is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the third data is not restored on the current data.
  • the electronic device 1 further includes:
  • the obtaining module 10 is further configured to: if the query instruction input by the user according to the visual identifier is received, obtain the third data indicated by the query instruction according to the query instruction.
  • the processing module 14 is configured to allocate, according to the third data and the resolution of the display screen, a pixel point required for displaying the third data for the third data, where the resolution indicates the number of pixels of the display screen, and the third data is displayed.
  • the number of pixels required is not greater than the number of pixels of the display.
  • the display module 15 is configured to display the third data through the display screen.
  • the display module 15 is further configured to display the third data by using a display screen. time.
  • the obtaining module 10 is specifically configured to periodically or non-periodically acquire the second data obtained after modifying the first data.
  • the preset identifier is specifically a navigation bar.
  • An electronic device includes an obtaining module, configured to acquire first data and second data obtained by modifying the first data, and a comparison module is configured to compare whether the first data and the second data are the same, and record a module, configured to record third data if the first data and the second data are not identical, wherein the third data includes modified data of the first data, and an execution module, configured to correspond to the third data
  • the visual identification mark is marked on the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction.
  • the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier.
  • the identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
  • the embodiment of the present invention further provides an electronic device 2, as shown in FIG. 11, the electronic device 2 includes:
  • the receiver 20 is configured to acquire the first data and the second data obtained after modifying the first data.
  • the processor 21 is configured to compare whether the first data and the second data are the same.
  • the memory 22 is configured to record the third data if the first data and the second data are not completely identical, wherein the third data includes the modified data of the first data.
  • the processor 21 is further configured to mark the visual identifier corresponding to the third data to the preset identifier, so that if the recovery instruction input by the user according to the visual identifier is received, the third data is restored on the current data according to the resume instruction. .
  • the memory 22 is further configured to not record the third data if the first data and the second data are identical.
  • the processor 21 is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the third data is not restored on the current data. Further, as shown in FIG. 12, the electronic device 2 further includes:
  • the receiver 20 is further configured to: if the query instruction input by the user according to the visual identifier is received, obtain the third data indicated by the query instruction according to the query instruction.
  • the processor 21 is configured to allocate, according to the third data and the resolution of the display screen, a pixel point required to display the third data for the third data, where the resolution indicates the number of pixels of the display screen, and the third data is displayed.
  • the number of pixels required is not greater than the number of pixels of the display.
  • the display 23 is configured to display the third data through the display screen.
  • the display 23 is further configured to display a time for recording the third data through the display screen.
  • the receiver 20 is specifically configured to periodically or aperiodically acquire the second data obtained after modifying the first data.
  • the preset identifier is specifically a navigation bar.
  • An electronic device includes a receiver, configured to acquire first data and second data obtained by modifying the first data, and a processor, configured to compare whether the first data and the second data are the same, the memory And, if the first data and the second data are not completely the same, recording the third data, where the third data includes the modified data of the first data, and the processor, and is further configured to correspond to the third data
  • the visual identification mark is marked on the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction.
  • the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier.
  • the identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.

Abstract

The present invention relates to the communications field. Embodiments of the present invention provide a data recovery method and an electronic device. Whether first data is the same as second data is compared, and modification is marked on a preset flag by using a visible identifier, so that users can select by themselves a record needing to be restored, and user experience and data edition efficiency are improved. The method comprises: acquiring first data, and second data obtained after the first data is modified; comparing whether the first data is the same as the second data; if the first data is completely different from the second data, recording third data, the third data comprising modified data in the first data; and marking, on a preset flag, a visible identifier corresponding to the third data, so that if a recovery instruction entered according to the visible identifier by a user is received, the third data is recovered on the basis of current data according to the recovery instruction.

Description

一种数据恢复的方法及电子设备  Data recovery method and electronic device
本申请要求于 2013 年 07 月 08 日提交中国专利局、 申请号为 2013 10284336.0、 发明名称为 "一种数据恢复的方法及电子设备" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 This application claims priority to Chinese Patent Application No. 2013 10284336.0, entitled "A Method for Data Recovery and Electronic Devices", filed on July 8, 2013, the entire contents of which are incorporated by reference. In this application. Technical field
本发明涉及通信领域, 尤其涉及一种数据恢复的方法及电子设 备。  The present invention relates to the field of communications, and in particular, to a data recovery method and an electronic device.
背景技术 Background technique
随着科技的不断进步, 特别是集成电路技术的飞速发展, 移动 终端已经拥有了强大的处理能力, 并且正在从简单的通话工具变为 一个综合信息处理平台, 在移动终端上处理文本、 图像等数据相比 于在传统的实体资料上处理数据, 有着便携性、 及时性等特点, 因 此, 在移动终端处理数据也越来越被广大用户所接受。 用户在使用各种终端对信息进行编辑修改时,常常会出现错误 操作。 当用户 出现错误操作时, 通常希望能够快速撤销错误操作, 将数据恢复到出现错误操作之前的状态。若不能将数据恢复到出现 错误操作之前的状态, 用户就需要重新输入。 尤其当输入设备为移 动终端时, 由于移动终端输入速度慢, 因此大大影响了编辑数据的 效率。  With the continuous advancement of technology, especially the rapid development of integrated circuit technology, mobile terminals already have powerful processing capabilities, and are changing from simple call tools to a comprehensive information processing platform to process texts, images, etc. on mobile terminals. Compared with the processing of data on traditional physical data, data has the characteristics of portability and timeliness. Therefore, processing data in mobile terminals is increasingly accepted by users. When users use various terminals to edit and modify information, they often have erroneous operations. When a user has an error, it is often desirable to be able to quickly undo the error and restore the data to the state it was in before the error occurred. If the data cannot be restored to the state before the error operation occurred, the user will need to re-enter. Especially when the input device is a mobile terminal, the efficiency of editing data is greatly affected due to the slow input speed of the mobile terminal.
现有技术中当文本每发生一次改动, CPU ( Central Processing Unit , 中央处理器) 就会自动记录一条记录, 如图 1 所示, 当出现 错误操作时, C P U会按照记录的先后顺序通过线性回退的方式恢复 错误操作, 即按照现状线性回退到历史状态 3、 历史状态 2、 历史状 态 1 的顺序恢复错误操作。 然而, 在实现数据恢复的过程中, 越久 之前改动的数据, 用户需要操作的步骤就越多, 同时, 当用户需要 恢复前几步的数据时, 线性回退的方式会把中间用户不想恢复的部 分也恢复了, 进而影响了编辑数据的效率。 发明内容 In the prior art, each time the text is changed, the CPU (Central Processing Unit) automatically records a record. As shown in Figure 1, when an error occurs, the CPU passes the linear return in the order of the records. The method of retreating restores the error operation, that is, the error operation is linearly returned to the historical state 3, the historical state 2, and the historical state 1 in the order of the current state. However, in the process of realizing data recovery, the longer the data is changed, the more steps the user needs to operate. At the same time, when the user needs to recover the data of the first few steps, the linear regression method will not restore the intermediate user. Part of it has also been restored, which in turn affects the efficiency of editing data. Summary of the invention
本发明的实施例提供一种数据恢复的方法及电子设备, 能够通 过对比第一数据与第二数据是否相同, 并将改动通过可视化标识标 记到预设标识位上, 从而使用户 自行选择需要还原的记录, 提高了 用户体验感和编辑数据的效率。  An embodiment of the present invention provides a data recovery method and an electronic device, which can compare whether the first data and the second data are the same, and mark the change to the preset identifier by using the visual identifier, so that the user selects and needs to restore. The record improves the user experience and the efficiency of editing data.
为达到上述目 的, 本发明的实施例釆用如下技术方案: 第一方面, 本发明实施例提供一种数据恢复的方法, 该方法包 括:  In order to achieve the above, the embodiment of the present invention uses the following technical solution: In a first aspect, an embodiment of the present invention provides a data recovery method, where the method includes:
获取第一数据及修改所述第一数据后所得的第二数据; 对比所述第一数据与第二数据是否相同;  Acquiring the first data and the second data obtained after modifying the first data; comparing whether the first data and the second data are the same;
若所述第一数据与第二数据不完全相同, 则记录第三数据, 其 中, 所述第三数据包括所述第一数据的被修改的数据;  If the first data and the second data are not completely identical, the third data is recorded, wherein the third data includes the modified data of the first data;
将与所述第三数据对应的可视化标识标记到预设标识位上, 以 使得若接收到用户根据所述可视化标识输入的恢复指令, 则根据所 述恢复指令在当前数据上恢复所述第三数据。  Marking, by the visual identifier corresponding to the third data, a preset identifier, so that if a recovery instruction input by the user according to the visual identifier is received, the third data is restored according to the recovery instruction. data.
在第一种可能的实现方式中, 根据第一方面, 若所述第一数据 与第二数据完全相同, 则不记录所述第三数据。  In a first possible implementation manner, according to the first aspect, if the first data and the second data are identical, the third data is not recorded.
在第二种可能的实现方式中, 结合第一方面或第一种可能的实 现方式, 若未接收到用户根据所述可视化标识输入的恢复指令, 则 不在当前数据上恢复所述第三数据。  In a second possible implementation manner, in combination with the first aspect or the first possible implementation manner, if the recovery instruction input by the user according to the visual identifier is not received, the third data is not restored on the current data.
在第三种可能的实现方式中, 结合第一方面或第一种可能的实 现方式或第二种可能的实现方式, 在所述将与所述第三数据对应的 可视化标识标记到预设标识位上之后, 所述方法还包括:  In a third possible implementation manner, in combination with the first aspect or the first possible implementation manner or the second possible implementation manner, the visual identifier corresponding to the third data is marked to the preset identifier After the bit, the method further includes:
若接收到用户根据所述可视化标识输入的查询指令, 则根据所 述查询指令获取所述查询指令所指示的第三数据;  And if the query instruction input by the user according to the visual identifier is received, acquiring the third data indicated by the query instruction according to the query instruction;
根据所述第三数据以及显示屏的分辨率, 为所述第三数据分配 显示所述第三数据所需的像素点, 其中, 所述分辨率指示所述显示 屏的像素点的个数, 所述显示所述第三数据所需的像素点的个数不 大于所述显示屏的像素点的个数; 通过所述显示屏显示所述第三数据。 And assigning, to the third data, a pixel point required to display the third data according to the third data and a resolution of the display screen, where the resolution indicates a number of pixels of the display screen, The number of pixels required to display the third data is not greater than the number of pixels of the display screen; The third data is displayed through the display screen.
在第四种可能的实现方式中, 结合第一方面或第一种可能的实 现方式至第三种可能的实现方式, 所述通过所述显示屏显示所述第 三数据, 还包括:  In a fourth possible implementation, in combination with the first aspect or the first possible implementation manner to the third possible implementation manner, the displaying the third data by using the display screen further includes:
通过所述显示屏显示记录所述第三数据的时间。  The time at which the third data is recorded is displayed through the display screen.
在第五种可能的实现方式中, 结合第一方面或第一种可能的实 现方式至第四种可能的实现方式, 所述获取修改所述第一数据后所 得的第二数据, 具体包括:  In a fifth possible implementation manner, in combination with the first aspect or the first possible implementation manner to the fourth possible implementation manner, the obtaining the second data obtained after modifying the first data includes:
周期性或非周期性地获取修改所述第一数据后所得的第二数 据。  The second data obtained after modifying the first data is acquired periodically or non-periodically.
在第六种可能的实现方式中, 结合第一方面或第一种可能的实 现方式至第五种可能的实现方式, 所述预设标识位具体为导航条。  In a sixth possible implementation manner, in combination with the first aspect or the first possible implementation manner to the fifth possible implementation manner, the preset identifier bit is specifically a navigation bar.
第二方面, 本发明实施例还提供一种电子设备, 包括: 获取模块, 用于获取第一数据及修改所述第一数据后所得的第 二数据;  In a second aspect, an embodiment of the present invention further provides an electronic device, including: an obtaining module, configured to acquire first data and second data obtained by modifying the first data;
对比模块, 用于对比所述第一数据与第二数据是否相同; 记录模块, 用于若所述第一数据与第二数据不完全相同, 则记 录第三数据, 其中, 所述第三数据包括所述第一数据的被修改的数 据;  a comparison module, configured to compare whether the first data and the second data are the same; the recording module, configured to: if the first data and the second data are not identical, record the third data, where the third data The modified data including the first data;
执行模块, 用于将与所述第三数据对应的可视化标识标记到预 设标识位上, 以使得若接收到用户根据所述可视化标识输入的恢复 指令, 则根据所述恢复指令在当前数据上恢复所述第三数据。  An execution module, configured to mark the visual identifier corresponding to the third data to a preset identifier, so that if a recovery instruction input by the user according to the visual identifier is received, the current data is determined according to the recovery instruction. The third data is restored.
在第一种可能的实现方式中, 根据第二方面, 所述记录模块, 还用于若所述第一数据与第二数据完全相同, 则不记录所述第三数 据。  In a first possible implementation, according to the second aspect, the recording module is further configured to: if the first data and the second data are identical, the third data is not recorded.
在第二种可能的实现方式中, 结合第二方面或第一种可能的实 现方式, 所述执行模块, 还用于若未接收到用户根据所述可视化标 识输入的恢复指令, 则不在当前数据上恢复所述第三数据。  In a second possible implementation manner, in combination with the second aspect or the first possible implementation manner, the execution module is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the current data is not in the current data. The third data is restored.
在第三种可能的实现方式中, 结合第二方面或第一种可能的实 现方式或第二种可能的实现方式, 所述电子设备, 还包括: 所述获取模块, 还用于若接收到用户根据所述可视化标识输入 的查询指令, 则根据所述查询指令获取所述查询指令所指示的第三 数据; In a third possible implementation, combining the second aspect or the first possible implementation In the current mode or the second possible implementation, the electronic device further includes: the acquiring module, configured to: if the query instruction input by the user according to the visual identifier is received, obtain the Querying the third data indicated by the instruction;
处理模块, 用于根据所述第三数据以及显示屏的分辨率, 为所 述第三数据分配显示所述第三数据所需的像素点, 其中, 所述分辨 率指示所述显示屏的像素点的个数, 所述显示所述第三数据所需的 像素点的个数不大于所述显示屏的像素点的个数;  a processing module, configured to allocate, according to the third data and a resolution of the display screen, a pixel point required to display the third data, where the resolution indicates a pixel of the display screen a number of pixels, the number of pixels required to display the third data is not greater than the number of pixels of the display screen;
显示模块, 用于通过所述显示屏显示所述第三数据。  a display module, configured to display the third data through the display screen.
在第四种可能的实现方式中, 结合第二方面或第一种可能的实 现方式至第三种可能的实现方式, 所述显示模块, 还用于通过所述 显示屏显示记录所述第三数据的时间。  In a fourth possible implementation, in combination with the second aspect or the first possible implementation manner to the third possible implementation manner, the display module is further configured to display, by using the display screen, the third The time of the data.
在第五种可能的实现方式中, 结合第二方面或第一种可能的实 现方式至第四种可能的实现方式, 所述获取模块, 具体用于周期性 或非周期性地获取修改所述第一数据后所得的第二数据。  In a fifth possible implementation, in combination with the second aspect or the first possible implementation manner to the fourth possible implementation manner, the acquiring module is specifically configured to periodically or aperiodically acquire the modified The second data obtained after the first data.
在第六种可能的实现方式中, 结合第二方面或第一种可能的实 现方式至第五种可能的实现方式, 所述预设标识位具体为导航条。  In a sixth possible implementation, in combination with the second aspect or the first possible implementation manner to the fifth possible implementation manner, the preset identifier bit is specifically a navigation bar.
本发明实施例所提供的一种数据恢复的方法及电子设备, 通过 获取第一数据及修改第一数据后所得的第二数据, 对比第一数据与 第二数据是否相同, 若第一数据与第二数据不完全相同, 则记录第 三数据, 其中, 第三数据包括第一数据的被修改的数据, 以及将与 第三数据对应的可视化标识标记到预设标识位上, 以使得若接收到 用户根据可视化标识输入的恢复指令, 则根据恢复指令在当前数据 上恢复第三数据。 通过该方案, 由于电子设备能够通过对比第一数 据与第二数据是否相同, 若第一数据与第二数据不完全相同, 则记 录第三数据, 并且通过可视化标识将第三数据标记到预设标识位上, 从而使用户 自行选择需要还原的记录, 提高了用户体验感和编辑数 据的效率。  The data recovery method and the electronic device provided by the embodiment of the present invention compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data is If the second data is not completely the same, the third data is recorded, where the third data includes the modified data of the first data, and the visual identifier corresponding to the third data is marked on the preset identifier, so that if the receiving To the recovery instruction input by the user according to the visual identification, the third data is restored on the current data according to the recovery instruction. With this solution, since the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier. The identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于 本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以 根据这些附图获得其他的附图。 DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1 为现有技术中通过线性回退的方式恢复错误操作的顺序关 系;  Figure 1 shows the sequence relationship for recovering erroneous operations by means of linear back-off in the prior art;
图 2为本发明实施例提供的数据恢复的方法的流程示意图一; 图 3为本发明实施例提供的数据恢复的方法的流程示意图二; 图 4为本发明实施例提供的数据恢复的方法的过程示意图一; 图 5为本发明实施例提供的数据恢复的方法的过程示意图二; 图 6本发明实施例提供的数据恢复的方法的过程示意图三; 图 7本发明实施例提供的数据恢复的方法的过程示意图四; 图 8本发明实施例提供的数据恢复的方法的过程示意图五; 图 9本发明实施例提供的电子设备的结构示意图一;  2 is a schematic flowchart 1 of a method for data recovery according to an embodiment of the present invention; FIG. 3 is a schematic flowchart 2 of a method for data recovery according to an embodiment of the present invention; FIG. FIG. 5 is a schematic diagram of a process of a data recovery method according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a process of a data recovery method according to an embodiment of the present invention; FIG. FIG. 8 is a schematic diagram of a process of the data recovery method provided by the embodiment of the present invention; FIG. 9 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention;
图 10本发明实施例提供的电子设备的结构示意图二;  FIG. 10 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present invention;
图 1 1 为本发明实施例提供的电子装置的结构示意图一; 图 12为本发明实施例提供的电子装置的结构示意图二。  FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention; FIG. 12 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本 领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他 实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种数据恢复的方法, 如图 2所示, 该方法 包括:  An embodiment of the present invention provides a data recovery method. As shown in FIG. 2, the method includes:
S 101、 电子设备获取第一数据及修改第一数据后所得的第二数 据。  S101. The second data obtained after the electronic device acquires the first data and modifies the first data.
随着科技的不断进步, 特别是集成电路技术的飞速发展, 移动 终端已经拥有了强大的处理能力, 并且正在从简单的通话工具变为 一个综合信息处理平台, 在移动终端上处理文本、 图像等数据相比 于在传统的实体资料上处理数据, 有着便携性、 及时性等特点, 因 此, 在移动终端处理数据也越来越被广大用户所接受。 然而, 用户 在使用各种终端对信息进行编辑修改时, 常常会出现错误操作。 当 用户 出现错误操作时, 通常希望能够快速撤销错误操作, 将数据恢 复到出现错误操作之前的状态。 若不能将数据恢复到出现错误操作 之前的状态, 用户就需要重新输入。 尤其当输入设备为移动终端时, 由于移动终端输入速度慢, 因此大大影响了编辑数据的效率。 With the continuous advancement of technology, especially the rapid development of integrated circuit technology, mobile The terminal already has powerful processing capabilities, and is changing from a simple call tool to an integrated information processing platform. Processing text, images and other data on the mobile terminal is more portable than processing data on traditional physical data. Timeliness and other characteristics, therefore, the processing of data in mobile terminals is increasingly accepted by the majority of users. However, when users use various terminals to edit and modify information, error operations often occur. When a user has an error, it is often desirable to be able to quickly undo the error and restore the data to the state it was in before the error occurred. If the data cannot be restored to the state it was in before the error occurred, the user will need to re-enter. Especially when the input device is a mobile terminal, since the input speed of the mobile terminal is slow, the efficiency of editing data is greatly affected.
本发明实施例提供的一种数据恢复的方法, 当用户在编辑使用 一个数据时, 首先电子设备获取第一数据及修改第一数据后所得的 第二数据。  A data recovery method is provided by the embodiment of the present invention. When a user uses one data for editing, the electronic device first acquires the first data and the second data obtained after modifying the first data.
5102、 电子设备对比第一数据与第二数据是否相同。  5102. The electronic device compares whether the first data and the second data are the same.
5103、 若第一数据与第二数据不完全相同, 则电子设备记录第 三数据。  5103. If the first data and the second data are not completely the same, the electronic device records the third data.
其中, 第三数据包括第一数据的被修改的数据。  The third data includes the modified data of the first data.
电子设备在获取了第一数据和修改第一数据后所得的第二数据 之后, 需要对比第一数据与第二数据是否相同, 若第一数据与第二 数据不完全相同, 则记录第三数据。  After acquiring the first data and the second data obtained after modifying the first data, the electronic device needs to compare whether the first data and the second data are the same. If the first data and the second data are not completely the same, the third data is recorded. .
需要说明的是, 电子设备在获取了第一数据和修改第一数据后 所得的第二数据之后, 对比第一数据与第二数据是否相同, 若第一 数据与第二数据不完全相同, 则说明电子设备在获取了第一数据之 后, 且在获取第二数据之前, 用户对第一数据进行了编辑使用。 电 子设备记录第一数据的被修改的数据, 即第三数据。  It should be noted that, after acquiring the first data and the second data obtained after modifying the first data, the electronic device compares whether the first data and the second data are the same, and if the first data and the second data are not identical, After the electronic device acquires the first data, and before acquiring the second data, the user edits and uses the first data. The electronic device records the modified data of the first data, that is, the third data.
5104、 电子设备将与第三数据对应的可视化标识标记到预设标 识位上, 以使得若接收到用户根据可视化标识输入的恢复指令, 则 电子设备根据恢复指令在当前数据上恢复第三数据。  5104. The electronic device marks the visual identifier corresponding to the third data to the preset identification bit, so that if the recovery instruction input by the user according to the visual identifier is received, the electronic device restores the third data on the current data according to the recovery instruction.
电子设备在记录第三数据之后, 会将与第三数据对应的可视化 标识标记到预设标识位上, 其中, 预设标识位具体为导航条。 通过 在导航条上使用可视化标识标记第三数据, 用户可以快速定位第三 数据的位置, 查看第三数据的内容, 以使得用户对需要恢复的数据 进行操作。 After the third data is recorded, the electronic device marks the visual identifier corresponding to the third data to the preset identifier, where the preset identifier is specifically a navigation bar. Pass By using the visual identifier to mark the third data on the navigation bar, the user can quickly locate the location of the third data and view the content of the third data, so that the user operates on the data that needs to be restored.
需要补充的是, 本发明实施例所提供的一种数据恢复的方法, 标识位可以为导航条, 标记位还可以是其他能够标记第三数据, 以 使得用户能够快速定位第三数据的位置的导航标记, 本发明不做限 制。  It should be noted that, in a data recovery method provided by the embodiment of the present invention, the identifier bit may be a navigation bar, and the flag bit may also be another location capable of marking the third data, so that the user can quickly locate the third data. Navigation marks, the invention is not limited.
当电子设备使用可视化标识将第三数据标记到预设标识位上之 后, 若用户需要对输入的数据进行修改时, 用户输入恢复指令。 此 时电子设备接收到用户根据可视化标识输入的恢复指令, 则电子设 备根据恢复指令在当前数据上恢复第三数据。  After the electronic device marks the third data to the preset identification bit by using the visual identifier, if the user needs to modify the input data, the user inputs a recovery instruction. At this time, the electronic device receives the recovery instruction input by the user according to the visual identification, and the electronic device restores the third data on the current data according to the recovery instruction.
具体的, 电子设备如何根据恢复指令在当前数据上恢复第三数 据将在下述实施例中进行完整描述, 此处不再赘述。  Specifically, how the electronic device recovers the third data on the current data according to the recovery instruction will be fully described in the following embodiments, and details are not described herein again.
本发明实施例所提供的一种数据恢复的方法, 通过获取第一数 据及修改第一数据后所得的第二数据, 对比第一数据与第二数据是 否相同, 若第一数据与第二数据不完全相同, 则记录第三数据, 其 中, 第三数据包括第一数据的被修改的数据, 以及将与第三数据对 应的可视化标识标记到预设标识位上, 以使得若接收到用户根据可 视化标识输入的恢复指令, 则根据恢复指令在当前数据上恢复第三 数据。 通过该方案, 由于电子设备能够通过对比第一数据与第二数 据是否相同, 若第一数据与第二数据不完全相同, 则记录第三数据, 并且通过可视化标识将第三数据标记到预设标识位上, 从而使用户 自行选择需要还原的记录, 提高了用户体验感和编辑数据的效率。  A method for data recovery provided by the embodiment of the present invention is to compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data and the second data are If the data is not identical, the third data is recorded, where the third data includes the modified data of the first data, and the visual identifier corresponding to the third data is marked on the preset identifier, so that if the user is received according to the Visually identifying the input recovery command, then restoring the third data on the current data according to the recovery instruction. With this solution, since the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier. The identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
本发明实施例提供一种数据恢复的方法, 如图 3 所示, 该方法 包括:  An embodiment of the present invention provides a data recovery method. As shown in FIG. 3, the method includes:
S201、 电子设备获取第一数据及修改第一数据后所得的第二数 据。  S201. The second data obtained after the electronic device acquires the first data and modifies the first data.
本发明实施例提供的一种数据恢复的方法, 当用户在编辑使用 一个数据时, 首先电子设备获取第一数据及修改第一数据后所得的 第二数据。 A data recovery method provided by an embodiment of the present invention, when a user uses one data for editing, first, after the electronic device acquires the first data and modifies the first data, Second data.
需要说明的是, 本发明实施例提供的数据恢复的方法, 在电子 设备获取到第一数据之后, 根据用户策略, 周期性或非周期性地获 取第二数据。  It should be noted that, in the data recovery method provided by the embodiment of the present invention, after the electronic device obtains the first data, the second data is periodically or non-periodically obtained according to the user policy.
5202、 电子设备对比第一数据与第二数据是否相同。  5202. The electronic device compares whether the first data and the second data are the same.
5203、 若第一数据与第二数据不完全相同, 则电子设备记录第 三数据。  5203. If the first data and the second data are not completely the same, the electronic device records the third data.
其中, 第三数据包括第一数据的被修改的数据。  The third data includes the modified data of the first data.
电子设备在获取了第一数据和修改第一数据后所得的第二数据 之后, 需要对比第一数据与第二数据是否相同, 若第一数据与第二 数据不完全相同, 则记录第三数据。  After acquiring the first data and the second data obtained after modifying the first data, the electronic device needs to compare whether the first data and the second data are the same. If the first data and the second data are not completely the same, the third data is recorded. .
需要说明的是, 电子设备在获取了第一数据和修改第一数据后 所得的第二数据之后, 对比第一数据与第二数据是否相同, 若第一 数据与第二数据不完全相同, 则说明电子设备在获取了第一数据之 后, 且在获取第二数据之前, 用户对第一数据进行了编辑使用。 电 子设备记录第一数据的被修改的数据, 即第三数据。  It should be noted that, after acquiring the first data and the second data obtained after modifying the first data, the electronic device compares whether the first data and the second data are the same, and if the first data and the second data are not identical, After the electronic device acquires the first data, and before acquiring the second data, the user edits and uses the first data. The electronic device records the modified data of the first data, that is, the third data.
需要补充的是, 电子设备在获取了第二数据, 对比第一数据与 第二数据之后, 根据用户策略, 电子设备能够周期性或非周期性地 获取新的数据, 此时, 电子设备获取到的数据与前一次获取到的数 据进行对比, 若两次数据不完全相同, 则说明在电子设备获取这两 次数据之间, 数据被用户进行了编辑修改, 则电子设备记录被修改 的数据。  It should be added that after the electronic device acquires the second data and compares the first data with the second data, according to the user policy, the electronic device can acquire new data periodically or non-periodically, and at this time, the electronic device acquires The data is compared with the data obtained in the previous time. If the two data are not identical, it means that between the two data acquisitions by the electronic device, the data is edited and modified by the user, and the electronic device records the modified data.
5204、 电子设备将与第三数据对应的可视化标识标记到预设标 识位上。  5204. The electronic device marks the visual identifier corresponding to the third data to the preset identifier.
电子设备对比第一数据与修改第一数据后所得的第二数据是否 相同, 若第一数据与第二数据不完全相同, 则使用可视化标识将第 三数据标记到预设标识位上。  The electronic device compares the first data with the second data obtained after modifying the first data. If the first data and the second data are not identical, the third data is marked to the preset identifier by using the visual identifier.
需要说明的是, 使用可视化标识将第三数据标记到预设标识位 上, 其中, 标识位具体为导航条。 通过在导航条上使用可视化标识 标记第三数据, 用户可以快速定位第三数据的位置, 查看第三数据 的内容, 以使得用户对需要恢复的数据进行操作, 其中, 可视化标 识可以为颜色或符号。 It should be noted that the third data is marked on the preset identifier by using a visual identifier, where the identifier is specifically a navigation bar. By using a visual identity on the navigation bar By marking the third data, the user can quickly locate the location of the third data and view the content of the third data, so that the user operates on the data that needs to be restored, wherein the visual identifier can be a color or a symbol.
需要补充的是, 本发明实施例所提供的一种数据恢复的方法, 标识位可以为导航条, 标记位还可以是其他能够标记第三数据, 以 使得用户能够快速定位第三数据的位置的导航标记, 本发明不做限 制。  It should be noted that, in a data recovery method provided by the embodiment of the present invention, the identifier bit may be a navigation bar, and the flag bit may also be another location capable of marking the third data, so that the user can quickly locate the third data. Navigation marks, the invention is not limited.
5205、 若第一数据与第二数据完全相同, 则电子设备不记录第 三数据。  5205. If the first data is identical to the second data, the electronic device does not record the third data.
电子设备在获取了第一数据和修改第一数据后所得的第二数据 之后, 对比第一数据与第二数据是否相同, 若第一数据与第二数据 完全相同, 则说明电子设备在记录第一数据之后, 且在记录第二数 据之前, 用户没有对该数据进行编辑修改, 或者用户虽然对该数据 进行了编辑修改, 但是数据却没有发生变化, 则电子设备不记录第 三数据。  After obtaining the first data and the second data obtained after modifying the first data, the electronic device compares whether the first data and the second data are the same. If the first data and the second data are identical, the electronic device records After a data, and before the second data is recorded, the user does not edit or modify the data, or the user edits the data, but the data does not change, the electronic device does not record the third data.
需要补充的是, 电子设备在获取了修改第一数据后所得的第二 数据, 对比第一数据与第二数据是否相同之后, 根据用户策略, 周 期性或非周期性地获取数据, 此时, 电子设备获取到的数据与前一 次获取到的数据进行对比, 若两次数据完全相同, 则说明在电子设 备获取这两次数据之间, 用户没有对该数据进行编辑修改, 或者用 户虽然对该数据进行了编辑修改, 但是数据却没有发生变化, 则没 有被修改的数据需要电子设备进行记录。  It is to be noted that the electronic device obtains the second data obtained after modifying the first data, and compares whether the first data and the second data are the same, and periodically or non-periodically acquires data according to the user policy. The data obtained by the electronic device is compared with the data obtained in the previous time. If the two data are identical, the user does not edit or modify the data between the two data acquisitions by the electronic device, or the user The data has been edited and modified, but the data has not changed, and the data that has not been modified needs to be recorded by the electronic device.
5206、 若接收到用户根据可视化标识输入的查询指令, 则电子 设备根据查询指令获取查询指令指示的第三数据。  S206. The electronic device obtains the third data indicated by the query instruction according to the query instruction, if the query instruction input by the user according to the visual identifier is received.
当电子设备使用可视化标识将第三数据标记到标识位上之后, 若用户需要查看所标记的第三数据, 则根据可视化标识输入查询指 令。 电子设备若接收到用户根据可视化标识输入的查询指令, 则根 据查询指令获取查询指令指示的第三数据。  After the electronic device marks the third data to the identification bit using the visual identification, if the user needs to view the marked third data, the query instruction is input according to the visual identification. If the electronic device receives the query instruction input by the user according to the visual identifier, the third data indicated by the query instruction is obtained according to the query instruction.
5207、 电子设备根据第三数据以及显示屏的分辨率, 为第三数 据分配显示第三数据所需的像素点, 其中, 分辨率指示显示屏的像 素点的个数, 显示第三数据所需的像素点的个数不大于显示屏的像 素点的个数。 5207. The electronic device is the third number according to the third data and the resolution of the display screen. The pixel points required to display the third data are allocated, wherein the resolution indicates the number of pixels of the display screen, and the number of pixels required to display the third data is not greater than the number of pixels of the display screen.
不同的显示屏拥有不同的分辨率, 分辨率是指屏幕图像的精密 度, 即显示器所能显示的像素的个数。 由于显示屏屏幕上的点、 线 和面都是由像素组成的, 显示器可显示的像素越多, 画面就越精细, 同样的屏幕区域内能显示的信息也越多, 所以分辨率是个非常重要 的性能指标之一。 通过电子设备, 能够获得当前显示器的分辨率。  Different displays have different resolutions, and resolution refers to the precision of the screen image, that is, the number of pixels that the display can display. Since the dots, lines and faces on the screen of the display are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information that can be displayed in the same screen area, so the resolution is very important. One of the performance indicators. With the electronic device, the resolution of the current display can be obtained.
可以理解的是, 把整个图像想象成一个大型的棋盘, 而分辨率 即为所有经线和纬线交叉点的数目 , 例如, 分辨率为 1 024 x 960的显 示屏, 则表明显示屏上一条水平线上包含 1 024 个像素点, 且共有 960条水平线, 即显示屏上行数为 1 024行, 歹J数为 960歹J , 分辨率 为 640 x 480 的显示屏, 代表着显示屏上一条水平线上含有 640个像 素点, 共有 480 条水平线, 即显示屏上行数为 640 行, 列数为 480 列。  It can be understood that the whole image is imagined as a large chessboard, and the resolution is the number of intersections of all warp and weft lines. For example, a display with a resolution of 1 024 x 960 indicates a horizontal line on the display. It contains 1,024 pixels, and there are 960 horizontal lines, that is, the display has an upstream number of 1,024 lines, the 歹J number is 960歹J, and the resolution is 640 x 480. It represents a horizontal line on the display. 640 pixels, there are 480 horizontal lines, that is, the display has 640 lines and the number of columns is 480 columns.
需要补充的是, 由于不同的用户使用的显示屏的分辨率不同, 这就需要电子设备对当前的使用环境进行探查, 以便所有数据能够 自适应当前的显示器的分辨率。  It should be added that because different users use different resolutions of the display screen, it is necessary for the electronic device to probe the current usage environment so that all data can adapt to the resolution of the current display.
那么, 电子设备在获取了第三数据之后, 电子设备会根据第三 数据以及显示屏的分辨率, 为第三数据分配显示该数据所需的像素 点, 其中, 分辨率指示显示屏的像素点的个数, 显示数据所需的像 素点的个数不大于显示屏的像素点的个数。 为了能够全屏一览第三 数据, 电子设备需要为第三数据的所有信息分配这些信息所需的像 素点, 例如, 当前显示屏具有 1 000个像素点, 而第三数据有 1 0个 字节, 那么电子设备可以按照用户制定的预设规则, 为每个字节分 配小于等于 1 00个像素点, 即由小于等于 1 00个像素点显示一个数 据, 进而, 在一个显示画面下, 显示第三数据。  Then, after the electronic device acquires the third data, the electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the data, wherein the resolution indicates the pixel of the display screen. The number of pixels required to display data is not greater than the number of pixels of the display. In order to be able to view the third data in full screen, the electronic device needs to allocate the pixels required for the information of all the third data, for example, the current display has 1 000 pixels, and the third data has 10 bytes. Then, the electronic device can allocate less than or equal to 100 pixels for each byte according to a preset rule set by the user, that is, display one data by less than or equal to 100 pixels, and then display a third under one display screen. data.
S208、 电子设备通过显示屏显示第三数据。  S208. The electronic device displays the third data through the display screen.
电子设备若接收到用户输入的查询指令, 则根据查询指令获取 查询指令指示的第三数据, 以及根据第三数据以及显示屏的分辨率, 为第三数据分配显示第三数据所需的像素点之后, 通过显示屏显示 第三数据。 If the electronic device receives the query instruction input by the user, the electronic device acquires according to the query instruction. The third data indicated by the instruction instruction, and the third data is displayed on the display screen after the pixel required to display the third data is allocated to the third data according to the third data and the resolution of the display screen.
需要补充的是, 本发明实施例提供的通过显示屏显示第三数据 时, 根据制定的用户策略, 可以同时显示记录第三数据的时间, 以 使得用户能够更加容易选择需要恢复的第三数据, 提高用户体验感。  It should be noted that, when the third data is displayed on the display screen provided by the embodiment of the present invention, according to the established user policy, the time for recording the third data may be simultaneously displayed, so that the user can more easily select the third data that needs to be restored. Improve the user experience.
5209、 若接收到用户根据可视化标识输入的恢复指令, 则电子 设备根据恢复指令在当前数据上恢复第三数据。  5209. If receiving a recovery instruction input by the user according to the visual identifier, the electronic device restores the third data on the current data according to the recovery instruction.
在电子设备根据第三数据以及显示屏的分辨率, 为第三数据分 配显示第三数据所需的像素点, 通过显示屏显示第三数据之后, 若 用户需要对该数据进行恢复, 用户根据可视化标识输入恢复指令。 若接收到用户根据可视化标识输入的恢复指令, 则电子设备根据恢 复指令在当前数据上恢复第三数据。  The electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the third data for the third data, and after displaying the third data through the display screen, if the user needs to recover the data, the user according to the visualization Identify the input recovery command. If the recovery instruction input by the user according to the visual identification is received, the electronic device restores the third data on the current data according to the restoration instruction.
5210、 若未接收到用户根据可视化标识输入的恢复指令, 则电 子设备不在当前数据上恢复第三数据。  5210. If the recovery instruction input by the user according to the visual identifier is not received, the electronic device does not restore the third data on the current data.
在电子设备根据第三数据以及显示屏的分辨率, 为第三数据分 配显示第三数据所需的像素点, 通过显示屏显示第三数据之后, 若 用户不需要对该数据进行恢复, 用户不根据可视化标识输入恢复指 令。 若未接收到用户根据可视化标识输入的恢复指令, 则电子设备 不在当前数据上恢复第三数据。  The electronic device allocates, according to the third data and the resolution of the display screen, the pixel points required for displaying the third data for the third data, and after displaying the third data through the display screen, if the user does not need to recover the data, the user does not Enter the recovery instruction based on the visual ID. If the recovery instruction input by the user according to the visual identification is not received, the electronic device does not restore the third data on the current data.
示例性的, 若用户在电子设备上编辑一个文本, 电子设备获取 该文本的原始状态为第一数据, 如图 4 所示, 随后用户对该文本进 行编辑, 电子设备设置获取数据的周期为 10秒, 在获取第一数据的 10秒后, 电子设备获取修改第一数据后所得的第二数据, 如图 4所 示。 电子设备对比第一数据与第二数据是否相同, 电子设备获知第 一数据与第二数据完全相同, 则不记录任何数据; 之后, 电子设备 根据用户策略, 周期性的获取数据, 在获取第二数据的 10秒后, 电 子设备获取新的数据, 如图 5 所示, 并将该数据与第二数据进行比 较, 对比电子设备获取的新的数据与第二数据, 电子设备获知获取 的新的数据与第二数据不完全相同, 则记录第三数据 (如图 5 中箭 头所指示的数据), 其中, 第三数据包括第二数据的被修改的数据, 同时记录下记录第三数据的时间, 随后, 电子设备将与第三数据对 应的可视化标识标记到预设标识位 (如图 5 下方的黑色标记) 上; 之后, 电子设备周期性地对比数据, 记录被修改的数据以及记录被 修改的数据的时间, 并用可视化标识将被修改的数据标记到预设标 识位上, 如图 6所示, 预设标记位上标记了两处被修改的数据。 Exemplarily, if the user edits a text on the electronic device, the electronic device acquires the original state of the text as the first data, as shown in FIG. 4, and then the user edits the text, and the electronic device sets the period for acquiring the data to be 10 Second, after 10 seconds of acquiring the first data, the electronic device acquires the second data obtained after modifying the first data, as shown in FIG. 4 . Whether the electronic device compares the first data with the second data, and the electronic device knows that the first data is identical to the second data, and does not record any data; after that, the electronic device periodically acquires data according to the user policy, and obtains the second After 10 seconds of data, the electronic device acquires new data, as shown in FIG. 5, and compares the data with the second data, and compares the new data and the second data acquired by the electronic device, and the electronic device learns to obtain the data. The new data is not exactly the same as the second data, and the third data is recorded (as indicated by the arrow in FIG. 5), wherein the third data includes the modified data of the second data, and the third record is recorded. The time of the data, and then, the electronic device marks the visual identifier corresponding to the third data to a preset identification bit (such as the black mark below FIG. 5); after that, the electronic device periodically compares the data, records the modified data, and The time of the modified data is recorded, and the modified data is marked with a visual identifier to the preset identification bit. As shown in FIG. 6, two modified data are marked on the preset mark bit.
当用户想要恢复数据时, 首先查看需要恢复的数据, 如图 7所 示, 若电子设备接收到用户根据可视化标识输入的查询指令, 则根 据查询指令获取查询指令指示的第三数据, 并且根据第三数据以及 显示屏的分辨率, 为第三数据分配显示第三数据所需的像素点, 其 中, 分辨率指示显示屏的像素点的个数, 显示第三数据所需的像素 点的个数不大于显示屏的像素点的个数, 并通过显示屏显示第三数 据。 当用户发现不需要恢复该第三数据时, 则不根据可视化标识输 入恢复指令, 电子设备不在当前数据上恢复第三数据, 数据仍旧如 图 6 所示; 当用户发现需要恢复该第三数据时, 则根据可视化标识 输入恢复指令, 电子设备在当前数据上恢复第三数据, 数据恢复后 如图 8所示。  When the user wants to restore the data, first view the data that needs to be restored. As shown in FIG. 7, if the electronic device receives the query instruction input by the user according to the visual identifier, the third data indicated by the query instruction is obtained according to the query instruction, and according to The third data and the resolution of the display screen allocate the pixel points required for displaying the third data for the third data, wherein the resolution indicates the number of pixels of the display screen, and the number of pixels required to display the third data The number is not greater than the number of pixels of the display, and the third data is displayed through the display. When the user finds that the third data does not need to be restored, the recovery instruction is not input according to the visual identifier, and the electronic device does not restore the third data on the current data, and the data is still as shown in FIG. 6; when the user finds that the third data needs to be restored. , the input recovery command is input according to the visual identifier, and the electronic device restores the third data on the current data, and the data is restored as shown in FIG. 8 .
需要补充的是, 若该电子设备为触摸式电子设备, 则输入查询 指令具体可以为触摸导航条上的预设标识位 (如图 7 中箭头所指示 的位置), 以使得该电子设备能够显示查询指令所指示的第三数据; 当用户根据可视化标识输入恢复指令时, 具体可以为由触摸导航条 上的预设标识位变为释放触摸导航条上的预设标识位, 以使得该电 子设备接收到用户根据可视化标识输入的恢复指令, 根据恢复指令 在当前数据上恢复第三数据。  It should be added that if the electronic device is a touch electronic device, the input query command may specifically be a preset identifier bit on the touch navigation bar (as indicated by the arrow in FIG. 7 ), so that the electronic device can display Querying the third data indicated by the instruction; when the user inputs the recovery instruction according to the visual identifier, the preset identifier bit on the touch navigation bar may be changed from the preset identification bit on the touch navigation bar to make the electronic device Receiving the recovery instruction input by the user according to the visual identifier, recovering the third data on the current data according to the recovery instruction.
本发明实施例所提供的一种数据恢复的方法, 通过获取第一数 据及修改第一数据后所得的第二数据, 对比第一数据与第二数据是 否相同, 若第一数据与第二数据不完全相同, 则记录第三数据, 其 中, 第三数据包括第一数据的被修改的数据, 以及将与第三数据对 应的可视化标识标记到预设标识位上, 以使得若接收到用户根据可 视化标识输入的恢复指令, 则根据恢复指令在当前数据上恢复第三 数据。 通过该方案, 由于电子设备能够通过对比第一数据与第二数 据是否相同, 若第一数据与第二数据不完全相同, 则记录第三数据, 并且通过可视化标识将第三数据标记到预设标识位上, 从而使用户 自行选择需要还原的记录, 提高了用户体验感和编辑数据的效率。 A method for data recovery provided by the embodiment of the present invention is to compare whether the first data and the second data are the same by acquiring the first data and the second data obtained by modifying the first data, if the first data and the second data are Not identical, the third data is recorded, wherein the third data includes the modified data of the first data, and the third data pair The visual identification mark should be marked to the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction. With this solution, since the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier. The identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
本发明实施例还提供一种电子设备 1 , 如图 9 所示, 该电子设 备 1 包括:  An embodiment of the present invention further provides an electronic device 1 . As shown in FIG. 9 , the electronic device 1 includes:
获取模块 10 , 用于获取第一数据及修改第一数据后所得的第二 数据。  The obtaining module 10 is configured to obtain the first data and the second data obtained by modifying the first data.
对比模块 1 1 , 用于对比第一数据与第二数据是否相同。  The comparison module 1 1 is configured to compare whether the first data and the second data are the same.
记录模块 12 , 用于若第一数据与第二数据不完全相同, 则记录 第三数据, 其中, 第三数据包括第一数据的被修改的数据。  The recording module 12 is configured to record third data if the first data and the second data are not completely identical, wherein the third data includes the modified data of the first data.
执行模块 13 , 用于将与第三数据对应的可视化标识标记到预设 标识位上, 以使得若接收到用户根据可视化标识输入的恢复指令, 则根据恢复指令在当前数据上恢复第三数据。  The execution module 13 is configured to mark the visual identifier corresponding to the third data to the preset identifier bit, so that if the recovery instruction input by the user according to the visual identifier is received, the third data is restored on the current data according to the resume instruction.
进一步地, 记录模块 12 , 还用于若第一数据与第二数据完全相 同, 则不记录第三数据。  Further, the recording module 12 is further configured to not record the third data if the first data and the second data are completely the same.
进一步地, 执行模块 13 , 还用于若未接收到用户根据可视化标 识输入的恢复指令, 则不在当前数据上恢复第三数据。  Further, the executing module 13 is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the third data is not restored on the current data.
进一步地, 如图 10所示, 电子设备 1 , 还包括:  Further, as shown in FIG. 10, the electronic device 1 further includes:
获取模块 10 , 还用于若接收到用户根据可视化标识输入的查询 指令, 则根据查询指令获取查询指令所指示的第三数据。  The obtaining module 10 is further configured to: if the query instruction input by the user according to the visual identifier is received, obtain the third data indicated by the query instruction according to the query instruction.
处理模块 14 , 用于根据第三数据以及显示屏的分辨率, 为第三 数据分配显示第三数据所需的像素点, 其中, 分辨率指示显示屏的 像素点的个数, 显示第三数据所需的像素点的个数不大于显示屏的 像素点的个数。  The processing module 14 is configured to allocate, according to the third data and the resolution of the display screen, a pixel point required for displaying the third data for the third data, where the resolution indicates the number of pixels of the display screen, and the third data is displayed. The number of pixels required is not greater than the number of pixels of the display.
显示模块 15 , 用于通过显示屏显示第三数据。  The display module 15 is configured to display the third data through the display screen.
进一步地, 显示模块 15 , 还用于通过显示屏显示记录第三数据 的时间。 Further, the display module 15 is further configured to display the third data by using a display screen. time.
进一步地, 获取模块 10 , 具体用于周期性或非周期性地获取修 改第一数据后所得的第二数据。  Further, the obtaining module 10 is specifically configured to periodically or non-periodically acquire the second data obtained after modifying the first data.
进一步地, 预设标识位具体为导航条。  Further, the preset identifier is specifically a navigation bar.
本发明实施例提供的一种电子设备, 包括获取模块, 用于获取 第一数据及修改第一数据后所得的第二数据, 对比模块, 用于对比 第一数据与第二数据是否相同, 记录模块, 用于若第一数据与第二 数据不完全相同, 则记录第三数据, 其中, 第三数据包括第一数据 的被修改的数据, 以及执行模块, 用于将与第三数据对应的可视化 标识标记到预设标识位上, 以使得若接收到用户根据可视化标识输 入的恢复指令, 则根据恢复指令在当前数据上恢复第三数据。 通过 该方案, 由于电子设备能够通过对比第一数据与第二数据是否相同, 若第一数据与第二数据不完全相同, 则记录第三数据, 并且通过可 视化标识将第三数据标记到预设标识位上, 从而使用户 自行选择需 要还原的记录, 提高了用户体验感和编辑数据的效率。  An electronic device according to an embodiment of the present invention includes an obtaining module, configured to acquire first data and second data obtained by modifying the first data, and a comparison module is configured to compare whether the first data and the second data are the same, and record a module, configured to record third data if the first data and the second data are not identical, wherein the third data includes modified data of the first data, and an execution module, configured to correspond to the third data The visual identification mark is marked on the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction. With this solution, since the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier. The identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
本发明实施例还提供一种电子装置 2 , 如图 1 1所示, 该电子装 置 2 包括:  The embodiment of the present invention further provides an electronic device 2, as shown in FIG. 11, the electronic device 2 includes:
接收器 20 , 用于获取第一数据及修改第一数据后所得的第二数 据。  The receiver 20 is configured to acquire the first data and the second data obtained after modifying the first data.
处理器 21 , 用于对比第一数据与第二数据是否相同。  The processor 21 is configured to compare whether the first data and the second data are the same.
存储器 22 , 用于若第一数据与第二数据不完全相同, 则记录第 三数据, 其中, 第三数据包括第一数据的被修改的数据。  The memory 22 is configured to record the third data if the first data and the second data are not completely identical, wherein the third data includes the modified data of the first data.
处理器 21 , 还用于将与第三数据对应的可视化标识标记到预设 标识位上, 以使得若接收到用户根据可视化标识输入的恢复指令, 则根据恢复指令在当前数据上恢复第三数据。  The processor 21 is further configured to mark the visual identifier corresponding to the third data to the preset identifier, so that if the recovery instruction input by the user according to the visual identifier is received, the third data is restored on the current data according to the resume instruction. .
进一步地,存储器 22 ,还用于若第一数据与第二数据完全相同, 则不记录第三数据。  Further, the memory 22 is further configured to not record the third data if the first data and the second data are identical.
进一步地, 处理器 21 , 还用于若未接收到用户根据可视化标识 输入的恢复指令, 则不在当前数据上恢复第三数据。 进一步地, 如图 12所示, 电子装置 2 , 还包括: Further, the processor 21 is further configured to: if the recovery instruction input by the user according to the visual identifier is not received, the third data is not restored on the current data. Further, as shown in FIG. 12, the electronic device 2 further includes:
接收器 20 , 还用于若接收到用户根据可视化标识输入的查询指 令, 则根据查询指令获取查询指令所指示的第三数据。  The receiver 20 is further configured to: if the query instruction input by the user according to the visual identifier is received, obtain the third data indicated by the query instruction according to the query instruction.
处理器 21 , 用于根据第三数据以及显示屏的分辨率, 为第三数 据分配显示第三数据所需的像素点, 其中, 分辨率指示显示屏的像 素点的个数, 显示第三数据所需的像素点的个数不大于显示屏的像 素点的个数。  The processor 21 is configured to allocate, according to the third data and the resolution of the display screen, a pixel point required to display the third data for the third data, where the resolution indicates the number of pixels of the display screen, and the third data is displayed. The number of pixels required is not greater than the number of pixels of the display.
显示器 23 , 用于通过显示屏显示第三数据。  The display 23 is configured to display the third data through the display screen.
进一步地, 显示器 23 , 还用于通过显示屏显示记录第三数据的 时间。  Further, the display 23 is further configured to display a time for recording the third data through the display screen.
进一步地, 接收器 20 , 具体用于周期性或非周期性地获取修改 第一数据后所得的第二数据。  Further, the receiver 20 is specifically configured to periodically or aperiodically acquire the second data obtained after modifying the first data.
进一步地, 预设标识位具体为导航条。  Further, the preset identifier is specifically a navigation bar.
本发明实施例提供的一种电子装置, 包括接收器, 用于获取第 一数据及修改第一数据后所得的第二数据, 处理器, 用于对比第一 数据与第二数据是否相同, 存储器, 用于若第一数据与第二数据不 完全相同, 则记录第三数据, 其中, 第三数据包括第一数据的被修 改的数据, 以及处理器, 还用于将与第三数据对应的可视化标识标 记到预设标识位上, 以使得若接收到用户根据可视化标识输入的恢 复指令, 则根据恢复指令在当前数据上恢复第三数据。 通过该方案, 由于电子设备能够通过对比第一数据与第二数据是否相同, 若第一 数据与第二数据不完全相同, 则记录第三数据, 并且通过可视化标 识将第三数据标记到预设标识位上, 从而使用户 自行选择需要还原 的记录, 提高了用户体验感和编辑数据的效率。  An electronic device according to an embodiment of the present invention includes a receiver, configured to acquire first data and second data obtained by modifying the first data, and a processor, configured to compare whether the first data and the second data are the same, the memory And, if the first data and the second data are not completely the same, recording the third data, where the third data includes the modified data of the first data, and the processor, and is further configured to correspond to the third data The visual identification mark is marked on the preset identification bit, so that if the recovery instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the recovery instruction. With this solution, since the electronic device can compare whether the first data and the second data are the same, if the first data and the second data are not completely identical, the third data is recorded, and the third data is marked to the preset by the visual identifier. The identification position allows the user to select the records that need to be restored, which improves the user experience and the efficiency of editing the data.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或 部分步骤可以通过程序指令相关的硬件来完成, 前述的程序可以存 储于一计算机可读取存储介质中, 该程序在执行时, 执行包括上述 方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM , 磁碟或 者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk. The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权 利 要 求 书 claims
1、 一种数据恢复的方法, 其特征在于, 包括: 1. A data recovery method, characterized by including:
获取第一数据及修改所述第一数据后所得的第二数据; Obtain the first data and the second data obtained after modifying the first data;
对比所述第一数据与第二数据是否相同; Compare whether the first data and the second data are the same;
若所述第一数据与第二数据不完全相同,则记录第三数据,其中, 所述第三数据包括所述第一数据的被修改的数据; If the first data and the second data are not exactly the same, record third data, wherein the third data includes modified data of the first data;
将与所述第三数据对应的可视化标识标记到预设标识位上,以使 得若接收到用户根据所述可视化标识输入的恢复指令, 则根据所述恢 复指令在当前数据上恢复所述第三数据。 Mark the visual identification corresponding to the third data on the preset identification position, so that if a restoration instruction input by the user according to the visual identification is received, the third data is restored on the current data according to the restoration instruction. data.
2、 根据权利要求 1 所述的数据恢复的方法, 其特征在于, 若所 述第一数据与第二数据完全相同, 则不记录所述第三数据。 2. The data recovery method according to claim 1, wherein if the first data and the second data are exactly the same, the third data is not recorded.
3、 根据权利要求 1 所述的数据恢复的方法, 其特征在于, 若未 接收到用户根据所述可视化标识输入的恢复指令, 则不在当前数据上 恢复所述第三数据。 3. The method of data recovery according to claim 1, characterized in that, if the recovery instruction input by the user according to the visual identification is not received, the third data will not be recovered on the current data.
4、 根据权利要求 1 -3 中任意一项所述的数据恢复的方法, 其特 征在于, 在所述将与所述第三数据对应的可视化标识标记到预设标识 位上之后, 所述方法还包括: 4. The data recovery method according to any one of claims 1 to 3, characterized in that, after marking the visual identification corresponding to the third data on the preset identification position, the method Also includes:
若接收到用户根据所述可视化标识输入的查询指令,则根据所述 查询指令获取所述查询指令所指示的第三数据; If a query instruction input by the user according to the visual identification is received, the third data indicated by the query instruction is obtained according to the query instruction;
根据所述第三数据以及显示屏的分辨率,为所述第三数据分配显 示所述第三数据所需的像素点, 其中, 所述分辨率指示所述显示屏的 像素点的个数, 所述显示所述第三数据所需的像素点的个数不大于所 述显示屏的像素点的个数; According to the third data and the resolution of the display screen, the pixel points required to display the third data are allocated to the third data, where the resolution indicates the number of pixel points of the display screen, The number of pixels required to display the third data is not greater than the number of pixels of the display screen;
通过所述显示屏显示所述第三数据。 The third data is displayed through the display screen.
5、 根据权利要求 4所述的数据恢复的方法, 其特征在于, 所述 通过所述显示屏显示所述第三数据, 还包括: 5. The data recovery method according to claim 4, characterized in that: displaying the third data through the display screen, further comprising:
通过所述显示屏显示记录所述第三数据的时间。 The time when the third data is recorded is displayed through the display screen.
6、 根据权利要求 1 所述的数据恢复的方法, 其特征在于, 所述 获取修改所述第一数据后所得的第二数据, 具体包括: 周期性或非周期性地获取修改所述第一数据后所得的第二数据。 6. The method of data recovery according to claim 1, characterized in that said obtaining the second data obtained by modifying the first data specifically includes: The second data obtained after modifying the first data is acquired periodically or aperiodically.
7、 根据权利要求 1 所述的数据恢复的方法, 其特征在于, 所述 预设标识位具体为导航条。 7. The data recovery method according to claim 1, characterized in that the preset identification bit is specifically a navigation bar.
8、 一种电子设备, 其特征在于, 包括: 8. An electronic device, characterized by including:
获取模块,用于获取第一数据及修改所述第一数据后所得的第二 数据; An acquisition module is used to acquire the first data and the second data obtained after modifying the first data;
对比模块, 用于对比所述第一数据与第二数据是否相同; 记录模块, 用于若所述第一数据与第二数据不完全相同, 则记录 第三数据, 其中, 所述第三数据包括所述第一数据的被修改的数据; 执行模块,用于将与所述第三数据对应的可视化标识标记到预设 标识位上, 以使得若接收到用户根据所述可视化标识输入的恢复指 令, 则根据所述恢复指令在当前数据上恢复所述第三数据。 A comparison module, used to compare whether the first data and the second data are the same; a recording module, used to record the third data if the first data and the second data are not exactly the same, wherein, the third data Modified data including the first data; an execution module for marking the visual identification corresponding to the third data on the preset identification position, so that if the user input according to the visual identification is received, the restoration instruction, the third data is restored on the current data according to the restoration instruction.
9、 根据权利要求 8所述的电子设备, 其特征在于, 所述记录模 块, 还用于若所述第一数据与第二数据完全相同, 则不记录所述第三 数据。 9. The electronic device according to claim 8, wherein the recording module is further configured to not record the third data if the first data and the second data are exactly the same.
10、 根据权利要求 8所述的电子设备, 其特征在于, 所述执行模 块, 还用于若未接收到用户根据所述可视化标识输入的恢复指令, 则 不在当前数据上恢复所述第三数据。 10. The electronic device according to claim 8, wherein the execution module is further configured to not restore the third data on the current data if a restoration instruction input by the user according to the visual identification is not received. .
1 1、 根据权利要求 8- 10 中任意一项所述的电子设备, 其特征在 于, 还包括: 11. The electronic device according to any one of claims 8-10, further comprising:
所述获取模块,还用于若接收到用户根据所述可视化标识输入的 查询指令, 则根据所述查询指令获取所述查询指令所指示的第三数 据; The acquisition module is also configured to obtain the third data indicated by the query instruction according to the query instruction if a query instruction input by the user according to the visual identification is received;
处理模块, 用于根据所述第三数据以及显示屏的分辨率, 为所述 第三数据分配显示所述第三数据所需的像素点, 其中, 所述分辨率指 示所述显示屏的像素点的个数, 所述显示所述第三数据所需的像素点 的个数不大于所述显示屏的像素点的个数; A processing module configured to allocate pixels required for displaying the third data to the third data according to the third data and the resolution of the display screen, wherein the resolution indicates the pixels of the display screen. The number of dots, the number of pixel dots required to display the third data is not greater than the number of pixel dots of the display screen;
显示模块, 用于通过所述显示屏显示所述第三数据。 A display module, configured to display the third data through the display screen.
12、 根据权利要求 1 1 所述的电子设备, 其特征在于, 所述显示 模块, 还用于通过所述显示屏显示记录所述第三数据的时间。 12. The electronic device according to claim 11, wherein the display Module, also configured to display the time of recording the third data through the display screen.
13、 根据权利要求 8所述的电子设备, 其特征在于, 所述获取模 块, 具体用于周期性或非周期性地获取修改所述第一数据后所得的第 二数据。 13. The electronic device according to claim 8, characterized in that the acquisition module is specifically configured to periodically or aperiodicly acquire the second data obtained by modifying the first data.
14、 根据权利要求 8所述的电子设备, 其特征在于, 所述预设标 识位具体为导航条。 14. The electronic device according to claim 8, wherein the preset identification position is a navigation bar.
PCT/CN2014/071884 2013-07-08 2014-02-07 Data recovery method and electronic device WO2015003493A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310284336.0A CN104281561B (en) 2013-07-08 2013-07-08 The method and electronic equipment of a kind of data recovery
CN201310284336.0 2013-07-08

Publications (1)

Publication Number Publication Date
WO2015003493A1 true WO2015003493A1 (en) 2015-01-15

Family

ID=52256447

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071884 WO2015003493A1 (en) 2013-07-08 2014-02-07 Data recovery method and electronic device

Country Status (2)

Country Link
CN (1) CN104281561B (en)
WO (1) WO2015003493A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559440A (en) * 2015-09-25 2017-04-05 上海中兴软件有限责任公司 A kind of method and device of data processing

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947334B (en) * 2017-12-21 2022-04-05 珠海金山办公软件有限公司 Ink mark canceling method and device and electronic equipment
CN109753484A (en) * 2018-12-18 2019-05-14 维沃移动通信有限公司 A kind of file access pattern method and mobile terminal
CN111813303B (en) * 2020-06-10 2022-01-28 维沃移动通信有限公司 Text processing method and device, electronic equipment and readable storage medium
CN113297220A (en) * 2021-05-21 2021-08-24 中国邮政储蓄银行股份有限公司 Data recovery method and device, computer readable storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1636173A (en) * 2001-04-09 2005-07-06 西门子公司 Method, databank system and computer program product for designing a technical facility
US20070226605A1 (en) * 2006-03-22 2007-09-27 The Boeing Company Systems and methods for dynamic display of revision indicia
CN101196894A (en) * 2006-12-06 2008-06-11 英业达股份有限公司 Graphic file modification information processing method and computer readable memory medium
CN101842768A (en) * 2007-06-08 2010-09-22 苹果公司 Graphical user interface for backup interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070006605A1 (en) * 2005-07-06 2007-01-11 Kaori Heat Treatment Co., Ltd. Heating and cooling system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1636173A (en) * 2001-04-09 2005-07-06 西门子公司 Method, databank system and computer program product for designing a technical facility
US20070226605A1 (en) * 2006-03-22 2007-09-27 The Boeing Company Systems and methods for dynamic display of revision indicia
CN101196894A (en) * 2006-12-06 2008-06-11 英业达股份有限公司 Graphic file modification information processing method and computer readable memory medium
CN101842768A (en) * 2007-06-08 2010-09-22 苹果公司 Graphical user interface for backup interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559440A (en) * 2015-09-25 2017-04-05 上海中兴软件有限责任公司 A kind of method and device of data processing
CN106559440B (en) * 2015-09-25 2020-04-28 中兴通讯股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN104281561A (en) 2015-01-14
CN104281561B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US20190355122A1 (en) Device, Method, and Graphical User Interface for Processing Document
US20190361593A1 (en) Screen Capturing Method and Apparatus
WO2015003493A1 (en) Data recovery method and electronic device
WO2010081374A1 (en) Screenshot method and screenshot device
TWI695320B (en) Page processing method, device and equipment
DE102014010217A1 (en) Dynamic information customization for a multi-power computing device
TWI545450B (en) Browser and method for displaying subsites
CN112000563A (en) User behavior recording method, device and equipment
US20130044954A1 (en) Method and apparatus for accessing an electronic resource based upon a hand-drawn indicator
CN104572348A (en) Terminal
WO2023066085A1 (en) Data backup method and apparatus thereof, electronic device, and readable storage medium
CN112015626A (en) User behavior recording method, device and equipment
JP2017084146A (en) Information processing apparatus and information processing program
JP6668868B2 (en) Information processing apparatus and information processing program
CN103354089A (en) Voice communication management method and apparatus thereof
CN108509125B (en) Page turning method, device, terminal and computer readable storage medium
JP6160115B2 (en) Information processing apparatus, presentation material optimization method, and program
CN108182577A (en) A kind of method, apparatus and equipment for showing payment information
WO2017011680A1 (en) Device and method for processing data
CN106569785B (en) Method and device for generating job form
AU2014201812B2 (en) Mathematical expression display control apparatus, mathematical expression display control method, and computer readable medium recording mathematical expression display control program
US20220276768A1 (en) Screenshot method and apparatus for information interaction interface, computing device and storage medium
JP6225724B2 (en) Information sharing system, information sharing method, information processing apparatus, and information processing method
WO2016157418A1 (en) Display control device, information processing device, display control method, display control program, and recording medium
JP6318519B2 (en) Image processing apparatus, program, and control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14823815

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14823815

Country of ref document: EP

Kind code of ref document: A1