[go: up one dir, main page]

CN111459717A - Operation control method and electronic device - Google Patents

Operation control method and electronic device Download PDF

Info

Publication number
CN111459717A
CN111459717A CN202010236841.8A CN202010236841A CN111459717A CN 111459717 A CN111459717 A CN 111459717A CN 202010236841 A CN202010236841 A CN 202010236841A CN 111459717 A CN111459717 A CN 111459717A
Authority
CN
China
Prior art keywords
target
historical operation
historical
input
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010236841.8A
Other languages
Chinese (zh)
Inventor
杨茂祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010236841.8A priority Critical patent/CN111459717A/en
Publication of CN111459717A publication Critical patent/CN111459717A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/1415Saving, restoring, recovering or retrying at system level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例提供一种操作控制方法及电子设备,属于电子设备操作控制技术领域,所述方法包括:接收用户对目标标识的第一输入;响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。本发明实施例通过保存用户操作电子设备的历史操作记录来记录用户的操作,从而可以方便、快捷、准确地撤销一个或多个历史操作,或者恢复一个或多个已撤销的历史操作。

Figure 202010236841

Embodiments of the present invention provide an operation control method and an electronic device, which belong to the technical field of electronic device operation control. The method includes: receiving a first input of a target identifier from a user; responding to the first input, based on a preset operation The target historical operation record in the log is to perform target processing on the target historical operation; wherein, the target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; The operation log includes at least one pre-stored historical operation record of the user operating the electronic device; the target historical operation is at least one historical operation corresponding to the target historical operation record. The embodiment of the present invention records the user's operation by saving the historical operation record of the user's operation of the electronic device, so that one or more historical operations can be undone conveniently, quickly and accurately, or one or more undone historical operations can be restored.

Figure 202010236841

Description

操作控制方法及电子设备Operation control method and electronic device

技术领域technical field

本发明实施例涉及电子设备操作控制技术领域,尤其涉及一种操作控制方法及电子设备。Embodiments of the present invention relate to the technical field of electronic device operation control, and in particular, to an operation control method and an electronic device.

背景技术Background technique

随着科技的发展,手机拥有了越来越多的功能,人们因此在生活中越来越依赖于手机,甚至在手机上进行办公。但是,目前用户在使用手机进行键盘输入、文件操作、桌面设置和相册管理等操作时,如果发生误操作或其他原因,想要将手机恢复到某一步操作之前的状态时,需要将这几个步骤反操作一遍或者根据实际情况分多个操作步骤逐步恢复,比如用户在整理桌面的时候将桌面图标经过一系列排列后,发现还不如之前的排列好,这时候想要恢复到之前的状态,就需要将之前的操作反操作一遍,操作繁琐且费时。With the development of science and technology, mobile phones have more and more functions, so people rely more and more on mobile phones in their lives, and even work on mobile phones. However, at present, when the user uses the mobile phone for keyboard input, file operation, desktop settings and album management, if there is a misoperation or other reasons, when the user wants to restore the mobile phone to the state before a certain operation, it is necessary to restore these The steps are reversed or restored gradually in multiple steps according to the actual situation. For example, after a user arranges the desktop icons in a series of arrangements when arranging the desktop, he finds that the arrangement is not as good as before. At this time, he wants to restore to the previous state. It is necessary to reverse the previous operation, which is cumbersome and time-consuming.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种操作控制方法及电子设备,能够解决用户使用某个程序功能过程中,在发生误操作的情况下,需要反复操作多次,导致操作繁琐且费时的问题。Embodiments of the present invention provide an operation control method and an electronic device, which can solve the problem of complicated and time-consuming operations that need to be repeated for many times when a user uses a certain program function in the event of a misoperation.

为解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种操作控制方法,应用于电子设备,包括:In a first aspect, an embodiment of the present invention provides an operation control method, applied to an electronic device, including:

接收用户对目标标识的第一输入;receiving the first input of the target identifier from the user;

响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;In response to the first input, target processing is performed on the target historical operation based on the target historical operation record in the preset operation log;

其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record.

第二方面,本发明实施例还提供了一种电子设备,包括:In a second aspect, an embodiment of the present invention also provides an electronic device, including:

第一接收模块,用于接收用户对目标标识的第一输入;a first receiving module, configured to receive the first input of the target identifier by the user;

处理模块,用于响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;a processing module, configured to perform target processing on the target historical operation based on the target historical operation record in the preset operation log in response to the first input;

其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record.

第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述操作控制方法中的步骤。In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor When executed, the steps in the above operation control method are implemented.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述操作控制方法中的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above operation control method are implemented.

在本发明实施例中,通过保存历史操作记录来记录用户对电子设备的历史操作,从而可以方便、快捷、准确地撤销用户的一个或多个历史操作,或者恢复用户的一个或多个已撤销的历史操作,以快捷、准确地将所述电子设备切换至用户的某一历史操作之前的状态或之后的状态。In this embodiment of the present invention, the user's historical operations on the electronic device are recorded by saving historical operation records, so that one or more historical operations of the user can be undone conveniently, quickly and accurately, or one or more undone operations of the user can be recovered. to quickly and accurately switch the electronic device to a state before or after a certain historical operation of the user.

附图说明Description of drawings

图1为本发明实施例中的一种操作控制方法的流程示意图;1 is a schematic flowchart of an operation control method in an embodiment of the present invention;

图2为本发明实施例中的一种保存在缓存区的文件夹列表的示意图;2 is a schematic diagram of a folder list stored in a cache area in an embodiment of the present invention;

图3为本发明实施例中的一种文件夹编辑界面的示意图;3 is a schematic diagram of a folder editing interface in an embodiment of the present invention;

图4为本发明实施例中的一种操作日志的示意图;4 is a schematic diagram of an operation log in an embodiment of the present invention;

图5为图3所示文件夹编辑界面更新后的示意图;Fig. 5 is the schematic diagram after the folder editing interface shown in Fig. 3 is updated;

图6为本发明实施例中的标识显示界面的一种显示示意图;6 is a schematic display diagram of an identification display interface in an embodiment of the present invention;

图7为本发明实施例中的标识显示界面的另一种显示示意图;FIG. 7 is another schematic display diagram of an identification display interface in an embodiment of the present invention;

图8为本发明实施例中的标识显示界面的第三种显示示意图;FIG. 8 is a third display schematic diagram of an identification display interface in an embodiment of the present invention;

图9为本发明实施例中的一种电子设备的结构示意图;9 is a schematic structural diagram of an electronic device in an embodiment of the present invention;

图10为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于所描述的本发明的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are some, but not all, embodiments of the present invention. Based on the described embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of the present invention.

请参阅图1,图1是本发明实施例提供的一种操作控制方法的流程示意图,该方法应用于电子设备,包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an operation control method provided by an embodiment of the present invention. The method is applied to an electronic device, including:

步骤101:接收用户对目标标识的第一输入。Step 101: Receive a first input of a target identifier by a user.

所述目标标识可以是用于撤销历史操作的第一标识(例如撤销按钮的标识)、用于恢复历史操作的第二标识(例如恢复按钮的标识)、用于指示预设的操作日志中的历史操作记录的历史操作标识、用于标记某一条历史操作记录的第四标识或者用于指示某一个历史操作标识指示的历史操作的操作时间的操作时间标识。本发明实施例中的标识可以是图片、符号、控件等。The target identifier may be a first identifier for undoing a historical operation (for example, an identifier for an undo button), a second identifier for restoring a historical operation (for example, an identifier for a redo button), or an identifier for indicating a preset operation log. The historical operation identifier of the historical operation record, the fourth identifier used to mark a certain historical operation record, or the operation time identifier used to indicate the operation time of the historical operation indicated by a certain historical operation identifier. The identifiers in the embodiments of the present invention may be pictures, symbols, controls, and the like.

所述第一输入包括点击输入、长按输入(持续按压超过预设时长的输入)或双击输入。The first input includes a click input, a long-press input (an input that is continuously pressed for more than a preset duration) or a double-click input.

步骤102:响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;Step 102: In response to the first input, target processing is performed on the target historical operation based on the target historical operation record in the preset operation log;

其中,所述目标历史操作记录(也可以简称为目标操作记录)是基于所述第一输入确定的至少一条历史操作记录(也可以简称为操作记录);所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作(也即用户已进行的操作)。Wherein, the target historical operation record (also referred to as target operation record) is at least one historical operation record (also referred to as operation record) determined based on the first input; the target processing includes undo processing or recovery processing ; the operation log includes at least one pre-stored historical operation record of the user operating the electronic device; the target historical operation is at least one historical operation (that is, an operation performed by the user) corresponding to the target historical operation record.

历史操作,具体可以是删除操作(例如删除文件夹、文件、应用程序、图片、相片、短信等)、选中操作(例如选中文件夹、文件、应用程序、图片、相片、短信等)、增加操作(例如新建文件、新建文件夹等)、设置操作(例如设置来电提醒模式、设置桌面布局、设置壁纸等)等等,这里不再详举。换句话说,所述历史操作可以是用户对电子设备的任意操作。Historical operations, specifically, delete operations (such as deleting folders, files, applications, pictures, photos, text messages, etc.), selection operations (such as selecting folders, files, applications, pictures, photos, text messages, etc.), adding operations (such as creating a new file, creating a new folder, etc.), setting operations (such as setting an incoming call reminder mode, setting a desktop layout, setting a wallpaper, etc.), etc., which will not be detailed here. In other words, the historical operation may be any operation performed by the user on the electronic device.

也就是说,所述电子设备在接收到所述第一输入之后,从操作日志中确定出与所述第一输入对应的目标历史操作记录,并根据所述目标历史操作记录撤销至少一项用户操作所述电子设备的历史操作,或者恢复至少一个已撤销的历史操作。所述历史操作记录用于记录用户对所述电子设备的操作。That is, after receiving the first input, the electronic device determines a target historical operation record corresponding to the first input from the operation log, and cancels at least one user item according to the target historical operation record A historical operation of the electronic device is operated, or at least one undone historical operation is restored. The historical operation record is used to record the operation of the user on the electronic device.

所述操作日志可以存储在所述电子设备中。The operation log may be stored in the electronic device.

具体来说,在确定出与所述第一输入对应的目标历史操作记录之后,可以撤销或恢复所述目标历史操作记录对应的目标历史操作,或者,撤销所述目标历史操作记录之后(可以包括目标历史操作记录)的所有历史操作记录对应的历史操作,或者恢复所述目标历史操作记录之前(也可以包括目标历史操作记录)所有的第四历史操作记录对应的历史操作,所述第四历史操作记录对应的历史操作为已撤销的历史操作。也即,可以将所述电子设备恢复至用户输入与所述目标历史操作记录对应的目标历史操作之前的状态,还可以在将所述电子设备恢复至用户输入与所述目标历史操作记录对应的目标历史操作之前的状态之后,切换回用户输入与所述目标历史操作记录对应的目标历史操作之后的状态。Specifically, after the target historical operation record corresponding to the first input is determined, the target historical operation corresponding to the target historical operation record may be revoked or restored, or, after the target historical operation record is revoked (which may include The historical operation corresponding to all historical operation records of the target historical operation record), or the historical operation corresponding to all the fourth historical operation records before restoring the target historical operation record (which may also include the target historical operation record), the fourth historical operation record The historical operation corresponding to the operation record is the undone historical operation. That is, the electronic device can be restored to the state before the user input the target historical operation corresponding to the target historical operation record, and the electronic device can also be restored to the user input corresponding to the target historical operation record. After the state before the target historical operation, switch back to the state after the user inputs the target historical operation corresponding to the target historical operation record.

另外,基于所述第一输入确定的所述目标历史操作记录可以是多条,且该多条目标历史操作记录可以不是连续的历史操作记录,也就是说,该多条目标历史操作记录对应的历史操作可以不连续。在所述目标历史操作包括多项历史操作时,所述目标历史操作也可以包括多项不连续的历史操作。In addition, the target historical operation records determined based on the first input may be multiple, and the multiple target historical operation records may not be continuous historical operation records, that is, the multiple target historical operation records corresponding to History operations can be discontinuous. When the target historical operation includes a plurality of historical operations, the target historical operation may also include a plurality of discontinuous historical operations.

本发明实施例提供的一种操作控制方法,通过保存历史操作记录来记录用户对电子设备的历史操作,从而可以方便、快捷、准确地撤销用户的一个或多个历史操作,或者恢复用户的一个或多个已撤销的历史操作,以快捷、准确地将所述电子设备切换至用户的某一历史操作之前的状态或之后的状态。An operation control method provided by an embodiment of the present invention records the user's historical operations on the electronic device by saving historical operation records, so that one or more historical operations of the user can be undone conveniently, quickly and accurately, or one of the user's historical operations can be restored. or multiple undone historical operations, so as to quickly and accurately switch the electronic device to a state before or after a certain historical operation of the user.

另外,目前电子设备上针对文件一类的删除操作是无法进行恢复的,也就是说文件一旦被删除是难以找回的。而本发明实施例提供的操作控制方法则可以恢复被删除的文件。In addition, at present, deletion operations such as files on an electronic device cannot be recovered, that is to say, once a file is deleted, it is difficult to retrieve it. The operation control method provided by the embodiment of the present invention can restore the deleted file.

下面举例说明上述操作控制方法。The above-mentioned operation control method will be exemplified below.

可选的,所述接收用户对目标标识的第一输入之前,还包括:Optionally, before the receiving the first input of the target identifier by the user, the method further includes:

接收用户操作电子设备的第二输入;receiving a second input of a user operating the electronic device;

响应于所述第二输入,执行所述第二输入对应的第一操作,并在所述操作日志中增加一条与所述第二输入对应的第一历史操作记录。In response to the second input, a first operation corresponding to the second input is performed, and a first historical operation record corresponding to the second input is added to the operation log.

所述第二输入包括上述的目标历史操作。The second input includes the above-mentioned target history operation.

所述第一输入还可以是所述第一操作。所述第一操作包括所述目标历史操作。换句话说,所述电子设备在接收用户对目标标识的第一输入之前,还包括:接收用户的第二输入,响应于所述第二输入,执行所述目标历史操作,并在所述操作日志中增加所述目标历史操作对应的所述目标历史操作记录。The first input may also be the first operation. The first operation includes the target history operation. In other words, before receiving the user's first input on the target identifier, the electronic device further includes: receiving a user's second input, in response to the second input, executing the target historical operation, and in the operation The target historical operation record corresponding to the target historical operation is added to the log.

也就是说,所述电子设备在接收并响应用户的操作时,会记录用户操作,以便后续可以撤销用户操作或恢复用户操作,从而所述电子设备能够在用户操作之前的状态和用户操作之后的状态之间切换。That is to say, when the electronic device receives and responds to the user's operation, it will record the user's operation, so that the user's operation can be undone or restored later, so that the electronic device can be in the state before the user's operation and after the user's operation. switch between states.

具体的,可以在电子设备的内存中划分一块缓存区,用来存储用户操作电子设备的历史操作记录。然后用户就可以通过存储的历史操作记录将所述电子设备切换至某一历史操作之前的状态或之后的状态。Specifically, a buffer area may be divided in the memory of the electronic device to store historical operation records of the user operating the electronic device. Then the user can switch the electronic device to a state before or after a certain historical operation through the stored historical operation record.

更进一步的,请参阅图2,可以在缓存区中为每个应用程序建立一个文件夹,用来记录用户在对应的应用程序上的操作,也即用来存储对应应用程序的用户操作记录。例如,在缓存区中为文件管理应用程序、相册应用程序、短信应用程序和电话应用程序等分别建立一个文件夹。具体的,每安装一个应用程序,所述电子设备都会在上述缓存区中为该新安装的应用程序划分一块内存并建立对应的文件夹,以缓存该应用程序的用户操作记录。当然,也可以不必为所有的应用程序都在缓存区中划分一块内存并建立对应的文件夹,而是只针对有增删改操作的应用程序划分内存并建立文件夹。Further, referring to FIG. 2 , a folder may be established for each application in the cache area to record the user's operations on the corresponding application, that is, to store the user operation record of the corresponding application. For example, a folder is respectively established in the cache area for a file management application, a photo album application, a short message application, and a phone application. Specifically, each time an application program is installed, the electronic device will divide a memory for the newly installed application program in the above-mentioned cache area and create a corresponding folder to cache the user operation record of the application program. Of course, it is also not necessary to divide a piece of memory in the cache area for all applications and create corresponding folders, but to divide memory and create folders only for applications with addition, deletion and modification operations.

也就是说,本发明实施例中,用户对一个应用程序的操作,可以生成对应的操作记录并保存在该应用程序对应的文件夹中。具体的,可以针对用户的每一次操作都生成对应的操作记录并保存在对应的文件夹中,也可以只针对用户的部分操作生成对应的操作记录并保存在对应的文件夹中。That is to say, in this embodiment of the present invention, a user operates an application program, and a corresponding operation record may be generated and stored in a folder corresponding to the application program. Specifically, a corresponding operation record may be generated for each operation of the user and stored in a corresponding folder, or a corresponding operation record may be generated only for part of the user's operations and stored in a corresponding folder.

另外,还可以在缓存区中为电子设备的系统建立一个文件夹,用来记录用户对系统的操作,或者说可以把电子设备系统当作一个应用程序,并为其在上述缓存区中建立一个文件夹。也就是说,所述电子设备还可以记录用户对系统的操作,并可以根据保存的操作记录撤销用户对系统的操作,或者恢复用户对系统的操作,以切换至用户对系统进行操作过程中的任一种状态。例如,用户对桌面图标布局进行了一系列的调整操作,所述电子设备可以针对该一系列的调整操作中的每一操作生成操作记录并保存,然后就可以利用保存的操作记录,按时间顺序撤销该一系列的调整操作中的一个或多个操作,以切换至调整过程中的任一种布局状态。In addition, a folder for the system of the electronic device can also be created in the cache area to record the user's operation on the system, or the electronic device system can be regarded as an application program, and a file can be created in the above-mentioned cache area for it. folder. That is to say, the electronic device can also record the user's operation on the system, and can revoke the user's operation on the system according to the saved operation record, or restore the user's operation on the system, so as to switch to the operation in the process of the user's operating the system. any state. For example, if the user performs a series of adjustment operations on the desktop icon layout, the electronic device may generate and save an operation record for each operation in the series of adjustment operations, and then use the saved operation record to chronologically One or more operations in the series of adjustment operations are undone to switch to any layout state in the adjustment process.

举例来说,用户对图3所示的文件夹列表依次进行了如下操作:For example, the user sequentially performs the following operations on the folder list shown in Figure 3:

1.选中“下载”文件夹;1. Select the "Download" folder;

2.将“下载”文件夹重命名为“download”;2. Rename the "download" folder to "download";

3.选中“音乐”文件夹;3. Select the "Music" folder;

4.选中“录音”文件夹;4. Select the "Recordings" folder;

5.删除选中的“音乐”文件夹和“录音”文件夹。5. Delete the selected "Music" folder and "Recordings" folder.

所述电子设备记录用户的以上操作,并形成如图4所述的操作日志。进行了上述五步操作之后,图3所示的文件夹列表更新成图5所示的状态。The electronic device records the above operations of the user, and forms an operation log as shown in FIG. 4 . After the above five steps are performed, the folder list shown in FIG. 3 is updated to the state shown in FIG. 5 .

本发明实施例中,所述电子设备通过生成并保存用户操作的操作记录,可以实现撤销操作、恢复已撤销的操作和返回任意操作时间点功能,也即可以切换到历史操作过程中的任一种状态。而且,即使用户操作所针对的应用程序被关闭,所述操作记录仍会被保存,再次启动该应用程序时依然可以查看之前的操作记录,并且可以根据保存的操作记录撤销一个或多个操作、或恢复一个或多个操作。In the embodiment of the present invention, by generating and saving the operation record of the user's operation, the electronic device can realize the functions of undoing an operation, restoring an operation that has been cancelled, and returning to any operation time point, that is, it can switch to any operation in the historical operation process. state. Moreover, even if the application program targeted by the user's operation is closed, the operation record will still be saved, and the previous operation record can still be viewed when the application program is started again, and one or more operations can be undone according to the saved operation record, Or resume one or more operations.

另外,可以对操作日志中的历史操作记录设置缓存有效期,以定时清理内存。In addition, you can set the cache validity period for the historical operation records in the operation log to periodically clear the memory.

其中一种可选的具体实施方式中,所述目标标识包括用于撤销历史操作的第一标识,所述第一输入为对所述第一标识的第N次输入;In an optional specific implementation manner, the target identifier includes a first identifier for undoing a historical operation, and the first input is the Nth input to the first identifier;

所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理,包括:The target processing is performed on the target historical operation based on the target historical operation record in the preset operation log, including:

撤销所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中以第二历史操作记录开始的按照第一操作时间顺序的第N条历史操作记录;revoke the target historical operation corresponding to the target historical operation record, the target historical operation record is the Nth historical operation record in the operation log starting with the second historical operation record according to the time sequence of the first operation;

其中,所述第二历史操作记录是操作时间最晚的一条历史操作记录;所述第一操作时间顺序为从晚到早的顺序;N为正整数。The second historical operation record is a historical operation record with the latest operation time; the first operation time sequence is from late to early; N is a positive integer.

需要说明的是,所述第一标识可以是撤销按钮的标识,所述第一标识可以显示在标识显示界面中。所述第一输入可以是点击所述第一标识的输入,或双击所述第一标识的输入,或长按所述第一标识的输入。It should be noted that the first identification may be an identification of the cancel button, and the first identification may be displayed in the identification display interface. The first input may be an input of clicking the first logo, an input of double-clicking the first logo, or an input of long-pressing the first logo.

本发明实施例中,用户可以对所述第一标识多次输入第一输入,以按照操作时间从晚到早依次撤销多个历史操作。In this embodiment of the present invention, the user may input the first input for the first identifier multiple times, so as to undo multiple historical operations in sequence from late to early according to the operation time.

也就是说,用户每对第一标识输入一次所述第一输入,就撤销操作时间最晚的一项未撤销的历史操作。具体来说,用户每点击一次所述第一标识,就确定操作时间最晚的一项未撤销的历史操作对应的历史操作记录为所述目标历史操作记录,并撤销该历史操作记录对应的历史操作。也即,所述电子设备根据所述目标历史操作记录更新至用户输入所述目标操作之前的状态。That is to say, each time the user inputs the first input to the first identifier, an unrevoked historical operation with the latest operation time is cancelled. Specifically, each time the user clicks the first identifier, the historical operation record corresponding to an unrevoked historical operation with the latest operation time is determined as the target historical operation record, and the historical operation record corresponding to the historical operation record is revoked. operate. That is, the electronic device is updated to the state before the user inputs the target operation according to the target operation history.

举例来说,用户对图3所示的文件夹列表依次进行了如下操作:1.选中“下载”文件夹;2.将“下载”文件夹重命名为“download”;3.选中“音乐”文件夹;4.选中“录音”文件夹;5.删除选中的“音乐”文件夹和“录音”文件夹。但又不想这样操作了,想恢复图3中的状态,那么用户可以通过对第一标识的第一输入,也即点击第一标识选中图4中的第一条历史操作记录(删除选中)作为目标历史操作记录,并撤销该历史操作记录对应的历史操作(撤销删除选中的“音乐”文件夹和“录音”文件夹)。并再次通过对第一标识的点击输入(也即对所述第一标识的第二次点击输入)选中图4中的第二条历史操作记录(选中“录音”文件夹)作为目标历史操作记录,并撤销该历史操作记录对应的历史操作。通过对所述第一标识的第三次点击输入选中图4中的第三条历史操作记录(选中“音乐”文件夹)作为目标历史操作记录,并撤销该历史操作记录对应的历史操作。以此类推,直到撤销选中“下载”文件夹的历史操作,恢复到图3中的状态。也就是说,用户在对图3所示的文件夹列表进行了上述的五步操作之后,如果不想这样操作,想让文件夹列表回到之前的状态,只需要点击第一标识,每点击一次就返回一步操作,直到将上述五步操作全部撤销,这样电子设备就能一步一步返回到进行上述五步操作之前的状态。For example, the user performs the following operations on the folder list shown in Figure 3: 1. Select the "Download" folder; 2. Rename the "Download" folder to "download"; 3. Select "Music" 4. Select the "Recording" folder; 5. Delete the selected "Music" folder and "Recording" folder. But I don’t want to do this anymore, I want to restore the state in Figure 3, then the user can select the first historical operation record (delete selection) in Figure 4 through the first input of the first logo, that is, click the first logo. The target historical operation record, and undo the historical operation corresponding to the historical operation record (undo deletion of the selected "Music" folder and "Recording" folder). And select the second historical operation record in Fig. 4 (select the "recording" folder) as the target historical operation record again by clicking the input of the first identification (that is, the second click input of the first identification) , and undo the historical operation corresponding to the historical operation record. The third historical operation record in FIG. 4 (selecting the “music” folder) is selected as the target historical operation record by the third click input of the first identifier, and the historical operation corresponding to the historical operation record is cancelled. And so on, until the historical operation of selecting the "Download" folder is undone, and the state shown in Figure 3 is restored. That is to say, after the user has performed the above-mentioned five-step operation on the folder list shown in Figure 3, if he does not want to do this and wants to return the folder list to the previous state, he only needs to click the first logo, and each time he clicks Just go back to one step until all the above five steps are canceled, so that the electronic device can return to the state before the above five steps are performed step by step.

本发明实施例中,用户可以按照时间从晚到早的顺序一条一条地撤销历史操作,从而用户可以回看所述电子设备在每一历史操作之前或之后的状态。另外,所述第一输入可以是点击所述第一标识的输入,操作简单。In this embodiment of the present invention, the user can undo the historical operations one by one in the order of time from late to early, so that the user can look back at the state of the electronic device before or after each historical operation. In addition, the first input may be an input of clicking the first identifier, and the operation is simple.

另一种可选的具体实施方式中,所述目标标识包括用于恢复历史操作的第二标识,所述第一输入为对所述第二标识的输入;In another optional specific implementation manner, the target identifier includes a second identifier for restoring historical operations, and the first input is an input to the second identifier;

所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理,包括:The target processing is performed on the target historical operation based on the target historical operation record in the preset operation log, including:

恢复所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中操作时间最早的第三历史操作记录,所述第三历史操作记录对应的历史操作已被撤销且未被恢复。Restore the target historical operation corresponding to the target historical operation record, the target historical operation record is the third historical operation record with the earliest operation time in the operation log, and the historical operation corresponding to the third historical operation record has been revoked and not recovered.

需要说明的是,所述第二标识可以是恢复按钮的标识,所述第二标识可以显示在标识显示界面中。所述第一输入可以是点击所述第二标识的输入,或者是长按所述第二标识的输入,或者是双击所述第二标识的输入。It should be noted that the second logo may be the logo of the restore button, and the second logo may be displayed in the logo display interface. The first input may be an input of clicking the second logo, or an input of long-pressing the second logo, or an input of double-clicking the second logo.

本发明实施例中,用户可以对所述第二标识多次输入第一输入,以按照时间从早到晚依次恢复多个已撤销的历史操作。In this embodiment of the present invention, the user may input the first input for the second identifier multiple times, so as to restore a plurality of undone historical operations sequentially from early to late according to time.

也就是说,用户每对第二标识输入一次所述第一输入,就恢复操作时间最早的一项已撤销的历史操作。具体来说,用户每点击一次所述第二标识,就确定操作时间最早的一项已撤销的历史操作对应的历史操作记录为所述目标历史操作记录,并恢复该历史操作记录对应的历史操作。也即,所述电子设备根据所述目标历史操作记录更新至用户输入所述目标历史操作之后的状态。That is to say, each time the user inputs the first input to the second identifier once, a cancelled historical operation with the earliest operation time is restored. Specifically, each time the user clicks on the second identifier, the historical operation record corresponding to a cancelled historical operation with the earliest operation time is determined as the target historical operation record, and the historical operation corresponding to the historical operation record is restored. . That is, the electronic device is updated according to the target historical operation record to a state after the user inputs the target historical operation.

举例来说,用户对图3所示的文件夹列表依次进行了如下操作:1.选中“下载”文件夹;2.将“下载”文件夹重命名为“download”;3.选中“音乐”文件夹;4.选中“录音”文件夹;5.删除选中的“音乐”文件夹和“录音”文件夹。之后,用户撤销了上述五步操作,但是用户又想要进行上述五步操作的话,用户可以通过对第二标识的第一输入,也即点击第二标识,选中图4中的第五条历史操作记录(选中“下载”文件夹)作为目标历史操作记录,并恢复该历史操作记录对应的历史操作(恢复选中“下载”文件夹)。并再次通过对第二标识的点击输入(也即对所述第二标识的第二次点击输入)选中图4中的第四条操作记录(将“下载”文件夹重命名为“download”)作为目标历史操作记录,并恢复该历史操作记录对应的操作(恢复将“下载”文件夹重命名为“download”),以此类推,直到恢复删除选中的“音乐”文件夹和“录音”文件夹这一历史操作。也就是说,如果用户撤销了上述五步操作,恢复到图3所示的状态之后,如果用户又想要进行上述五步操作,只需要点击第二标识,每点击一次就恢复一步操作,直到将上述五步操作全部恢复,这样就能一步一步恢复至图5所示的状态,也即上述五步操作之后的状态。For example, the user performs the following operations on the folder list shown in Figure 3: 1. Select the "Download" folder; 2. Rename the "Download" folder to "download"; 3. Select "Music" 4. Select the "Recording" folder; 5. Delete the selected "Music" folder and "Recording" folder. After that, the user cancels the above five-step operation, but if the user wants to perform the above-mentioned five-step operation, the user can select the fifth history in FIG. The operation record (select the "download" folder) is used as the target historical operation record, and restore the historical operation corresponding to the historical operation record (restore the selected "download" folder). And select the fourth operation record in Figure 4 (rename the "download" folder to "download") through the click input of the second identification (that is, the second click input of the second identification) As the target historical operation record, and restore the operation corresponding to the historical operation record (restore renaming the "download" folder to "download"), and so on, until the selected "music" folder and "recording" file are restored Folder this history operation. That is to say, if the user revokes the above five-step operation and restores to the state shown in Figure 3, if the user wants to perform the above-mentioned five-step operation again, he only needs to click the second icon, and each click will resume one step of operation until All the above five-step operations are restored, so that the state shown in FIG. 5 can be restored step by step, that is, the state after the above-mentioned five-step operations.

本发明实施例,将电子设备恢复到某一操作之后的状态的操作方法简单,尤其是在需要恢复的步骤较少的情况下,用户只需要点击一次或几次第二标识即可恢复至某一历史操作之后的状态。而且,用户还可以直观清楚地看到电子设备在每一项历史操作之前与之后的变化。In the embodiment of the present invention, the operation method for restoring the electronic device to the state after a certain operation is simple, especially when there are few steps to be restored, the user only needs to click the second logo once or several times to restore the electronic device to a certain state. The state after a historical operation. Moreover, the user can also intuitively and clearly see the changes of the electronic device before and after each historical operation.

第三种可选的具体实施方式中,所述接收用户对目标标识的第一输入之前,还包括:In a third optional specific implementation manner, before the receiving the first input of the target identifier by the user, the method further includes:

接收用户对第三标识的第三输入;receiving a third input of a third identifier by the user;

响应于所述第三输入,显示T个历史操作标识,其中,每个历史操作标识指示预设的操作日志中的一条历史操作记录;In response to the third input, display T historical operation identifiers, wherein each historical operation identifier indicates a historical operation record in a preset operation log;

所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理之前,还包括:Before performing the target processing on the target historical operation based on the target historical operation record in the preset operation log, the method further includes:

确定所述目标历史操作记录;determining the target historical operation record;

其中,T为正整数。where T is a positive integer.

所述第三标识可以是用于打开操作日志的标识,所述第三标识可以显示在标识显示界面中。所述第三输入可以是点击所述第三标识的输入,或者双击所述第三标识的输入,或者是长按所述第三标识的输入。The third identification may be an identification for opening the operation log, and the third identification may be displayed in the identification display interface. The third input may be an input of clicking the third logo, an input of double-clicking the third logo, or an input of long-pressing the third logo.

具体来说,所述电子设备响应于所述第三输入,打开操作日志,并在操作日志中显示与历史操作记录一一对应的历史操作标识,或者说响应于所述第三输入,显示操作日志中至少一条历史操作记录对应的历史操作标识。例如,请参阅图4,所述操作日志中第一条历史操作记录对应的历史操作标识即“删除选中”,第二条历史操作记录对应的历史操作标识即“选中“录音”文件夹”。其中,如果所述电子设备为每个应用程序(包括系统)都建立了一个用来存储用户对该应用程序的操作对应的历史操作记录,那么响应于所述第三输入显示的操作日志可以包括一个文件夹中保存的全部历史操作记录的列表。Specifically, the electronic device opens an operation log in response to the third input, and displays a historical operation identifier corresponding to the historical operation record in the operation log, or in response to the third input, displays the operation log The historical operation identifier corresponding to at least one historical operation record in the log. For example, referring to FIG. 4 , the historical operation identifier corresponding to the first historical operation record in the operation log is “delete selection”, and the historical operation identifier corresponding to the second historical operation record is “selecting the “recording” folder”. Wherein, if the electronic device has established a historical operation record for each application (including the system) for storing the user's operation corresponding to the application, the operation log displayed in response to the third input may include A list of all historical operation records saved in a folder.

本发明实施例中,用户可以直接根据历史操作标识指示的历史操作记录选择目标历史操作记录,从而选择要进行目标处理的目标历史操作,更加直观。In the embodiment of the present invention, the user can directly select the target historical operation record according to the historical operation record indicated by the historical operation identifier, so as to select the target historical operation to be processed by the target, which is more intuitive.

可选的,所述目标标识包括所述T个历史操作标识中的目标历史操作标识;Optionally, the target identification includes the target historical operation identification in the T historical operation identifications;

其中,所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间晚于所述目标历史操作标识指示的历史操作的所有历史操作;或者,Wherein, the target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all historical operations whose operation time is later than the historical operation indicated by the target historical operation identifier; or,

所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间早于所述目标历史操作标识指示的历史操作的所有已撤销历史操作。The target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all undone historical operations whose operation time is earlier than the historical operation indicated by the target historical operation identifier.

换句话说,所述第一输入是对目标历史操作记录对应的历史操作标识的输入,或者说所述第一输入是对目标历史操作记录的输入。In other words, the first input is the input to the historical operation identifier corresponding to the target historical operation record, or the first input is the input to the target historical operation record.

所述目标历史操作可以是所述目标历史操作记录对应的历史操作,例如在所述目标历史操作记录是最晚生成的历史操作记录(也即所述目标历史操作记录对应的历史操作的操作时间是所述操作日志中所有历史操作记录对应的历史操作的操作时间中最晚的)时,所述目标历史操作可以是所述目标历史操作记录对应的历史操作,相应的,所述目标处理为撤销或恢复。所述目标历史操作还可以包括所述目标历史操作记录对应的历史操作和所述目标历史操作记录之后的所有历史操作记录对应的历史操作(也即操作时间晚于所述目标历史操作记录对应的历史操作的全部历史操作),相应的,所述目标处理为撤销处理。所述目标历史操作还可以包括所述目标历史操作记录对应的历史操作和所述目标历史操作记录之前的所有的第四历史操作记录对应的历史操作,所述第四历史操作记录是已撤销的历史操作对应的历史操作记录,也即操作时间早于所述目标历史操作记录对应的历史操作的全部已撤销历史操作),相应的,所述目标处理为恢复处理。当然,所述目标历史操作还可以只包括操作时间晚于所述目标历史操作标识指示的历史操作的所有历史操作或操作时间早于所述目标历史操作标识指示的历史操作的所有已撤销历史操作,这里不再详述。The target historical operation may be the historical operation corresponding to the target historical operation record, for example, when the target historical operation record is the latest generated historical operation record (that is, the operation time of the historical operation corresponding to the target historical operation record). is the latest in the operation time of the historical operation corresponding to all historical operation records in the operation log), the target historical operation may be the historical operation corresponding to the target historical operation record, and accordingly, the target processing is Undo or redo. The target historical operation may also include the historical operation corresponding to the target historical operation record and the historical operation corresponding to all historical operation records after the target historical operation record (that is, the operation time is later than that corresponding to the target historical operation record. All historical operations of historical operations), correspondingly, the target processing is undo processing. The target historical operation may further include the historical operation corresponding to the target historical operation record and the historical operation corresponding to all the fourth historical operation records before the target historical operation record, and the fourth historical operation record is revoked. The historical operation record corresponding to the historical operation, that is, all the cancelled historical operations whose operation time is earlier than the historical operation corresponding to the target historical operation record), correspondingly, the target processing is a recovery processing. Of course, the target historical operation may also only include all historical operations whose operation time is later than the historical operation indicated by the target historical operation identifier or all undone historical operations whose operation time is earlier than the historical operation indicated by the target historical operation identifier , which will not be described in detail here.

也就是说,用户还可以通过对第三标识的第三输入打开操作日志,然后从操作日志中选择目标历史操作记录并撤销所述目标历史操作记录之后(可以包括目标历史操作记录)的所有历史操作记录对应的操作,或者恢复所述目标历史操作记录之前(也可以包括目标历史操作记录)所有的第四历史操作记录对应的操作,所述第四历史操作记录对应的历史操作为已撤销的操作。或者说,用户从操作日志中选择一个历史操作的历史操作记录,然后通过第一输入将所述电子设备恢复到该历史操作之前的状态,或者恢复到该历史操作之后下一个历史操作之前的状态。That is, the user can also open the operation log through the third input of the third identifier, and then select the target historical operation record from the operation log and cancel all the history after the target historical operation record (which may include the target historical operation record). The operation corresponding to the operation record, or the operation corresponding to all the fourth historical operation records before restoring the target historical operation record (which may also include the target historical operation record), and the historical operation corresponding to the fourth historical operation record is cancelled operate. In other words, the user selects a historical operation record of a historical operation from the operation log, and then restores the electronic device to the state before the historical operation through the first input, or restores to the state before the next historical operation after the historical operation .

举例来说,如果用户在对图3所示的文件夹列表依次进行了上述的五步操作之后,又不想这样操作了,想恢复图3中的状态,那么用户可以通过对第三标识的第三输入打开图4所示的操作日志,然后进行对第五条历史操作记录对应的历史操作标识的第一输入,即可撤销上述五步操作,恢复到图3所示的状态。For example, if the user does not want to perform the above-mentioned five-step operations on the folder list shown in Fig. 3 in turn, and wants to restore the state in Fig. Three inputs open the operation log shown in FIG. 4 , and then perform the first input of the historical operation identifier corresponding to the fifth historical operation record, the above five-step operation can be cancelled, and the state shown in FIG. 3 can be restored.

另外,如果用户在撤销了上述五步操作,恢复到图3所示的状态之后,又想要进行上述五步操作,那么用户可以通过对第三标识的第三输入打开图4所示的操作日志,然后进行对第一条历史操作记录(删除选中)对应的历史操作标识的第一输入,即可恢复上述五步操作,更新至图5所示的状态。In addition, if the user wants to perform the above-mentioned five-step operation after revoking the above-mentioned five-step operation and returning to the state shown in FIG. 3 , the user can open the operation shown in FIG. 4 through the third input of the third identifier log, and then perform the first input of the historical operation identifier corresponding to the first historical operation record (delete selection), the above five-step operation can be restored, and the state shown in FIG. 5 can be updated.

本发明实施例中,用户可以直接在操作日志中选择目标历史操作记录,比较直观,而且能够一次性撤销或恢复多个历史操作。In the embodiment of the present invention, the user can directly select the target historical operation record in the operation log, which is more intuitive, and can undo or restore multiple historical operations at one time.

另外,如果当前应用程序的进程被关闭,再次启动该应用程序时之前的部分或全部操作丢失,就可以通过对第三标识的第三输入打开操作日志,恢复丢失的操作。例如,如果用户当前正在编辑一个文档,还没来得及保存就被关闭(例如发生闪退),再次打开后发现有些编辑操作丢失,那么就可以通过保存的历史操作记录恢复丢失的操作,以避免用户需要重新进行丢失的操作,尤其是在丢失的操作较多的情况下,可以大大降低用户的工作量。In addition, if the process of the current application is closed, and some or all of the previous operations are lost when the application is started again, the operation log can be opened through the third input of the third identifier to restore the lost operations. For example, if the user is currently editing a document, it is closed before saving (for example, a flashback occurs), and some editing operations are lost after opening it again, then the lost operations can be restored through the saved historical operation records to avoid the user The lost operation needs to be performed again, especially in the case of many lost operations, which can greatly reduce the workload of the user.

可选的,所述接收用户对目标标识的第一输入之前,还包括:Optionally, before the receiving the first input of the target identifier by the user, the method further includes:

接收用户的第四输入;receiving a fourth input from the user;

响应于所述第四输入,为所述操作日志中的第二历史操作记录,增加第四标识,所述第四标识用于标记所述第二历史操作记录;In response to the fourth input, a fourth identification is added for the second historical operation record in the operation log, and the fourth identification is used to mark the second historical operation record;

所述接收用户对第三标识的第三输入之后,还包括:After receiving the third input of the third identifier by the user, the method further includes:

显示所述第四标识;displaying the fourth logo;

其中,所述目标标识为所述第四标识;所述目标历史操作包括所述第二历史操作记录对应的历史操作和与所述第二历史操作记录关联的至少一条历史操作记录对应的历史操作。The target identifier is the fourth identifier; the target historical operation includes a historical operation corresponding to the second historical operation record and a historical operation corresponding to at least one historical operation record associated with the second historical operation record .

关联是指历史操作记录对应的操作时间接近,例如按照操作时间顺序排列的连续N(N为大于1的整数)个历史操作记录,或者关联是指历史操作记录对应的历史操作逻辑上紧密相关。例如,请参阅图4,在打开操作日志后,第四条历史操作记录(将“下载”文件夹重命名为“download”)左边显示有第四标识,具体是星标2,与该第四条历史操作记录(也即第二历史操作记录)关联的历史操作记录是对应的操作时间接近的第五条历史操作记录(选中“下载”文件夹)。或者说,与该第四条历史操作记录关联的是逻辑上相关的第五条历史操作记录,因为要将“下载”文件夹重命名为“download”,首先得选中“下载”文件夹。具体如何关联以及关联历史操作记录的条数可以根据实际需要设置。Association means that the operation times corresponding to the historical operation records are close, for example, consecutive N (N is an integer greater than 1) historical operation records arranged in the order of operation time, or association means that the historical operation records corresponding to the historical operation records are logically closely related. For example, referring to Figure 4, after opening the operation log, the fourth historical operation record (rename the "download" folder to "download") has a fourth logo on the left, specifically the star 2, which is the same as the fourth historical operation record (rename the "download" folder to "download"). The historical operation record associated with the historical operation record (that is, the second historical operation record) is the fifth historical operation record (select the "download" folder) whose corresponding operation time is close. In other words, the fourth historical operation record is associated with the logically related fifth historical operation record, because to rename the "download" folder to "download", the "download" folder must be selected first. How to associate and the number of associated historical operation records can be set according to actual needs.

举例来说,用户在对图3所示的文件夹列表依次进行上述的五步操作过程中,在进行到第二步操作(也即将“下载”文件夹重命名为“download”)时,如果认为该操作为关键性的操作,就可以通过对第三标识的第三输入,打开操作日志,并通过第四输入为第二步操作对应的历史操作记录添加星标2,之后继续进行剩下的三步操作。在上述的五步操作全部完成之后,用户可通过对第三标识的第三输入打开图4所示的操作日志,其中显示“将“下载”文件夹重命名为“download””这一历史操作记录对应的历史操作标识的区域附近显示有星标2。从而,后续如果用户想要撤销或恢复该关键性的操作(将“下载”文件夹重命名为“download”),或者想要撤销或恢复该关键性的操作以及与其关联的一个或多个历史操作,可以直接对所述第四标识输入所述第一输入,或者根据所述标记(星标2)选择该关键性的操作对应的操作记录。For example, when the user performs the above-mentioned five-step operation on the folder list shown in FIG. If the operation is considered to be a critical operation, the operation log can be opened through the third input of the third identifier, and a star 2 can be added to the historical operation record corresponding to the operation of the second step through the fourth input, and then continue with the rest three-step operation. After the above-mentioned five-step operations are all completed, the user can open the operation log shown in FIG. 4 through the third input of the third identifier, which displays the historical operation of "rename the "download" folder to "download"" An asterisk 2 is displayed near the area where the corresponding historical operation ID is recorded. Thus, if the user subsequently wants to undo or redo the critical operation (rename the "download" folder to "download"), or wants to undo or redo the critical operation and one or more histories associated with it operation, the first input can be directly input to the fourth identifier, or the operation record corresponding to the critical operation can be selected according to the mark (star 2).

本发明实施例中,为操作日志中的第二历史操作记录增加第四标识,从而能够直接通过对第四标识的第一输入,对所述第二历史操作记录对应的历史操作和与所述第二历史操作记录关联的至少一条历史操作记录对应的历史操作进行目标处理,不仅可以一次性对多个历史操作进行目标处理,而且操作简单方便。另外,为操作日志中的第二历史操作记录增加第四标识,还可以使得用户在打开操作日志时可以很容易找到该第二历史操作记录。In this embodiment of the present invention, a fourth identifier is added to the second historical operation record in the operation log, so that the historical operation corresponding to the second historical operation record and the Target processing can be performed on historical operations corresponding to at least one historical operation record associated with the second historical operation record, not only can target processing be performed on multiple historical operations at one time, but also the operation is simple and convenient. In addition, adding a fourth identifier to the second historical operation record in the operation log also enables the user to easily find the second historical operation record when opening the operation log.

可选的,所述接收用户对目标标识的第一输入之前,还包括:Optionally, before the receiving the first input of the target identifier by the user, the method further includes:

接收用户的第五输入;receiving a fifth input from the user;

响应于所述第五输入,显示所述目标标识。The target identification is displayed in response to the fifth input.

本发明实施例中,在接收用户对目标标识的第一输入之前,就通过第五输入显示所述目标标识,以使得用户可以方便地对所述目标标识进行所述第一输入。In this embodiment of the present invention, before receiving the first input of the target identifier by the user, the target identifier is displayed through the fifth input, so that the user can conveniently perform the first input on the target identifier.

具体来说,所述响应于所述第五输入,显示所述目标标识包括:响应于所述第五输入,开启目标模式,并显示所述目标标识;其中,处于所述目标模式的所述电子设备记录用户操作所述电子设备的历史操作记录。Specifically, the displaying the target identification in response to the fifth input includes: in response to the fifth input, turning on a target mode and displaying the target identification; wherein the target mode is in the target mode. The electronic device records a historical operation record of the user operating the electronic device.

其他可选的具体实施方式中,所述响应于所述第五输入,显示所述目标标识包括:响应于所述第五输入,开启目标模式,并显示标识显示界面。In other optional specific implementation manners, the displaying the target identifier in response to the fifth input includes: in response to the fifth input, enabling a target mode and displaying an identifier display interface.

例如,响应于所述第五输入,开启文本编辑模式,显示文本编辑框,并显示所述标识显示界面1;其中,所述历史操作为文本编辑操作;For example, in response to the fifth input, a text editing mode is turned on, a text editing box is displayed, and the identification display interface 1 is displayed; wherein, the historical operation is a text editing operation;

又例如,响应于所述第五输入,开启非文本编辑模式,并显示所述标识显示界面1;其中,所述历史操作为在开启所述非文本编辑模式之后,对目标对象的操作,所述目标对象是除文本内容以外的对象。For another example, in response to the fifth input, a non-text editing mode is turned on, and the identification display interface 1 is displayed; wherein, the historical operation is an operation on the target object after turning on the non-text editing mode, so The stated target object is an object other than the text content.

可选的,所述标识显示界面1也可以称为快捷操作条,所述标识显示界面1上显示的每一标识即为一个快捷操作控件。Optionally, the logo display interface 1 may also be called a shortcut operation bar, and each logo displayed on the logo display interface 1 is a shortcut operation control.

也就是说,本发明实施例中,在用户输入所述第二输入之前即显示所述标识显示界面1,以便用户在输入所述第二输入且所述电子设备响应所述第二输入执行对应的第一操作之后,即可撤销所述第一操作。That is to say, in this embodiment of the present invention, the identification display interface 1 is displayed before the user inputs the second input, so that the user inputs the second input and the electronic device performs corresponding operations in response to the second input. After the first operation, the first operation can be undone.

具体的,如图6所示,如果历史操作为文本编辑操作,那么在用户调起文本编辑框3的时候,所述电子设备就默认在文本编辑框3上方显示所述标识显示界面1。具体的,所述文本编辑框3可以是文本编辑控件列表,例如包括多个控件的输入法界面。其他的可选具体实施方式中,所述文本编辑框也可以是用于显示文本编辑内容的显示框。Specifically, as shown in FIG. 6 , if the historical operation is a text editing operation, when the user calls up the text editing box 3 , the electronic device displays the identification display interface 1 above the text editing box 3 by default. Specifically, the text editing box 3 may be a list of text editing controls, such as an input method interface including multiple controls. In other optional specific implementation manners, the text editing box may also be a display box for displaying text editing content.

如果用户的历史操作为开启所述非文本编辑模式之后,对除文本内容以外的其他对象进行的操作,那么在接收用户的第五输入,并响应于所述第五输入开启所述非文本编辑模式时显示所述标识显示界面1。其中,所述第五输入可以是持续时长大于预设值的按压输入,也即长按输入。If the user's historical operation is an operation performed on objects other than the text content after the non-text editing mode is turned on, then a fifth input from the user is received, and the non-text editing is turned on in response to the fifth input In the mode, the logo display interface 1 is displayed. The fifth input may be a pressing input with a duration longer than a preset value, that is, a long pressing input.

可选的,所述除文本内容以外的其他对象可以是文件、文件夹、照片、整条短信、通话记录和桌面图标等。其中,在所述其他对象是照片时,所述标识显示界面1的显示请参阅图7。在所述其他对象是文件夹时,所述标识显示界面1的显示请参阅图3。在所述其他对象是整条短信时,所述标识显示界面1的显示请参阅图8。其他的,这里不再一一列举。Optionally, the objects other than text content may be files, folders, photos, entire text messages, call records, desktop icons, and the like. Wherein, when the other object is a photo, please refer to FIG. 7 for the display of the logo display interface 1 . When the other object is a folder, please refer to FIG. 3 for the display of the identification display interface 1 . When the other object is the entire short message, please refer to FIG. 8 for the display of the identification display interface 1 . Others will not be listed here.

综上,所述电子设备可以在所有用户可编辑的界面(例如文本编辑操作界面、文件操作界面、相册操作界面、系统设置界面等)提供所述标识显示界面1,方便用户快速撤销操作,或者恢复操作,或者快捷将电子设备切换到任意操作时间点的状态。To sum up, the electronic device can provide the logo display interface 1 on all user-editable interfaces (such as text editing operation interface, file operation interface, album operation interface, system setting interface, etc.), so as to facilitate the user to quickly undo the operation, or Resume operation, or quickly switch the electronic device to the state of any operation point in time.

具体的,所述标识显示界面1上显示有上述的第一标识11、第二标识12和第三标识13中的至少之一。Specifically, the logo display interface 1 displays at least one of the above-mentioned first logo 11 , second logo 12 and third logo 13 .

本发明实施例中,通过在电子设备中增加一组全局快捷操作控件(也即标识显示界面1中的标识),方便用户进行以下快捷操作中的至少之一:撤销一个或多个历史操作、恢复已撤销的历史操作,回到任意操作时间点。In this embodiment of the present invention, by adding a group of global shortcut operation controls (that is, the identifier in the identifier display interface 1) in the electronic device, it is convenient for the user to perform at least one of the following shortcut operations: undo one or more historical operations, Redo the undone historical operation and go back to any operation time point.

可选的,所述接收用户对第三标识的第三输入之后,还包括:Optionally, after receiving the third input of the third identifier by the user, the method further includes:

显示T个操作时间标识,每个操作时间标识指示一个历史操作标识指示的历史操作的操作时间;T operation time marks are displayed, and each operation time mark indicates the operation time of the historical operation indicated by a historical operation mark;

其中,所述目标标识为所述T个操作时间标识中的目标操作时间标识;所述目标历史操作包括操作时间晚于或早于所述目标操作时间标识的所有历史操作标识指示的历史操作。The target identifier is the target operation time identifier in the T operation time identifiers; the target historical operation includes the historical operations indicated by all historical operation identifiers whose operation time is later or earlier than the target operation time identifier.

所述目标历史操作包括操作时间晚于所述目标操作时间标识所指示的历史操作的所有历史操作,或者包括操作时间早于所述目标操作时间标识所指示的历史操作的所有已撤销历史操作。The target historical operation includes all historical operations whose operation time is later than the historical operation indicated by the target operation time identifier, or all undone historical operations whose operation time is earlier than the historical operation indicated by the target operation time identifier.

本发明实施例中,如果用户需要撤销某一时间点之后的所有历史操作,或需要恢复某一时间点之前的所有已撤销的历史操作,可以直接对相应操作时间标识进行所述第一输入,更加直观方便。In this embodiment of the present invention, if the user needs to revoke all the historical operations after a certain time point, or needs to restore all the cancelled historical operations before a certain time point, the first input can be directly performed on the corresponding operation time stamp, More intuitive and convenient.

另外,在所述目标标识为所述T个操作时间标识中的目标操作时间标识的情况下,所述目标历史操作还可以包括所述目标操作时间标识所指示的历史操作。In addition, when the target identifier is a target operation time identifier among the T operation time identifiers, the target historical operation may further include a historical operation indicated by the target operation time identifier.

本发明实施例中,所述接收用户对第三标识的第三输入之后,还包括:显示T个操作时间标识,每个操作时间标识指示一个历史操作标识指示的历史操作的操作时间。也就是说,所述操作日志中还包括执行所述目标历史操作记录对应的目标历史操作的时间,所述时间可以用于用户选择所述目标历史操作记录,以输入所述第一输入。In this embodiment of the present invention, after receiving the third input of the third identifier by the user, the method further includes: displaying T operation time markers, each operation time marker indicating an operation time of a historical operation indicated by a historical operation identifier. That is, the operation log further includes the time when the target historical operation corresponding to the target historical operation record is performed, and the time can be used by the user to select the target historical operation record to input the first input.

从而,用户可以根据所述操作日志中显示的时间(也即所述操作时间标识)选择撤销某一时间点之后的所有历史操作,或恢复某一时间点之前的已撤销历史操作,也即实现返回任意操作时间点功能。例如,如果想要撤销2月12日10:09之后(可以包括2月12日10:09的历史操作)的所有历史操作,可以直接点击第四条历史操作记录(将“下载”文件夹重命名为“download”)。Therefore, the user can choose to revoke all historical operations after a certain point in time according to the time displayed in the operation log (that is, the operation time stamp), or restore the undone historical operations before a certain point in time, that is, to achieve Returns any operation point-in-time function. For example, if you want to undo all historical operations after 10:09 on February 12 (which can include historical operations on February 12 at 10:09), you can directly click the fourth historical operation record (restore the "Download" folder named "download").

当然,在其他的可选具体实施方式中,所述操作日志中包括的时间可以不是执行所述历史目标操作记录对应的目标历史操作的时间,而是所述电子设备接收到所述目标历史操作对应的输入的时间。Of course, in other optional specific implementation manners, the time included in the operation log may not be the time when the target historical operation corresponding to the historical target operation record is performed, but the time when the electronic device receives the target historical operation corresponding input time.

本发明实施例中,通过保存用户操作电子设备的历史操作记录,来使得用户可以根据需要方便快捷地撤销用户的一个或多个历史操作,或者恢复用户的一个或多个已撤销的历史操作。具体来说,用户可以通过对用于撤销历史操作的第一标识的第一输入,撤销一个或多个历史操作;也可以通过对用于恢复历史操作的第二标识的第一输入,恢复一个或多个已撤销的历史操作;还可以通过对操作日志中与历史操作记录一一对应的历史操作标识的第一输入,撤销一个或多个历史操作,或恢复一个或多个已撤销的历史操作;还可以通过对操作日志中用于标记某一历史操作记录的第四标识的第一输入,撤销一个或多个历史操作,或恢复一个或多个已撤销的历史操作;还可以通过对操作日志中与历史操作记录一一对应的操作时间标识的第一输入,撤销一个或多个历史操作,或恢复一个或多个已撤销的历史操作。撤销或恢复历史操作的方式多样,用户可根据需要选择。In this embodiment of the present invention, by saving the historical operation record of the user operating the electronic device, the user can conveniently and quickly undo one or more historical operations of the user, or restore one or more historical operations that have been undone by the user. Specifically, the user can undo one or more historical operations through a first input of a first identifier for revoking historical operations; and can also recover one or more historical operations through a first input of a second identifier for reverting historical operations One or more historical operations that have been undone; one or more historical operations can also be revoked, or one or more historical operations that have been revoked can be restored through the first input of the historical operation identifiers in the operation log that correspond one-to-one with the historical operation records operation; one or more historical operations can also be revoked, or one or more revoked historical operations can be restored through the first input of the fourth identifier used to mark a historical operation record in the operation log; The first input of the operation time stamp in the operation log, which corresponds to the historical operation records one-to-one, cancels one or more historical operations, or restores one or more cancelled historical operations. There are various ways to undo or restore historical operations, and users can choose according to their needs.

请参阅图9,图9是本发明实施例提供的一种电子设备的结构示意图,该电子设备包括:Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device includes:

第一接收模块901,用于接收用户对目标标识的第一输入;The first receiving module 901 is used for receiving the first input of the target identifier by the user;

处理模块902,用于响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;The processing module 902 is configured to, in response to the first input, perform target processing on the target historical operation based on the target historical operation record in the preset operation log;

其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record.

在本发明实施例中,通过保存历史操作记录来记录用户对电子设备的历史操作,从而可以方便、快捷、准确地撤销用户的一个或多个历史操作,或者恢复用户的一个或多个已撤销的历史操作,以快捷、准确地将所述电子设备切换至用户的某一历史操作之前的状态或之后的状态。In this embodiment of the present invention, the user's historical operations on the electronic device are recorded by saving historical operation records, so that one or more historical operations of the user can be undone conveniently, quickly and accurately, or one or more undone operations of the user can be restored. to quickly and accurately switch the electronic device to a state before or after a certain historical operation of the user.

可选的,所述电子设备还包括:Optionally, the electronic device further includes:

第四接收模块,用于接收用户操作电子设备的第二输入;a fourth receiving module, configured to receive a second input of a user operating the electronic device;

操作执行模块,用于响应于所述第二输入,执行所述第二输入对应的第一操作,并在所述操作日志中增加一条与所述第一操作对应的第一历史操作记录。An operation execution module, configured to execute a first operation corresponding to the second input in response to the second input, and add a first historical operation record corresponding to the first operation in the operation log.

可选的,所述目标标识包括用于撤销历史操作的第一标识,所述第一输入为对所述第一标识的第N次输入;Optionally, the target identifier includes a first identifier for undoing a historical operation, and the first input is the Nth input to the first identifier;

所述处理模块902包括:The processing module 902 includes:

第一撤销单元,用于撤销所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中以第二历史操作记录开始的按照第一操作时间顺序的第N条历史操作记录;The first revocation unit is used to revoke the target historical operation corresponding to the target historical operation record, and the target historical operation record is the Nth item in the operation log that starts with the second historical operation record in the chronological order of the first operation historical operation records;

其中,所述第二历史操作记录是操作时间最晚的一条历史操作记录;所述第一操作时间顺序为从晚到早的顺序;N为正整数。The second historical operation record is a historical operation record with the latest operation time; the first operation time sequence is from late to early; N is a positive integer.

可选的,所述目标标识包括用于恢复历史操作的第二标识,所述第一输入为对所述第二标识的输入;Optionally, the target identifier includes a second identifier for restoring historical operations, and the first input is an input to the second identifier;

所述处理模块902包括:The processing module 902 includes:

第一恢复单元,用于恢复所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中操作时间最早的第三历史操作记录,所述第三历史操作记录对应的历史操作已被撤销且未被恢复。The first recovery unit is used to recover the target historical operation corresponding to the target historical operation record, the target historical operation record is the third historical operation record with the earliest operation time in the operation log, and the third historical operation record corresponds to 's historical operations have been undone and not restored.

可选的,所述电子设备还包括:Optionally, the electronic device further includes:

第二接收模块,用于接收用户对第三标识的第三输入;The second receiving module is used for receiving the third input of the third identifier by the user;

第一显示模块,用于响应于所述第三输入,显示T个历史操作标识,其中,每个历史操作标识指示预设的操作日志中的一条历史操作记录;a first display module for displaying T historical operation identifiers in response to the third input, wherein each historical operation identifier indicates a historical operation record in a preset operation log;

所述处理模块902包括:The processing module 902 includes:

确定单元,用于确定所述目标历史操作记录;a determining unit for determining the target historical operation record;

其中,T为正整数。where T is a positive integer.

可选的,所述目标标识包括所述T个历史操作标识中的目标历史操作标识;Optionally, the target identification includes the target historical operation identification in the T historical operation identifications;

其中,所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间晚于所述目标历史操作标识指示的历史操作的所有历史操作;或者,Wherein, the target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all historical operations whose operation time is later than the historical operation indicated by the target historical operation identifier; or,

所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间早于所述目标历史操作标识指示的历史操作的所有已撤销历史操作。The target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all undone historical operations whose operation time is earlier than the historical operation indicated by the target historical operation identifier.

可选的,所述电子设备还包括:Optionally, the electronic device further includes:

第三接收模块,用于接收用户的第四输入;The third receiving module is used for receiving the fourth input of the user;

增加模块,用于响应于所述第四输入,为所述操作日志中的第二历史操作记录,增加第四标识,所述第四标识用于标记所述第二历史操作记录;an adding module for adding a fourth identification for the second historical operation record in the operation log in response to the fourth input, and the fourth identification is used to mark the second historical operation record;

第二显示模块,用于显示所述第四标识;a second display module, configured to display the fourth logo;

其中,所述目标标识为所述第四标识;所述目标历史操作包括所述第二历史操作记录对应的历史操作和与所述第二历史操作记录关联的至少一条历史操作记录对应的历史操作。The target identifier is the fourth identifier; the target historical operation includes a historical operation corresponding to the second historical operation record and a historical operation corresponding to at least one historical operation record associated with the second historical operation record .

可选的,所述电子设备还包括:Optionally, the electronic device further includes:

第五接收模块,用于接收用户的第五输入;a fifth receiving module, configured to receive the fifth input of the user;

第三显示模块,用于响应于所述第五输入,显示所述目标标识。A third display module, configured to display the target identifier in response to the fifth input.

可选的,所述电子设备,还包括:Optionally, the electronic device further includes:

第三显示模块,用于显示T个操作时间标识,每个操作时间标识指示一个历史操作标识指示的历史操作的操作时间;The third display module is used to display T operation time marks, and each operation time mark indicates the operation time of the historical operation indicated by a historical operation mark;

其中,所述目标标识为所述T个操作时间标识中的目标操作时间标识;所述目标历史操作包括操作时间晚于或早于所述目标操作时间标识的所有历史操作标识指示的历史操作。The target identifier is the target operation time identifier in the T operation time identifiers; the target historical operation includes the historical operations indicated by all historical operation identifiers whose operation time is later or earlier than the target operation time identifier.

本发明实施例提供的电子设备,能够实现图1至图8对应的方法实施例中的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each process in the method embodiment corresponding to FIG. 1 to FIG. 8 , and to avoid repetition, details are not repeated here.

图10为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010、以及电源1011等部件。本领域技术人员可以理解,图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。10 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention. The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, and a display unit 1006 , user input unit 1007 , interface unit 1008 , memory 1009 , processor 1010 , and power supply 1011 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,用户输入单元1007,用于接收用户对目标标识的第一输入;处理器1010,用于响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;Wherein, the user input unit 1007 is used for receiving the first input of the user on the target identification; the processor 1010 is used for responding to the first input, based on the target historical operation record in the preset operation log, to the target historical operation record carry out targeted processing;

其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record.

本发明实施例提供的电子设备能够实现图1至图8的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIG. 1 to FIG. 8 , and to avoid repetition, details are not repeated here.

在本发明实施例中,通过保存历史操作记录来记录用户对电子设备的历史操作,从而可以方便、快捷、准确地撤销用户的一个或多个历史操作,或者恢复用户的一个或多个已撤销的历史操作,以快捷、准确地将所述电子设备切换至用户的某一历史操作之前的状态或之后的状态。In this embodiment of the present invention, the user's historical operations on the electronic device are recorded by saving historical operation records, so that one or more historical operations of the user can be undone conveniently, quickly and accurately, or one or more undone operations of the user can be restored. to quickly and accurately switch the electronic device to a state before or after a certain historical operation of the user.

应理解的是,本发明实施例中,射频单元1001可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1010处理;另外,将上行的数据发送给基站。通常,射频单元1001包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1001还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1010; The uplink data is sent to the base station. Generally, the radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1001 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块1002为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network module 1002, such as helping the user to send and receive emails, browse web pages, and access streaming media.

音频输出单元1003可以将射频单元1001或网络模块1002接收的或者在存储器1009中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1003还可以提供与电子设备1000执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1003包括扬声器、蜂鸣器以及受话器等。The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into audio signals and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the electronic device 1000 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.

输入单元1004用于接收音频或视频信号。输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1006上。经图形处理器10041处理后的图像帧可以存储在存储器1009(或其它存储介质)中或者经由射频单元1001或网络模块1002进行发送。麦克风10042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1001发送到移动通信基站的格式输出。The input unit 1004 is used to receive audio or video signals. The input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 captures still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 1006 . The image frames processed by the graphics processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002 . The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 1001 for output in the case of a telephone call mode.

电子设备1000还包括至少一种传感器1005,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板10061的亮度,接近传感器可在电子设备1000移动到耳边时,关闭显示面板10061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1005还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 10061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 10061 and the proximity sensor when the electronic device 1000 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元1006用于显示由用户输入的信息或提供给用户的信息。显示单元1006可包括显示面板10061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板10061。The display unit 1006 is used to display information input by the user or information provided to the user. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元1007可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板10071上或在触控面板10071附近的操作)。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1010,接收处理器1010发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板10071。除了触控面板10071,用户输入单元1007还可以包括其他输入设备10072。具体地,其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1007 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072 . The touch panel 10071, also known as the touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable objects or accessories on or near the touch panel 10071. operate). The touch panel 10071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 1010, the command sent by the processor 1010 is received and executed. In addition, the touch panel 10071 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 10071 , the user input unit 1007 may also include other input devices 10072 . Specifically, other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.

进一步的,触控面板10071可覆盖在显示面板10061上,当触控面板10071检测到在其上或附近的触摸操作后,传送给处理器1010以确定触摸事件的类型,随后处理器1010根据触摸事件的类型在显示面板10061上提供相应的视觉输出。虽然在图10中,触控面板10071与显示面板10061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板10071与显示面板10061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 10071 can be covered on the display panel 10061. When the touch panel 10071 detects a touch operation on or near it, it transmits it to the processor 1010 to determine the type of the touch event, and then the processor 1010 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on the display panel 10061. Although in FIG. 10 , the touch panel 10071 and the display panel 10061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 10071 and the display panel 10061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元1008为外部装置与电子设备1000连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1008可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备1000内的一个或多个元件或者可以用于在电子设备1000和外部装置之间传输数据。The interface unit 1008 is an interface for connecting an external device to the electronic device 1000 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 1008 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 1000 or may be used between the electronic device 1000 and external Transfer data between devices.

存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1009可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of electronic equipment (such as audio data, phone book, etc.), etc. Additionally, memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器1010是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1009内的软件程序和/或模块,以及调用存储在存储器1009内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器1010可包括一个或多个处理单元;可选的,处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 1009, and calling the data stored in the memory 1009. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010.

电子设备1000还可以包括给各个部件供电的电源1011(比如电池),可选的,电源1011可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 1000 may further include a power supply 1011 (such as a battery) for supplying power to various components. Optionally, the power supply 1011 may be logically connected to the processor 1010 through a power management system, so as to manage charging, discharging, and power consumption through the power management system management and other functions.

另外,电子设备1000包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 1000 includes some functional modules not shown, which will not be repeated here.

本发明实施例还提供一种电子设备,包括处理器1010,存储器1009,存储在存储器1009上并可在所述处理器1010上运行的计算机程序,该计算机程序被处理器1010执行时实现上述操作控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides an electronic device, including a processor 1010, a memory 1009, a computer program stored in the memory 1009 and running on the processor 1010, the computer program being executed by the processor 1010 to implement the above operations The various processes of the control method embodiments can achieve the same technical effect, and are not repeated here in order to avoid repetition.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述操作控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing operation control method embodiment can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (16)

1.一种操作控制方法,应用于电子设备,其特征在于,包括:1. An operation control method, applied to electronic equipment, is characterized in that, comprising: 接收用户对目标标识的第一输入;receiving the first input of the target identifier from the user; 响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;In response to the first input, target processing is performed on the target historical operation based on the target historical operation record in the preset operation log; 其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record. 2.根据权利要求1所述的方法,其特征在于,所述接收用户对目标标识的第一输入之前,还包括:2. The method according to claim 1, wherein before receiving the first input of the target identifier by the user, the method further comprises: 接收用户操作电子设备的第二输入;receiving a second input of a user operating the electronic device; 响应于所述第二输入,执行所述第二输入对应的第一操作,并在所述操作日志中增加一条与所述第一操作对应的第一历史操作记录。In response to the second input, a first operation corresponding to the second input is performed, and a first historical operation record corresponding to the first operation is added to the operation log. 3.根据权利要求1所述的方法,其特征在于,所述目标标识包括用于撤销历史操作的第一标识,所述第一输入为对所述第一标识的第N次输入;3. The method according to claim 1, wherein the target identification comprises a first identification for undoing a historical operation, and the first input is the Nth input to the first identification; 所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理,包括:The target processing is performed on the target historical operation based on the target historical operation record in the preset operation log, including: 撤销所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中以第二历史操作记录开始的按照第一操作时间顺序的第N条历史操作记录;revoke the target historical operation corresponding to the target historical operation record, the target historical operation record is the Nth historical operation record in the operation log starting with the second historical operation record according to the time sequence of the first operation; 其中,所述第二历史操作记录是操作时间最晚的一条历史操作记录;所述第一操作时间顺序为从晚到早的顺序;N为正整数。The second historical operation record is a historical operation record with the latest operation time; the first operation time sequence is from late to early; N is a positive integer. 4.根据权利要求1所述的方法,其特征在于,所述目标标识包括用于恢复历史操作的第二标识,所述第一输入为对所述第二标识的输入;4. The method according to claim 1, wherein the target identification comprises a second identification for restoring historical operations, and the first input is an input to the second identification; 所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理,包括:The target processing is performed on the target historical operation based on the target historical operation record in the preset operation log, including: 恢复所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中操作时间最早的第三历史操作记录,所述第三历史操作记录对应的历史操作已被撤销且未被恢复。Restore the target historical operation corresponding to the target historical operation record, the target historical operation record is the third historical operation record with the earliest operation time in the operation log, and the historical operation corresponding to the third historical operation record has been revoked and not recovered. 5.根据权利要求1所述的方法,其特征在于,所述接收用户对目标标识的第一输入之前,还包括:5. The method according to claim 1, wherein before receiving the first input of the target identifier by the user, the method further comprises: 接收用户对第三标识的第三输入;receiving a third input of a third identifier by the user; 响应于所述第三输入,显示T个历史操作标识,其中,每个历史操作标识指示预设的操作日志中的一条历史操作记录;In response to the third input, display T historical operation identifiers, wherein each historical operation identifier indicates a historical operation record in a preset operation log; 所述基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理之前,还包括:Before performing the target processing on the target historical operation based on the target historical operation record in the preset operation log, the method further includes: 确定所述目标历史操作记录;determining the target historical operation record; 其中,T为正整数。where T is a positive integer. 6.根据权利要求5所述的方法,其特征在于,所述目标标识包括所述T个历史操作标识中的目标历史操作标识;6. The method according to claim 5, wherein the target identification comprises a target historical operation identification in the T historical operation identifications; 其中,所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间晚于所述目标历史操作标识指示的历史操作的所有历史操作;或者,Wherein, the target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all historical operations whose operation time is later than the historical operation indicated by the target historical operation identifier; or, 所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间早于所述目标历史操作标识指示的历史操作的所有已撤销历史操作。The target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all undone historical operations whose operation time is earlier than the historical operation indicated by the target historical operation identifier. 7.根据权利要求5所述的方法,其特征在于,所述接收用户对目标标识的第一输入之前,还包括:7. The method according to claim 5, wherein before receiving the first input of the target identifier by the user, the method further comprises: 接收用户的第四输入;receiving a fourth input from the user; 响应于所述第四输入,为所述操作日志中的第二历史操作记录,增加第四标识,所述第四标识用于标记所述第二历史操作记录;In response to the fourth input, a fourth identification is added for the second historical operation record in the operation log, and the fourth identification is used to mark the second historical operation record; 所述接收用户对第三标识的第三输入之后,还包括:After receiving the third input of the third identifier by the user, the method further includes: 显示所述第四标识;displaying the fourth logo; 其中,所述目标标识为所述第四标识;所述目标历史操作包括所述第二历史操作记录对应的历史操作和与所述第二历史操作记录关联的至少一条历史操作记录对应的历史操作。The target identifier is the fourth identifier; the target historical operation includes a historical operation corresponding to the second historical operation record and a historical operation corresponding to at least one historical operation record associated with the second historical operation record . 8.根据权利要求1所述的方法,其特征在于,所述接收用户对目标标识的第一输入之前,还包括:8. The method according to claim 1, wherein before receiving the first input of the target identifier by the user, the method further comprises: 接收用户的第五输入;receiving a fifth input from the user; 响应于所述第五输入,显示所述目标标识。The target identification is displayed in response to the fifth input. 9.根据权利要求5所述的方法,其特征在于,所述接收用户对第三标识的第三输入之后,还包括:9. The method according to claim 5, wherein after receiving the third input of the third identifier by the user, the method further comprises: 显示T个操作时间标识,每个操作时间标识指示一个历史操作标识指示的历史操作的操作时间;T operation time marks are displayed, and each operation time mark indicates the operation time of the historical operation indicated by a historical operation mark; 其中,所述目标标识为所述T个操作时间标识中的目标操作时间标识;所述目标历史操作包括操作时间晚于或早于所述目标操作时间标识的所有历史操作标识指示的历史操作。The target identifier is the target operation time identifier in the T operation time identifiers; the target historical operation includes the historical operations indicated by all historical operation identifiers whose operation time is later or earlier than the target operation time identifier. 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 第一接收模块,用于接收用户对目标标识的第一输入;a first receiving module, configured to receive the first input of the target identifier by the user; 处理模块,用于响应于所述第一输入,基于预设的操作日志中的目标历史操作记录,对目标历史操作进行目标处理;a processing module, configured to perform target processing on the target historical operation based on the target historical operation record in the preset operation log in response to the first input; 其中,所述目标历史操作记录是基于所述第一输入确定的至少一条历史操作记录;所述目标处理包括撤销处理或恢复处理;所述操作日志包括预先存储的至少一条用户操作电子设备的历史操作记录;所述目标历史操作为所述目标历史操作记录对应的至少一项历史操作。The target historical operation record is at least one historical operation record determined based on the first input; the target processing includes undo processing or recovery processing; the operation log includes at least one pre-stored history of the user operating the electronic device Operation record; the target historical operation is at least one historical operation corresponding to the target historical operation record. 11.根据权利要求10所述的电子设备,其特征在于,所述目标标识包括用于撤销历史操作的第一标识,所述第一输入为对所述第一标识的第N次输入;11. The electronic device according to claim 10, wherein the target identification comprises a first identification for undoing a historical operation, and the first input is the Nth input to the first identification; 所述处理模块包括:The processing module includes: 第一撤销单元,用于撤销所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中以第二历史操作记录开始的按照第一操作时间顺序的第N条历史操作记录;The first revocation unit is used to revoke the target historical operation corresponding to the target historical operation record, and the target historical operation record is the Nth item in the operation log that starts with the second historical operation record in the chronological order of the first operation historical operation records; 其中,所述第二历史操作记录是操作时间最晚的一条历史操作记录;所述第一操作时间顺序为从晚到早的顺序;N为正整数。The second historical operation record is a historical operation record with the latest operation time; the first operation time sequence is from late to early; N is a positive integer. 12.根据权利要求10所述的电子设备,其特征在于,所述目标标识包括用于恢复历史操作的第二标识,所述第一输入为对所述第二标识的输入;12. The electronic device according to claim 10, wherein the target identification comprises a second identification for restoring historical operations, and the first input is an input to the second identification; 所述处理模块包括:The processing module includes: 第一恢复单元,用于恢复所述目标历史操作记录对应的目标历史操作,所述目标历史操作记录是所述操作日志中操作时间最早的第三历史操作记录,所述第三历史操作记录对应的历史操作已被撤销且未被恢复。The first recovery unit is used to recover the target historical operation corresponding to the target historical operation record, the target historical operation record is the third historical operation record with the earliest operation time in the operation log, and the third historical operation record corresponds to 's historical operations have been undone and not restored. 13.根据权利要求10所述的电子设备,其特征在于,还包括:13. The electronic device of claim 10, further comprising: 第二接收模块,用于接收用户对第三标识的第三输入;The second receiving module is used for receiving the third input of the third identifier by the user; 第一显示模块,用于响应于所述第三输入,显示T个历史操作标识,其中,每个历史操作标识指示预设的操作日志中的一条历史操作记录;a first display module for displaying T historical operation identifiers in response to the third input, wherein each historical operation identifier indicates a historical operation record in a preset operation log; 所述处理模块包括:The processing module includes: 确定单元,用于确定所述目标历史操作记录;a determining unit for determining the target historical operation record; 其中,T为正整数。where T is a positive integer. 14.根据权利要求13所述的电子设备,其特征在于,所述目标标识包括所述T个历史操作标识中的目标历史操作标识;14. The electronic device according to claim 13, wherein the target identifier comprises a target historical operation identifier in the T historical operation identifiers; 其中,所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间晚于所述目标历史操作标识指示的历史操作的所有历史操作;或者,Wherein, the target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all historical operations whose operation time is later than the historical operation indicated by the target historical operation identifier; or, 所述目标历史操作包括以下至少一项:所述目标历史操作标识指示的历史操作、操作时间早于所述目标历史操作标识指示的历史操作的所有已撤销历史操作。The target historical operation includes at least one of the following: the historical operation indicated by the target historical operation identifier, and all undone historical operations whose operation time is earlier than the historical operation indicated by the target historical operation identifier. 15.根据权利要求13所述的电子设备,其特征在于,还包括:15. The electronic device of claim 13, further comprising: 第三接收模块,用于接收用户的第四输入;The third receiving module is used for receiving the fourth input of the user; 增加模块,用于响应于所述第四输入,为所述操作日志中的第二历史操作记录,增加第四标识,所述第四标识用于标记所述第二历史操作记录;an adding module for adding a fourth identification for the second historical operation record in the operation log in response to the fourth input, and the fourth identification is used to mark the second historical operation record; 第二显示模块,用于显示所述第四标识;a second display module, configured to display the fourth logo; 其中,所述目标标识为所述第四标识;所述目标历史操作包括所述第二历史操作记录对应的历史操作和与所述第二历史操作记录关联的至少一条历史操作记录对应的历史操作。The target identifier is the fourth identifier; the target historical operation includes a historical operation corresponding to the second historical operation record and a historical operation corresponding to at least one historical operation record associated with the second historical operation record . 16.根据权利要求13所述的电子设备,其特征在于,还包括:16. The electronic device of claim 13, further comprising: 第三显示模块,用于显示T个操作时间标识,每个操作时间标识指示一个历史操作标识指示的历史操作的操作时间;The third display module is used to display T operation time marks, and each operation time mark indicates the operation time of the historical operation indicated by a historical operation mark; 其中,所述目标标识为所述T个操作时间标识中的目标操作时间标识;Wherein, the target identification is the target operation time identification in the T operation time identifications; 所述目标历史操作包括操作时间晚于或早于所述目标操作时间标识的所有历史操作标识指示的历史操作。The target historical operation includes the historical operations indicated by all historical operation identifiers whose operation time is later or earlier than the target operation time identifier.
CN202010236841.8A 2020-03-30 2020-03-30 Operation control method and electronic device Pending CN111459717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236841.8A CN111459717A (en) 2020-03-30 2020-03-30 Operation control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236841.8A CN111459717A (en) 2020-03-30 2020-03-30 Operation control method and electronic device

Publications (1)

Publication Number Publication Date
CN111459717A true CN111459717A (en) 2020-07-28

Family

ID=71683386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236841.8A Pending CN111459717A (en) 2020-03-30 2020-03-30 Operation control method and electronic device

Country Status (1)

Country Link
CN (1) CN111459717A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148190A (en) * 2020-09-23 2020-12-29 上海联影医疗科技股份有限公司 Operation control method, device, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331166A (en) * 2014-11-28 2015-02-04 小米科技有限责任公司 Set operation revocation method, set operation revocation device and electronic equipment
CN108762648A (en) * 2018-04-28 2018-11-06 维沃移动通信有限公司 Screen operation control method and mobile terminal
CN110888688A (en) * 2019-11-21 2020-03-17 维沃移动通信有限公司 A kind of setting restoration method of electronic equipment and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331166A (en) * 2014-11-28 2015-02-04 小米科技有限责任公司 Set operation revocation method, set operation revocation device and electronic equipment
CN108762648A (en) * 2018-04-28 2018-11-06 维沃移动通信有限公司 Screen operation control method and mobile terminal
CN110888688A (en) * 2019-11-21 2020-03-17 维沃移动通信有限公司 A kind of setting restoration method of electronic equipment and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148190A (en) * 2020-09-23 2020-12-29 上海联影医疗科技股份有限公司 Operation control method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN108958865B (en) Corner mark management method and mobile terminal
CN109343755B (en) File processing method and terminal equipment
CN108646958B (en) A kind of application program startup method and terminal
WO2020181942A1 (en) Icon control method and terminal device
CN110308839B (en) A file management method and terminal device
CN110618969B (en) Icon display method and electronic equipment
CN110007835B (en) Object management method and mobile terminal
WO2020199934A1 (en) Information processing method and terminal device
WO2020258929A1 (en) Folder interface switching method and terminal device
CN108255372B (en) A kind of desktop application icon arrangement method and mobile terminal
WO2020215949A1 (en) Object processing method and terminal device
CN111338530A (en) Application icon control method and electronic device
CN111447324A (en) Message display method and electronic device
CN110795189A (en) Application starting method and electronic equipment
WO2020259033A1 (en) File management method and terminal
CN109358784A (en) Method, terminal device and storage medium for organizing icons
CN108170329B (en) Display control method and terminal equipment
CN110231900A (en) A kind of application icon display methods and terminal
WO2021083131A1 (en) Display method and terminal device
CN111610903A (en) Information display method and electronic device
CN110879680A (en) Icon management method and electronic equipment
CN111610904A (en) Icon arrangement method, electronic device and storage medium
CN108763540A (en) A kind of file browsing method and terminal
CN110764845A (en) Application program setting method and electronic equipment
CN110515507B (en) Icon display method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200728