[go: up one dir, main page]

CN111368151A - Display method and electronic device - Google Patents

Display method and electronic device Download PDF

Info

Publication number
CN111368151A
CN111368151A CN202010125697.0A CN202010125697A CN111368151A CN 111368151 A CN111368151 A CN 111368151A CN 202010125697 A CN202010125697 A CN 202010125697A CN 111368151 A CN111368151 A CN 111368151A
Authority
CN
China
Prior art keywords
target
keyword
electronic device
input
display
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
CN202010125697.0A
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 CN202010125697.0A priority Critical patent/CN111368151A/en
Publication of CN111368151A publication Critical patent/CN111368151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种显示方法及电子设备,涉及通信技术领域,以解决电子设备填写信息,或查找文件的操作过程较为繁琐的问题。该方法包括:接收输入的目标关键词;在该目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。该方法可以应用于向电子设备输入较长的字符串和在电子设备中查找文件的场景中。

Figure 202010125697

The embodiment of the present invention discloses a display method and an electronic device, which relate to the field of communication technology, so as to solve the problem that the electronic device fills in information or searches for a file in a complicated operation process. The method includes: receiving an input target keyword; when the target keyword matches a preset keyword, displaying target information associated with the target keyword; wherein the target information is a target character string or a target file, The name of the target file does not include the target keyword. The method can be applied to the scenarios of inputting a long character string to an electronic device and searching for a file in the electronic device.

Figure 202010125697

Description

显示方法及电子设备Display method and electronic device

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种显示方法及电子设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a display method and an electronic device.

背景技术Background technique

随着通信技术的发展,电子设备的功能更加丰富,用户可以在电子设备的界面中填写登录信息,或者用户可以在电子设备中查找文件等。With the development of communication technology, the functions of the electronic device are more abundant, and the user can fill in the login information in the interface of the electronic device, or the user can search the file in the electronic device, and so on.

目前,一种情况为,用户在使用电子设备的应用程序时可能会需要输入较长的字符串,例如,身份证号或银行卡号等,但是对于某些不具备保存功能的应用程序,如果用户想要在这些应用程序中填写身份证号或银行卡号进行登录,那么用户需要在这些应用程序中输入该字符串,从而导致用户需要重新手动输入该字符串。另一种情况为,用户想要在电子设备中查找文件并执行对应操作,例如,用户从电子设备上查找一张图片并发送给好友,用户需要在电子设备的存储路径中逐个查找文件,直到找到该图片,并对该图片进行发送。At present, one situation is that users may need to input a long string when using an application of an electronic device, for example, an ID number or a bank card number. If you want to fill in the ID number or bank card number in these applications to log in, the user needs to enter the string in these applications, causing the user to manually enter the string again. Another situation is that the user wants to search for files in the electronic device and perform corresponding operations. For example, if the user searches for a picture from the electronic device and sends it to a friend, the user needs to search for files one by one in the storage path of the electronic device until Find the picture and send it.

如此,在上述两种情况下,用户可能需要重新手动输入字符串,或者用户可能需要逐个查找文件,从而导致上述填写信息,或查找文件的操作过程较为繁琐。In this way, in the above two cases, the user may need to manually input the character string again, or the user may need to search for files one by one, so that the above operation process of filling in the information or searching for a file is cumbersome.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种显示方法及电子设备,以解决电子设备填写信息,或查找文件的操作过程较为繁琐的问题。Embodiments of the present invention provide a display method and an electronic device, so as to solve the problem that the electronic device fills in information or searches for a file in a complicated operation process.

为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:

第一方面,本发明实施例提供了一种显示方法,该方法包括:接收输入的目标关键词;在该目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。In a first aspect, an embodiment of the present invention provides a display method, the method includes: receiving an input target keyword; in the case that the target keyword matches a preset keyword, displaying a target associated with the target keyword information; wherein, the target information is a target character string or a target file, and the name of the target file does not include the target keyword.

第二方面,本发明实施例提供了一种电子设备,该电子设备包括接收模块和显示模块。接收模块,可以用于接收输入的目标关键词;显示模块,可以用于在该目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括目标关键词。In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a receiving module and a display module. The receiving module can be used to receive the input target keyword; the display module can be used to display the target information associated with the target keyword when the target keyword matches the preset keyword; wherein, the target information is a target string or a target file whose name does not include the target keyword.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的显示方法的步骤。In a third aspect, an embodiment of the present invention 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 to implement the first The steps of the display method provided by the aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的显示方法的步骤。In a fourth aspect, an embodiment of the present invention 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, implements the steps of the display method provided in the first aspect.

在本发明实施例中,可以接收输入的目标关键词,并在目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。通过该方案,一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标字符串,因此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而节约用户时间。另一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标文件,因此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而方便寻找目标文件。综上,用户可以通过仅输入目标关键词,触发电子设备显示与该目标关键词关联的目标字符串或目标文件,从而可以提高电子设备的智能化程度,进而可以减少用户操作步骤。In this embodiment of the present invention, an input target keyword may be received, and when the target keyword matches a preset keyword, target information associated with the target keyword may be displayed; wherein, the target information is a target character string or a target file whose name does not include the target keyword. With this solution, on the one hand, since the electronic device can display the target character string associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword, but Saves the user time by eliminating the need to manually enter the entire string. On the other hand, since the electronic device can display the target file associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword to trigger the electronic device to display the target keyword. files, without the need for users to search for target files one by one, so as to facilitate the search for target files. To sum up, the user can trigger the electronic device to display the target character string or target file associated with the target keyword by only inputting the target keyword, thereby improving the intelligence of the electronic device and reducing user operation steps.

附图说明Description of drawings

图1为本发明实施例提供的一种安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种显示方法的示意图之一;2 is one of the schematic diagrams of a display method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种电子设备的操作示意图之一;3 is one of schematic diagrams of operations of an electronic device according to an embodiment of the present invention;

图4为本发明实施例提供的一种电子设备的操作示意图之二;FIG. 4 is the second schematic diagram of the operation of an electronic device according to an embodiment of the present invention;

图5为本发明实施例提供的一种显示方法的示意图之二;5 is a second schematic diagram of a display method provided by an embodiment of the present invention;

图6为本发明实施例提供的一种显示方法的示意图之三;FIG. 6 is a third schematic diagram of a display method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种显示方法的示意图之四;FIG. 7 is a fourth schematic diagram of a display method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种显示方法的示意图之五;FIG. 8 is a fifth schematic diagram of a display method provided by an embodiment of the present invention;

图9为本发明实施例提供的电子设备的结构示意图之一;FIG. 9 is one of schematic structural diagrams of an electronic device provided by an embodiment of the present invention;

图10为本发明实施例提供的电子设备的结构示意图之二;10 is a second schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图11为本发明实施例提供的电子设备的结构示意图之三;11 is a third schematic structural diagram of an electronic device provided by an embodiment of the present invention;

图12为本发明实施例提供的电子设备的硬件示意图。FIG. 12 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this paper is an association relationship that describes an associated object, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. The symbol "/" in this document indicates the relationship in which the associated object is or, for example, A/B indicates A or B.

本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first input and the second input are used to distinguish different inputs, not to describe a specific order of the inputs.

在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise stated, the meaning of "plurality" refers to two or more, for example, a plurality of elements refers to two or more elements and the like.

本发明实施例提供一种显示方法及电子设备,可以接收输入的目标关键词,并在目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。通过该方案,一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标字符串,因此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而节约用户时间。另一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标文件,因此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而方便寻找目标文件。综上,用户可以通过仅输入目标关键词,触发电子设备显示与该目标关键词关联的目标字符串或目标文件,从而可以提高电子设备的智能化程度,进而可以减少用户操作步骤。Embodiments of the present invention provide a display method and electronic device, which can receive an input target keyword, and display target information associated with the target keyword when the target keyword matches a preset keyword; The target information is a target string or a target file, and the name of the target file does not include the target keyword. With this solution, on the one hand, since the electronic device can display the target character string associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword, but Saves the user time by eliminating the need to manually enter the entire string. On the other hand, since the electronic device can display the target file associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword to trigger the electronic device to display the target keyword. files, without the need for users to search for target files one by one, so as to facilitate the search for target files. To sum up, the user can trigger the electronic device to display the target character string or target file associated with the target keyword by only inputting the target keyword, thereby improving the intelligence of the electronic device and reducing user operation steps.

本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.

下面以安卓操作系统为例,介绍一下本发明实施例提供的显示方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the display method provided by the embodiment of the present invention is applied.

如图1所示,为本发明实施例提供的一种安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of an Android operating system according to an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).

其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.

应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.

系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.

内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.

以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的显示方法的软件程序,从而使得该显示方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的显示方法。Taking the Android operating system as an example, in this embodiment of the present invention, a developer can develop a software program for implementing the display method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. It can run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the display method provided by the embodiment of the present invention by running the software program in the Android operating system.

本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., the non-mobile electronic device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.

本发明实施例提供的显示方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的显示方法进行示例性的说明。The execution subject of the display method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the display method. The embodiment is not limited. The display method provided by the embodiment of the present invention is exemplarily described below by taking an electronic device as an example.

本发明实施例中,一种使用场景为:用户需要在电子设备中经常输入较长的字符串时,例如身份证号,银行卡号等。用户可以输入目标关键词,在目标关键词与预设关键词匹配的情况下,电子设备响应于该输入,显示与该目标关键词关联的较长的字符串。如此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而可以提高电子设备的智能化程度,进而节约用户时间。另一种使用场景为:用户想要从电子设备上查找文件并对该文件进行操作。用户可以输入目标关键词,在目标关键词与预设关键词匹配的情况下,电子设备响应于该输入,显示与该目标关键词关联的目标文件。如此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而可以提高电子设备的智能化程度,进而方便寻找目标文件,减少用户操作步骤。In the embodiment of the present invention, a usage scenario is: when a user needs to input a long character string in an electronic device frequently, such as an ID card number, a bank card number, and the like. The user may input a target keyword, and if the target keyword matches a preset keyword, the electronic device displays a longer character string associated with the target keyword in response to the input. In this way, the user can only input the target keyword without manually inputting the entire character string, so that the intelligence of the electronic device can be improved, thereby saving the user's time. Another usage scenario is when a user wants to find a file from an electronic device and operate on the file. The user may input a target keyword, and if the target keyword matches a preset keyword, the electronic device displays a target file associated with the target keyword in response to the input. In this way, the user can only input the target keyword to trigger the electronic device to display the target file without requiring the user to search for the target file one by one, thereby improving the intelligence of the electronic device, thereby facilitating the search for the target file and reducing the user operation steps.

如图2所示,本发明实施例提供一种显示方法,该方法可以包括下述的步骤101和步骤102。As shown in FIG. 2 , an embodiment of the present invention provides a display method, and the method may include the following steps 101 and 102 .

步骤101、电子设备接收输入的目标关键词。Step 101: The electronic device receives the input target keyword.

可选的,本发明实施例中,上述目标关键词可以由至少一个字符组成。具体的,目标关键词可以为由以下至少一项组成:汉字、字母、数字和特殊符号。其中,上述字母具体可以为英文字母、希腊字母、俄文字母等;上述特殊符号具体可以为以下任一项:运算符号、标点符号、日文平假名、日文片假名或其他符号等。目标关键词具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned target keyword may be composed of at least one character. Specifically, the target keyword may be composed of at least one of the following: Chinese characters, letters, numbers, and special symbols. The above-mentioned letters may specifically be English letters, Greek letters, Russian letters, etc.; the above-mentioned special symbols may specifically be any of the following: operation symbols, punctuation marks, Japanese hiragana, Japanese katakana, or other symbols. The target keyword can be specifically determined according to the actual usage situation, which is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,上述用户通过电子设备输入目标关键词的输入方式可以为通过电子设备显示的键盘输入关键词,也可以用户在电子设备的屏幕上的指定区域手写输入关键词,还可以通过粘贴输入关键词。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned input method for the user to input the target keyword through the electronic device may be inputting the keyword through a keyboard displayed by the electronic device, or the user may input the keyword by handwriting in a designated area on the screen of the electronic device. , you can also enter keywords by pasting. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,目标关键词可以通过下述三种输入格式具体可以为以下任一项:普通文本输入格式、带标识符号的文本输入格式等。其中,普通文本输入格式是指用户输入的目标关键词和普通文本无明显差别,即该目标关键词不带有标识符号,电子设备可以遍历用户输入的一段文本,并在该段文本中寻找目标关键词。带标识符号的文本输入格式是指用户在输入目标关键词之前,需要先输入预设的标识符号,再输入目标关键词,电子设备可以通过识别标识符号,迅速识别该目标关键词。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the target keyword may specifically be any of the following three input formats: a normal text input format, a text input format with an identifier, and the like. The normal text input format means that there is no obvious difference between the target keyword input by the user and the normal text, that is, the target keyword does not have an identifier, and the electronic device can traverse a piece of text input by the user and find the target in the text. Key words. The text input format with an identifier means that before inputting a target keyword, the user needs to input a preset identifier first, and then input the target keyword. The electronic device can quickly identify the target keyword by identifying the identifier. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

示例性的,假设用户想要输入的目标关键词为:银行卡1,该目标关键词“银行卡1”关联一个19位的卡号,且预设标识符号为:%。如果用户想在应用程序A中的目标位置输入该目标关键词,那么用户可以在应用程序A的该目标位置处直接输入“银行卡1”,或者,用户还可以在应用程序A的该目标位置处输入“%银行卡1”。Exemplarily, it is assumed that the target keyword that the user wants to input is: bank card 1, the target keyword "bank card 1" is associated with a 19-digit card number, and the preset identifier is: %. If the user wants to input the target keyword in the target position in application A, the user can directly input "bank card 1" in the target position in application A, or the user can also input the target keyword in the target position in application A Enter "% Bank Card 1".

可选的,本发明实施例中,目标关键词可以以第一显示方式显示。其中,该第一显示方式为不同于用户输入的普通文本的显示方式。具体的,该第一显示方式具体可以为以下任一项:以加粗方式显示目标关键词、以添加下划线的方式显示目标关键词、以不同于普通文本的颜色显示目标关键词、以不同于普通文本的字体和字号显示目标关键词等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the target keyword may be displayed in a first display manner. Wherein, the first display mode is different from the display mode of ordinary text input by the user. Specifically, the first display manner may specifically be any of the following: displaying the target keyword in a bolded manner, displaying the target keyword in a manner of adding an underline, displaying the target keyword in a color different from the normal text, displaying the target keyword in a color different from the normal text The font and font size of normal text display target keywords, etc. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

步骤102、在该目标关键词与预设关键词匹配的情况下,电子设备显示与该目标关键词关联的目标信息。Step 102: In the case that the target keyword matches a preset keyword, the electronic device displays target information associated with the target keyword.

其中,上述目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。The above target information is a target character string or a target file, and the name of the target file does not include the target keyword.

需要说明的是,本发明实施例中,目标关键词与预设关键词匹配为目标关键词与预设关键词的匹配度大于或等于第一阈值。其中,第一阈值的具体数值可以根据实际使用具体确定,本发明实施例不做具体限定。示例性的,第一阈值可以为97%,即,目标关键词和预设关键词的匹配度大于或等于97%的情况下,目标关键词和预设关键词匹配。It should be noted that, in this embodiment of the present invention, the matching between the target keyword and the preset keyword means that the matching degree between the target keyword and the preset keyword is greater than or equal to the first threshold. The specific value of the first threshold may be specifically determined according to actual use, which is not specifically limited in the embodiment of the present invention. Exemplarily, the first threshold may be 97%, that is, when the matching degree between the target keyword and the preset keyword is greater than or equal to 97%, the target keyword and the preset keyword match.

可选的,本发明实施例中,上述匹配度具体根据目标关键词的内容采用不同的匹配度算法。具体的,若目标关键词为汉字,则该匹配度算法可以为中文相似度匹配算法或中文语义匹配算法;若目标关键为字母,则该匹配度算法可以为字母匹配度算法或字母逻辑距离算法等;若目标关键词为特殊符号,则该匹配度算法可以为符号匹配度算法;若目标关键词包括汉字、字母和特殊符号中的至少两种,则该匹配度算法可以为混合匹配度算法或逻辑距离算法等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned matching degree adopts different matching degree algorithms according to the content of the target keyword. Specifically, if the target keyword is a Chinese character, the matching degree algorithm may be a Chinese similarity matching algorithm or a Chinese semantic matching algorithm; if the target keyword is a letter, the matching degree algorithm may be a letter matching degree algorithm or a letter logical distance algorithm etc.; if the target keyword is a special symbol, the matching degree algorithm may be a symbol matching degree algorithm; if the target keyword includes at least two of Chinese characters, letters and special symbols, then the matching degree algorithm may be a mixed matching degree algorithm Or logical distance algorithm etc. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

需要说明的是,本发明实施例中,在目标信息为目标字符串的情况下,若目标字符串不包括目标关键词,则电子设备正常执行上述步骤102;若目标字符串包括目标关键词,则电子设备仅执行一次上述步骤102。It should be noted that, in this embodiment of the present invention, when the target information is a target character string, if the target character string does not include the target keyword, the electronic device normally executes the above step 102; if the target character string includes the target keyword, Then the electronic device executes the above step 102 only once.

可选的,本发明实施例中,电子设备显示目标信息的显示方式,根据目标信息为目标字符串或目标文件,具体可以分为第一种显示方式和第二种显示方式。具体的,在目标信息为目标字符串的情况下,电子设备按照第一种显示方式显示该目标字符串;在目标信息为目标文件的情况下,电子设备按照第二种显示方式显示该目标文件。其中,第一种显示方式和第二种显示方式不同。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the display manner of the electronic device displaying the target information can be specifically classified into a first display manner and a second display manner according to whether the target information is a target character string or a target file. Specifically, when the target information is a target character string, the electronic device displays the target character string according to the first display mode; when the target information is a target file, the electronic device displays the target file according to the second display mode . Among them, the first display mode is different from the second display mode. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,上述第一种显示方式具体可以为以下两种方式中的任一种方式:方式一、将用户输入的目标关键词将该目标关键词关联的目标字符串替换,并显示该目标字符串。方式二、继续显示目标关键词,在电子设备接收针对该目标关键词的输入的情况下,电子设备响应于该输入,将目标关键词将该目标关键词关联的目标字符串替换,并显示该目标字符串。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned first display manner may specifically be any one of the following two manners: Method 1. A target string associated with the target keyword entered by the user with the target keyword. replace, and display the target string. Mode 2: Continue to display the target keyword. When the electronic device receives an input for the target keyword, the electronic device responds to the input, replaces the target keyword with the target string associated with the target keyword, and displays the target keyword. target string. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,上述第二种显示方式具体可以为以下两种方式中的任一种方式:方式A、在目标关键词和预设关键词匹配的情况下,电子设备显示目标文件的标识,该标识可以用于指示该目标文件。方式B、在目标关键词和预设关键词匹配的情况下,电子设备显示文件管理页面,并在该文件管理页面中显示该目标文件。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned second display manner may specifically be any one of the following two manners: manner A, when the target keyword matches the preset keyword, the electronic device displays The identifier of the target file, which can be used to indicate the target file. Manner B: In the case that the target keyword matches the preset keyword, the electronic device displays a file management page, and displays the target file on the file management page. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

示例性的,如图3中的(a)所示,电子设备001显示应用程序A的登录界面002,用户可以在该登录界面002中的“账号”输入栏中输入“银行账号1”,并在“密码”输入栏中输入该银行账号对应的密码。电子设备在检测到用户输入的“银行账号1”(即,目标关键词)与存储在电子设备内的预设关键词的匹配度为100%,且“银行账号1”与预设关键词的匹配度大于97%(即,第一阈值),即,“银行账号1”与预设关键词匹配。如图3中的(b)所示,在“银行账号1”与预设关键词匹配的情况下,电子设备001中的“账号”输入栏显示与“银行账号1”关联的目标字符串“621226XXXXXXXX373”(即,目标信息)。Exemplarily, as shown in (a) of FIG. 3 , the electronic device 001 displays the login interface 002 of the application A, and the user can enter “bank account number 1” in the “account number” input field in the login interface 002, and Enter the password corresponding to the bank account in the "Password" input field. When the electronic device detects that the “bank account number 1” (that is, the target keyword) input by the user has a matching degree of 100% with the preset keyword stored in the electronic device, and the “bank account number 1” matches the preset keyword, the matching degree is 100%. The matching degree is greater than 97% (ie, the first threshold), that is, "bank account 1" matches the preset keyword. As shown in (b) in FIG. 3 , in the case that “bank account number 1” matches the preset keyword, the “account number” input column in the electronic device 001 displays the target character string associated with “bank account number 1” “ 621226XXXXXXXX373" (ie, target information).

示例性的,如图4中的(a)所示,电子设备001显示用户与好友M的聊天界面003,其中,用户输入目标关键词的预设标识符为:【】。用户可以在该聊天界面003中的输入栏中输入“【我的简历】”(即,目标关键词),假设“【我的简历】”与预设关键词匹配,且“【我的简历】”关联的目标文件为存储在电子设备中的文件:我的简历.doc。如果用户在输入栏中输入“【我的简历】”(即,目标关键词)之后想要将对应的文件发送给好友M,那么用户可以点击发送控件004,如图4中的(b)所示,电子设备001响应于用户点击发送控件004的输入,从电子设备中找到目标文件:我的简历.doc,并将该文件发送给好友M,以及显示提示标识005,该标识005可以用于提示用户已将该目标文件发送至好友M的电子设备。Exemplarily, as shown in (a) of FIG. 4 , the electronic device 001 displays a chat interface 003 between the user and the friend M, wherein the preset identifier of the target keyword input by the user is: [ ]. The user can input "[my resume]" (ie, the target keyword) in the input field in the chat interface 003, assuming that "[my resume]" matches the preset keyword, and "[my resume]" "The associated target file is the file stored in the electronic device: my resume.doc. If the user wants to send the corresponding file to friend M after inputting "[my resume]" (ie, the target keyword) in the input field, the user can click the send control 004, as shown in (b) in FIG. 4 . As shown, the electronic device 001, in response to the user's input of clicking the send control 004, finds the target file: my resume.doc from the electronic device, sends the file to friend M, and displays a prompt identification 005, which can be used for The user is prompted that the target file has been sent to the electronic device of the friend M.

本发明实施例提供一种显示方法,可以接收输入的目标关键词,并在目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息;其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。通过该方案,一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标字符串,因此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而节约用户时间。另一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标文件,因此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而方便寻找目标文件。综上,用户可以通过仅输入目标关键词,触发电子设备显示与该目标关键词关联的目标字符串或目标文件,从而可以提高电子设备的智能化程度,进而可以减少用户操作步骤。An embodiment of the present invention provides a display method, which can receive an input target keyword, and display target information associated with the target keyword when the target keyword matches a preset keyword; wherein the target information is: Target string or target file whose name does not include the target keyword. With this solution, on the one hand, since the electronic device can display the target character string associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword, but Saves the user time by eliminating the need to manually enter the entire string. On the other hand, since the electronic device can display the target file associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword to trigger the electronic device to display the target keyword. files, without the need for users to search for target files one by one, so as to facilitate the search for target files. To sum up, the user can trigger the electronic device to display the target character string or target file associated with the target keyword by only inputting the target keyword, thereby improving the intelligence of the electronic device and reducing user operation steps.

可选的,结合图2,如图5所示,在上述步骤101之前,本发明实施例所提供的显示方法还可以包括下述步骤103和步骤104。Optionally, with reference to FIG. 2 , as shown in FIG. 5 , before the foregoing step 101 , the display method provided by the embodiment of the present invention may further include the following steps 103 and 104 .

步骤103、电子设备接收对目标关键词和目标信息的第一目标输入。Step 103: The electronic device receives a first target input of target keywords and target information.

可选的,本发明实施例中,上述第一目标输入为对目标关键词和目标信息的输入,可以用于确定目标关键词和目标信息。具体的,第一目标输入可以为在设置界面的关键词设置项中输入目标关键词和目标信息的输入;在用户输入一串不符合语法规律的字符的情况下,电子设备显示提示是否将该串字符设置为目标关键词的信息,第一目标输入也可以为响应于对该提示信息的输入,将该串字符确定为目标关键词,并输入与该目标关键词关联的目标信息的输入;在用户输入一串不符合语法规律的字符的情况下,第一目标输入还可以为将该串字符确定为目标信息,并输入与该目标信息关联的目标关键词的输入。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned first target input is an input of target keywords and target information, which may be used to determine target keywords and target information. Specifically, the first target input may be the input of inputting target keywords and target information in the keyword setting item of the setting interface; when the user inputs a string of characters that do not conform to grammatical rules, the electronic device displays a prompt whether to The string character is set as the information of the target keyword, and the first target input can also be the input of determining the string character as the target keyword in response to the input of the prompt information, and inputting the target information associated with the target keyword; When the user inputs a string of characters that do not conform to grammatical rules, the first target input may also be an input of determining the string of characters as target information and inputting a target keyword associated with the target information. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

步骤104、电子设备响应于该第一目标输入,创建该目标关键词和该目标信息的关联联系。Step 104: The electronic device creates an association between the target keyword and the target information in response to the first target input.

需要说明的是,本发明实施例中,在用户通过第一目标输入确定目标关键词和目标信息之后,电子设备可以创建该目标关键词和该目标信息的关联关系,并可以存储该关联关系。It should be noted that, in this embodiment of the present invention, after the user determines the target keyword and target information through the first target input, the electronic device may create an association relationship between the target keyword and the target information, and may store the association relationship.

此外,本发明实施例中,在电子设备创建目标关键词和目标信息的关联关系之后,该目标关键词可以作为预设关键词存储在电子设备中,即在创建目标关键词与目标信息时,用于创建关联关系的目标关键词,即为预设关键词。In addition, in the embodiment of the present invention, after the electronic device creates an association relationship between the target keyword and the target information, the target keyword can be stored in the electronic device as a preset keyword, that is, when creating the target keyword and the target information, The target keyword used to create the association relationship is the preset keyword.

可选的,本发明实施例中,在电子设备响应于第一目标输入创建目标关键词和目标信息的关联关系之后,电子设备可以通过目标关键词和目标信息的关联关系目录,或者目标关键词和目标信息的关联关系表记录目标关键词和目标信息的关联关系。具体记录目标关键词和目标信息的关联关系的方式可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, after the electronic device creates an association relationship between the target keyword and the target information in response to the first target input, the electronic device may use a catalog of the association relationship between the target keyword and the target information, or the target keyword The association relationship table with target information records the association relationship between target keywords and target information. The specific way of recording the association relationship between the target keyword and the target information may be determined according to the actual use situation, which is not specifically limited in the embodiment of the present invention.

示例性的,假设用户在应用程序A的输入界面输入“%身份证1”,电子设备可以显示提示信息“是否设置‘%身份证1’为关键词”。如果用户点击该提示信息中的“是”选项,那么电子设备响应于用户的点击操作,显示关键词设置项的界面,该界面中的“关键词”一栏中自动填充“%身份证1”,用户可以在该界面中的“目标信息”一栏中输入与关键词“%身份证1”关联的内容,例如,用户的身份证号“130103XXXX4226”。电子设备可以响应于用户的上述输入,创建关键词“%身份证1”和目标信息“130103XXXX4226”的关联关系,并在关键词与目标信息关系对应表中记录该组关联关系。Exemplarily, assuming that the user inputs "% ID card 1" on the input interface of application A, the electronic device may display a prompt message "whether to set '% ID card 1' as a keyword". If the user clicks the "Yes" option in the prompt message, the electronic device will display the keyword setting item interface in response to the user's click operation, and the "Keyword" column in the interface is automatically filled with "% ID card 1" , the user can enter the content associated with the keyword "% ID card 1" in the "target information" column of the interface, for example, the user's ID number "130103XXXX4226". The electronic device can create an association relationship between the keyword "% ID card 1" and the target information "130103XXXX4226" in response to the user's input, and record the set of association relationships in the keyword-target information relationship correspondence table.

可以理解的是,本发明实施例中,电子设备可以接收对目标关键词和目标信息的第一目标输入,并响应于该第一目标输入,创建该目标关键词和该目标信息的关联关系,如此,用户可以根据需求确定目标关键词和目标信息,以及目标关键词和目标信息的关联关系。从而电子设备可以根据用户输入的目标关键词执行与该目标关键词关联的操作,电子设备的智能化程度得以提高,进而方便用户使用该电子设备,提高用户使用体验。It can be understood that, in this embodiment of the present invention, the electronic device can receive the first target input of the target keyword and the target information, and in response to the first target input, create an association relationship between the target keyword and the target information, In this way, the user can determine the target keyword and target information, as well as the association relationship between the target keyword and the target information, according to requirements. Therefore, the electronic device can perform operations associated with the target keyword according to the target keyword input by the user, and the degree of intelligence of the electronic device is improved, thereby facilitating the user to use the electronic device and improving the user experience.

可选的,在上述步骤102之后,本发明实施例所提供的显示方法还可以包括下述步骤105,步骤105在具体实现过程中可以通过下述步骤105a和105b实现。Optionally, after the above step 102, the display method provided by the embodiment of the present invention may further include the following step 105, and the step 105 may be implemented by the following steps 105a and 105b in a specific implementation process.

步骤105、电子设备向目标设备发送目标信息。Step 105: The electronic device sends target information to the target device.

需要说明的是,本发明实施例中,上述目标信息可以为目标字符串或目标文件。It should be noted that, in this embodiment of the present invention, the above target information may be a target character string or a target file.

可选的,本发明实施例中,在用户输入的目标关键词与预设关键词匹配的情况下,电子设备显示目标关键词关联的目标信息,并向目标设备发送该目标信息。Optionally, in this embodiment of the present invention, when the target keyword input by the user matches a preset keyword, the electronic device displays target information associated with the target keyword, and sends the target information to the target device.

可选的,本发明实施例中,上述目标设备是指除本发明上述实施例提供的电子设备之外的其他电子设备,其他电子设备可以接收本发明电子设备发送的目标信息。Optionally, in this embodiment of the present invention, the above-mentioned target device refers to other electronic devices other than the electronic device provided in the above-mentioned embodiment of the present invention, and other electronic devices can receive target information sent by the electronic device of the present invention.

步骤105a、电子设备接收针对目标信息的第二目标输入。Step 105a, the electronic device receives a second target input for target information.

可选的,本发明实施例中,上述第二目标输入可以用于触发电子设备向目标设备发送目标信息。第二目标输入可以为对电子设备的物理按键的按压输入,该物理按键可以用于控制电子设备向目标设备发送目标信息。第二目标输入也可以为对目标信息的触控输入,其中,该触控输入可以为以下至少一项:单击输入、双击输入、长按输入或滑动输入等。第二目标输入还可以为对目标控件的触控输入,该目标控件可以用于控制电子设备向目标设备发送目标信息,其中,该触控输入可以为以下至少一项:单击输入、双击输入、长按输入或滑动输入等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned second target input may be used to trigger the electronic device to send target information to the target device. The second target input may be a pressing input on a physical key of the electronic device, and the physical key may be used to control the electronic device to send target information to the target device. The second target input may also be a touch input to target information, where the touch input may be at least one of the following: a single-click input, a double-click input, a long-press input, a slide input, and the like. The second target input can also be a touch input to a target control, and the target control can be used to control the electronic device to send target information to the target device, wherein the touch input can be at least one of the following: single-click input, double-click input , long press to enter, or swipe to enter, etc. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

具体的,本发明实施例中,在目标信息为目标字符串情况下,第二目标输入具体可以为对该字符串的单击输入、对该字符串的双击输入、对该字符串的长按输入或沿预设方向的滑动输入等。在目标信息为目标文件情况下,第二目标输入具体可以为对该目标文件或指示该目标文件的标识的单击输入、双击输入、长按输入等。Specifically, in this embodiment of the present invention, when the target information is a target character string, the second target input may specifically be a single-click input on the character string, a double-click input on the character string, or a long-press on the character string. input or swipe input in a preset direction, etc. When the target information is a target file, the second target input may specifically be a single-click input, a double-click input, a long-press input, or the like on the target file or an identifier indicating the target file.

步骤105b、电子设备响应于针对目标信息的第二目标输入,向目标设备发送目标信息。Step 105b, the electronic device sends the target information to the target device in response to the second target input for the target information.

可选的,本发明实施例中,在电子设备向目标设备发送目标信息之前,电子设备可以响应于第二目标输入,显示提示信息,其中,该提示信息可以用于提示用户确认向目标设备发送目标信息。用户可以通过触控操作确认向目标设备发送目标信息,从而电子设备响应于该触控操作,取消显示提示信息,并向目标设备发送该目标信息。Optionally, in this embodiment of the present invention, before the electronic device sends the target information to the target device, the electronic device may display prompt information in response to the second target input, where the prompt information may be used to prompt the user to confirm sending to the target device. target information. The user can confirm sending the target information to the target device through the touch operation, so that the electronic device cancels the display of the prompt information in response to the touch operation, and sends the target information to the target device.

示例性的,假设用户设置关键词“%身份证1”关联的目标信息为身份证号“130103XXXX4226”,如果用户在使用应用程序A和好友聊天的过程中,用户需要向好友发送身份证号码让好友帮忙购买车票,那么用户可以在该聊天界面手动输入“%身份证1”,电子设备在监测到用户输入的“%身份证1”与预设关键词匹配的情况下,电子设备响应于用户的手动输入操作,在用户输入“%身份证1”的位置处替换显示“130103XXXX4226”。用户在确认该身份证号码无误后,可以点击发送控件,电子设备响应于用户的点击输入(即,第二目标输入),将“130103XXXX4226”发送给好友。Exemplarily, it is assumed that the user sets the target information associated with the keyword "% ID card 1" as the ID number "130103XXXX4226". If the user is using the application A to chat with a friend, the user needs to send the ID number If a friend helps to buy a ticket, the user can manually input "% ID card 1" in the chat interface. When the electronic device detects that the "% ID card 1" input by the user matches the preset keyword, the electronic device responds to the user For manual input operation, replace the display "130103XXXX4226" where the user enters "%ID 1". After confirming that the ID card number is correct, the user can click the send control, and the electronic device sends "130103XXXX4226" to the friend in response to the user's click input (ie, the second target input).

可以理解的是,本发明实施例中,由于电子设备在显示目标关键词关联的目标信息之后,直接向目标设备发送该目标信息,或者响应于用户针对该目标信息的第二目标输入,向目标设备发送该目标信息。如此,电子设备可以提供多种触发发送目标信息的方式,丰富了发送该目标信息的方式,使得用户可以根据实际使用需求,选择不同的方式发送该目标信息,从而提高用户的使用体验。It can be understood that, in this embodiment of the present invention, after displaying the target information associated with the target keyword, the electronic device directly sends the target information to the target device, or sends the target information to the target device in response to the user's second target input for the target information. The device sends the target information. In this way, the electronic device can provide a variety of ways to trigger the sending of target information, which enriches the ways of sending the target information, so that the user can choose different ways to send the target information according to actual usage requirements, thereby improving the user experience.

可选的,结合图2,如图6所示,目标关键词与预设关键词匹配为目标关键词与预设关键词的匹配度大于或等于第一阈值,在上述步骤102之前,本发明实施例所提供的显示方法,还可以包括下述步骤106和步骤107,具体的,步骤102可以通过下述步骤102a。Optionally, with reference to FIG. 2 , as shown in FIG. 6 , the matching of the target keyword and the preset keyword is that the matching degree between the target keyword and the preset keyword is greater than or equal to the first threshold. Before the above step 102, the present invention The display method provided by the embodiment may further include the following steps 106 and 107. Specifically, step 102 may pass through the following step 102a.

步骤106、在目标关键词与预设关键词的匹配度大于或等于第二阈值,且目标关键词与预设关键词的匹配度小于第一阈值的情况下,显示提示信息和预设关键词。Step 106: In the case where the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, and the matching degree between the target keyword and the preset keyword is less than the first threshold, display prompt information and the preset keyword .

其中,上述提示信息可以用于提示用户确认目标关键词是否正确。The above prompt information may be used to prompt the user to confirm whether the target keyword is correct.

需要说明的是,本发明实施例中,第二阈值小于第一阈值。示例性的,如果第一阈值为98%,那么第二阈值可以为95%。由于第一阈值的大小为判断用户输入的目标关键词与预设关键词匹配的关键因素,而有时候用户在输入目标关键词时可能出现笔误,使得存在笔误的目标关键词与预设关键词的匹配度小于第一阈值。此时,电子设备可以检测该目标关键词与预设关键词的匹配度是否大于或等于第二阈值,若该目标关键词与预设关键词的匹配度大于或等于第二阈值,则电子设备可以确定该目标关键词与预设关键词的匹配度较高,可能为用户笔误,于是电子设备可以显示提示用户确认目标关键词是否正确的提示信息和正确的预设关键词,方便用户确认输入的目标关键词是否为预设关键词。若该目标关键词与预设关键词的匹配度小于第二阈值,则该目标关键词与预设关键词不匹配,电子设备不显示提示信息和预设关键词。It should be noted that, in this embodiment of the present invention, the second threshold is smaller than the first threshold. Exemplarily, if the first threshold is 98%, then the second threshold may be 95%. Since the size of the first threshold is a key factor for judging that the target keyword input by the user matches the preset keyword, sometimes the user may make a clerical error when inputting the target keyword, so that the target keyword with typographical error matches the preset keyword. The matching degree is less than the first threshold. At this time, the electronic device can detect whether the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, and if the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, the electronic device It can be determined that the matching degree between the target keyword and the preset keyword is relatively high, which may be a clerical error by the user, so the electronic device can display prompt information prompting the user to confirm whether the target keyword is correct and the correct preset keyword, so as to facilitate the user to confirm the input Whether the target keyword is the default keyword. If the matching degree between the target keyword and the preset keyword is less than the second threshold, the target keyword does not match the preset keyword, and the electronic device does not display the prompt information and the preset keyword.

可选的,本发明实施例中,电子设备显示提示信息和预设关键词的显示方式具体可以为以下任一种显示方式:方式一、电子设备显示悬浮窗,该悬浮窗中显示有提示信息和预设关键词。方式二、电子设备显示悬浮窗和悬浮控件,该悬浮窗中显示有提示信息,在用户对该悬浮控件触控输入的情况下,电子设备可以响应于该用户的输入,将悬浮窗内的显示内容更新为预设关键词。方式三、电子设备显示悬浮窗,该悬浮窗中显示有提示信息,且在用户输入的目标关键词的周围悬浮显示预设关键词。具体的可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the display manner of the electronic device displaying the prompt information and the preset keywords may specifically be any of the following display modes: Mode 1, the electronic device displays a floating window, and the prompt information is displayed in the floating window. and preset keywords. Mode 2: The electronic device displays a floating window and a floating control, and prompt information is displayed in the floating window. When the user touches the floating control, the electronic device can respond to the user's input and display the display in the floating window. The content is updated with preset keywords. Manner 3: The electronic device displays a floating window, in which prompt information is displayed, and a preset keyword is suspended and displayed around the target keyword input by the user. The specifics can be determined according to actual usage conditions, which are not specifically limited in the embodiments of the present invention.

可选的,本发明实施例中,在电子设备显示提示信息的同时可以伴随有其他提示特效。具体的,在电子设备显示提示信息的同时电子设备振动,在电子设备显示提示信息的同时电子设备响铃,或者在电子设备显示提示信息的同时电子设备振动且响铃。Optionally, in this embodiment of the present invention, when the electronic device displays the prompt information, it may be accompanied by other prompt special effects. Specifically, the electronic device vibrates while the electronic device displays the prompt information, the electronic device rings while the electronic device displays the prompt information, or the electronic device vibrates and rings while the electronic device displays the prompt information.

步骤107、电子设备接收对预设关键词的第一输入。Step 107: The electronic device receives a first input of a preset keyword.

需要说明的是,本发明实施例中,上述第一输入可以用于用户确认用户输入目标关键词为预设关键词。It should be noted that, in this embodiment of the present invention, the above-mentioned first input may be used by the user to confirm that the target keyword input by the user is a preset keyword.

可选的,本发明实施例中,上述第一输入可以为对预设关键词的触控点击输入。其中,该触控点击输入可以为以下至少一项:对预设关键词的单击输入、对预设关键词的双击输入或对预设关键词的长按输入等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned first input may be a touch click input on a preset keyword. Wherein, the touch-click input may be at least one of the following: a single-click input on a preset keyword, a double-click input on a preset keyword, or a long-press input on a preset keyword, and the like. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,上述第一输入还可以为通过其他方式确认目标关键词为预设关键词的输入。具体的,可以为对电子设备的物理按键的点击输入,也可以为对电子设备的语音输入等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned first input may also be an input for confirming that the target keyword is a preset keyword by other means. Specifically, it may be a click input on a physical key of the electronic device, or a voice input on the electronic device, or the like. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

步骤102a、电子设备响应于该第一输入,显示与目标关键词关联的目标信息。Step 102a, in response to the first input, the electronic device displays target information associated with the target keyword.

需要说明的是,本发明实施例中,目标关键词与预设关键词是否匹配,并不影响上述步骤102a的执行。下述实施例以在目标关键词与预设关键词匹配的情况下,显示与与目标关键词关联的目标信息为例进行示例性说明。It should be noted that, in this embodiment of the present invention, whether the target keyword matches the preset keyword does not affect the execution of the foregoing step 102a. In the following embodiments, when the target keyword matches the preset keyword, the target information associated with the target keyword is displayed as an example for illustrative description.

可选的,在目标关键词与预设关键词匹配的情况下,电子设备响应于该第一输入,显示与目标关键词关联的目标信息。Optionally, when the target keyword matches a preset keyword, the electronic device displays target information associated with the target keyword in response to the first input.

需要说明的是,本发明实施例中,上述目标关键词与预设关键词匹配是指,用户通过对显示的预设关键的第一输入,确认用户输入目标关键词为该预设关键词。此时,目标关键词与预设关键词相同,即,与目标关键词关联的目标信息也是与预设关键词关联的目标信息。It should be noted that, in this embodiment of the present invention, the matching of the target keyword with the preset keyword means that the user confirms that the target keyword input by the user is the preset keyword through the first input of the displayed preset keyword. At this time, the target keyword is the same as the preset keyword, that is, the target information associated with the target keyword is also the target information associated with the preset keyword.

示例性的,假设用户设置的预设关键词为“%身份证1”,该预设关键词关联的目标信息为身份证号“130103XXXX4226”。如果用户在使用应用程序A和好友聊天的过程中,用户需要向好友发送身份证号码让好友帮忙购买车票,那么用户可以在该聊天界面手动输入“%身份证”,此时,电子设备检测到用户输入的“%身份证”与预设关键词的匹配度大于第二阈值,且“%身份证”与预设关键词的匹配度小于第一阈值,电子设备显示悬浮窗,该悬浮窗中包括提示信息“请确认目标关键词输入是否正确”,以及预设关键词“%身份证1”。用户可以在单击该悬浮窗中的预设关键词“%身份证1”,电子设备响应于该单击输入(即,第一输入),将用户输入的目标关键词“%身份证”更新为“%身份证1”,并显示“130103XXXX4226”(即,目标信息)。Exemplarily, it is assumed that the preset keyword set by the user is "% ID card 1", and the target information associated with the preset keyword is the ID card number "130103XXXX4226". If the user needs to send the ID card number to the friend during the chat with the friend using App A, the user can manually enter "% ID card" in the chat interface. At this time, the electronic device detects the The matching degree between the "% ID card" input by the user and the preset keyword is greater than the second threshold, and the matching degree between "% ID card" and the preset keyword is less than the first threshold, and the electronic device displays a floating window, in the floating window Including the prompt information "Please confirm whether the input of the target keyword is correct", and the preset keyword "% ID card 1". The user can click the preset keyword "% ID card 1" in the floating window, and the electronic device updates the target keyword "% ID card" input by the user in response to the click input (ie, the first input). is "%ID 1" and displays "130103XXXX4226" (ie, target information).

可以理解的是,本发明实施例中,在目标关键词和预设关键词的匹配度大于或等于第二阈值,且目标关键词与预设关键词的匹配度小于第一阈值的情况下,电子设备可以通过显示提示信息和预设关键词,可以在接收到用户对预设关键词的输入的情况下显示与目标关键词关联的目标信息。如此,可以纠正用户输入的笔误,并在纠正用户输入笔误之后,显示正确的目标关键词关联的目标信息,从而提高电子设备的智能化程度,方便用户使用。It can be understood that, in this embodiment of the present invention, when the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, and the matching degree between the target keyword and the preset keyword is less than the first threshold, The electronic device can display the target information associated with the target keyword when receiving the user's input of the preset keyword by displaying the prompt information and the preset keyword. In this way, the clerical error input by the user can be corrected, and after correcting the clerical error input by the user, the correct target information associated with the target keyword can be displayed, thereby improving the intelligence level of the electronic device and facilitating the use of the user.

可选的,结合图2,如图7所示,在目标信息为目标文件的情况下,上述步骤102具体可以通过下述步骤102b或步骤102c实现,其中,步骤102b和步骤102c择一执行。Optionally, with reference to FIG. 2 and as shown in FIG. 7 , in the case that the target information is a target file, the above step 102 can be specifically implemented by the following step 102b or step 102c, wherein step 102b and step 102c are performed alternatively.

步骤102b、在目标关键词与预设关键词匹配,且预设关键词为第一类关键词的情况下,电子设备显示目标文件。Step 102b, in the case that the target keyword matches the preset keyword, and the preset keyword is the first type of keyword, the electronic device displays the target file.

可选的,本发明实施例中,在目标信息为目标文件的情况下,预设关键词可以根据目标文件的存储路径的层级关系分为:第一类关键词和第二类关键词。其中,第一类关键词直接关联的是该目标文件的存储位置,通过第一类关键词电子设备直接可以找到该目标文件,并可以对该文件进行显示等操作。第二类关键词为未直接关联该目标文件的存储位置,但用户可以通过对第二类关键词关联内容的操作,电子设备响应于用户的操作也可以找到该目标文件。具体的,第二类关键词关联内容可以为目标文件存储位置的上一层的路径,第二类关键词关联内容也可以为指示目标文件存储位置的链接地址等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, when the target information is a target file, the preset keywords may be classified into: first type keywords and second type keywords according to the hierarchical relationship of the storage paths of the target files. The first type of keywords is directly related to the storage location of the target file, and the electronic device can directly find the target file through the first type of keywords, and can perform operations such as displaying the file. The second type of keyword is a storage location that is not directly associated with the target file, but the user can associate the content with the second type of keyword, and the electronic device can also find the target file in response to the user's operation. Specifically, the second type of keyword-related content may be a path on the upper layer of the target file storage location, and the second-type keyword-related content may also be a link address indicating the storage location of the target file, or the like. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,电子设备可以获取安装在该电子设备上的所有应用程序的目录信息和目录中文件的存储信息,用户可以根据该目录信息和目录中文件的存储信息设置第一类关键词和第二类关键词。Optionally, in this embodiment of the present invention, the electronic device can obtain the directory information of all applications installed on the electronic device and the storage information of the files in the directory, and the user can set the first page according to the directory information and the storage information of the files in the directory. Class I keywords and Class II keywords.

示例性的,假设用户输入的目标关键词为:【MM音乐/我的音乐/青花瓷】,如果电子设备可以根据该目标关键词的关联关系直接找到目标文件:青花瓷.mp3,那么该关键词【MM音乐/我的音乐/青花瓷】为第一类关键词。假设用户输入的目标关键词为:【MM音乐/我的音乐】,如果电子设备根据该目标关键词的关联关系不能直接找到目标文件:青花瓷.mp3,那么该关键词【MM音乐/我的音乐】为第二类关键词。Exemplarily, assuming that the target keyword input by the user is: [MM Music/My Music/Blue and White Porcelain], if the electronic device can directly find the target file: blue and white porcelain.mp3 according to the relationship of the target keyword, then the keyword [ MM music/my music/blue and white porcelain] is the first category of keywords. Assuming that the target keyword input by the user is: [MM Music/My Music], if the electronic device cannot directly find the target file: blue and white porcelain.mp3 according to the relationship of the target keyword, then the keyword [MM Music/My Music] ] is the second category of keywords.

可选的,本发明实施例中,电子设备还可以根据目标文件的层级关系,设置第一类关键词和第二类关键词。示例性的,用户可以设置【微信】、【通讯录】、【收藏夹】为第二类关键词,并设置【微信/微信名片/张三.txt】、【通讯录/张三.txt】、【收藏夹/视频收藏/中国风.mp4】为第一类关键词。Optionally, in this embodiment of the present invention, the electronic device may further set the first type of keywords and the second type of keywords according to the hierarchical relationship of the target files. Exemplarily, the user can set [WeChat], [Address Book], and [Favorites] as the second type of keywords, and set [WeChat/WeChat Business Card/Zhangsan.txt], [Address Book/Zhangsan.txt] , [Favorites/Video Collection/Chinese Style.mp4] is the first category of keywords.

需要说明的是,本发明实施例中,电子设备可以根据电子设备中文件的层级关系、用户的使用需求设置多类关键词。例如,第三类关键词,第四类关键词等。可以理解,上述“上述第一类关键词,第二类关键词均是示例性的列举。实际实现中,还可以为其他任意可能的类别,具体可以根据实际使用需求确定,本发明实施例不作限定。It should be noted that, in this embodiment of the present invention, the electronic device may set multiple types of keywords according to the hierarchical relationship of files in the electronic device and the usage requirements of the user. For example, the third type of keywords, the fourth type of keywords and so on. It can be understood that the above-mentioned “first category keywords and second category keywords are exemplary enumerations. In actual implementation, it can also be any other possible category, which can be specifically determined according to actual use requirements, and the embodiment of the present invention does not limited.

需要说明的是,本发明实施例中,上述显示目标文件的显示方式可以参考上述步骤102中的相关描述,此处不再赘述。It should be noted that, in this embodiment of the present invention, for the display manner of the above-mentioned display target file, reference may be made to the relevant description in the above-mentioned step 102, and details are not repeated here.

步骤102c、在目标关键词与预设关键词匹配,且预设关键词为第二类关键词的情况下,电子设备显示至少一个标签,响应于对该至少一个标签中目标标签的第二输入,显示目标文件。Step 102c, in the case where the target keyword matches the preset keyword, and the preset keyword is the second type of keyword, the electronic device displays at least one tag, in response to the second input of the target tag in the at least one tag. , displays the target file.

其中,上述至少一个标签中目标标签可以用于指示目标文件。Wherein, the target label in the above at least one label may be used to indicate the target file.

需要说明的是,本发明实施例中,上述至少一个标签为根据第二类关键词关联的内容生成的。该至少一个标签中的每一个标签分别指示该第二类关键词关联的内容中的一个子内容。示例性的,若第二类关键词关联的内容为一个文件夹中的全部内容,则至少一个标签中的每一个标签可以分别指示该文件夹中的一个文件。It should be noted that, in this embodiment of the present invention, the above at least one tag is generated according to the content associated with the second type of keywords. Each of the at least one tags respectively indicates a sub-content in the content associated with the second type of keywords. Exemplarily, if the content associated with the second type of keywords is all the content in a folder, each of the at least one label may respectively indicate a file in the folder.

可选的,本发明实施例中,上述第二输入可以为对至少一个标签中目标标签的触控点击输入,其中,触控点击输入可以为以下任一项:单击输入、双击输入或长按输入等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned second input may be a touch-click input on a target label in at least one label, where the touch-click input may be any of the following: single-click input, double-click input, or long-term input. Press enter etc. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

可选的,本发明实施例中,上述至少一个标签中的每个标签可以为以下至少一项:目标文件的名称、目标文件的存储地址或其他目标文件的标识信息等。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, each label in the at least one label may be at least one of the following: a name of a target file, a storage address of the target file, or identification information of other target files, and the like. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

示例性的,假设用户想要给好友M分享歌曲青花瓷,且预设关键词【MM音乐/我的音乐】为第二类关键词。如果用户通过聊天软件A和好友M聊天的过程中,在该聊天界面的输入栏中输入:【MM音乐/我的音乐】,电子设备检测用户输入的关键词【MM音乐/我的音乐】与预设关键词匹配,且该关键词为第二类关键词,那么电子设备响应于用户的输入显示一列多个标签,每个标签为一首歌曲名称,可以用于指示该歌曲的存储位置。用户可以在该多个标签中单击歌曲青花瓷对应的标签,电子设备响应于该用户的单击输入(即,第二输入),显示青花瓷歌曲的文件:青花瓷.mp3(即,目标文件)。Exemplarily, it is assumed that the user wants to share the song blue and white porcelain with friend M, and the preset keyword [MM music/my music] is the second type of keyword. If the user is in the process of chatting with friend M through the chat software A, and enters: [MM Music/My Music] in the input field of the chat interface, the electronic device detects the keyword [MM Music/My Music] entered by the user and If the preset keyword matches, and the keyword is the second type of keyword, the electronic device displays a list of multiple tags in response to the user's input, and each tag is a song name, which can be used to indicate the storage location of the song. The user can click the label corresponding to the song blue-and-white porcelain among the plurality of labels, and the electronic device displays the blue-and-white porcelain song file: blue-and-white porcelain.mp3 (ie, the target file) in response to the user's single-click input (ie, the second input).

可以理解的是,本发明实施例中,电子设备可以根据用户输入的目标关键词为第一类关键词或第二类关键词。在目标关键词与预设关键词匹配,且预设关键词为第一类关键词的情况下,直接显示目标文件。在目标关键词与预设关键词匹配,且预设关键词为第二类关键词的情况下,电子设备显示至少一个标签,用户可以通过对该至少一个标签中目标标签的第二输入,触发电子设备响应于该第二输入显示目标文件。如此,用户可以根据实际使用需求选择不同的关键词,丰富了用户的使用方式,提高用户体验。It can be understood that, in this embodiment of the present invention, the electronic device may be the first type of keyword or the second type of keyword according to the target keyword input by the user. When the target keyword matches the preset keyword, and the preset keyword is the first type of keyword, the target file is directly displayed. In the case that the target keyword matches the preset keyword, and the preset keyword is the second type of keyword, the electronic device displays at least one tag, and the user can trigger the trigger by second inputting the target tag in the at least one tag. The electronic device displays the target file in response to the second input. In this way, the user can select different keywords according to actual usage requirements, which enriches the user's usage mode and improves the user experience.

可选的,结合图2,如图8所示,在目标信息为目标字符串的情况下,上述步骤102具体可以通过下述步骤102d实现。Optionally, with reference to FIG. 2 , as shown in FIG. 8 , in the case that the target information is a target character string, the above step 102 can be specifically implemented by the following step 102d.

步骤102d、在目标关键词与预设关键词匹配的情况下,电子设备确定目标信息,响应于接收到的第三输入,显示目标字符串。Step 102d: In the case that the target keyword matches the preset keyword, the electronic device determines target information, and displays the target character string in response to the received third input.

需要说明的是,本发明实施例中,在目标信息为目标字符串的情况下,由于始终显示该目标字符串可能导致用户的隐私信息泄露,因此,电子设备可以接收用户的输入触发显示该目标字符串。It should be noted that, in this embodiment of the present invention, when the target information is a target character string, since displaying the target character string all the time may lead to leakage of the user's private information, the electronic device can receive the user's input to trigger the display of the target character. string.

可选的,本发明实施例中,上述第三输入可以用于触发电子设备显示目标字符串。第三输入可以为用户对该目标关键词的触控点击输入。具体的,该触控点击输入可以为以下任一种:单击输入、双击输入、长按输入等。第三输入还可以为电子设备验证用户身份的输入。具体的,第三输入可以为电子设备接收用户指纹的输入,第三输入也可以为电子设备接收用户输入验证码的输入,第三输入还可以为电子设备接收用户虹膜信息的输入。具体可以根据实际使用情况确定,本发明实施例不作具体限定。Optionally, in this embodiment of the present invention, the above-mentioned third input may be used to trigger the electronic device to display the target character string. The third input may be a user's touch-click input on the target keyword. Specifically, the touch-click input may be any of the following: single-click input, double-click input, long-press input, and the like. The third input may also be an input for the electronic device to verify the identity of the user. Specifically, the third input may be the electronic device receiving the user's fingerprint input, the third input may also be the electronic device receiving the user's input of the verification code, and the third input may also be the electronic device receiving the user's iris information input. Specifically, it can be determined according to the actual use situation, and is not specifically limited in the embodiment of the present invention.

示例性的,如图3中的(a)所示,电子设备001显示应用程序A的登录界面002,用户可以在该登录界面002中的“账号”输入栏中输入“银行账号1”,并在“密码”输入栏中输入该银行账号对应的密码。如果用户想要查看该银行卡1对应的银行卡账号是否为自己需要的账号,那么用户可以长按该输入栏中的“银行账号1”,电子设备响应于该长按输入(即,第三输入),如图3中的(b)所示,在“银行账号1”与预设关键词匹配的情况下,电子设备001中的“账号”输入栏显示与“银行账号1”关联的目标字符串“621226XXXXXXXX373”(即,目标信息)。Exemplarily, as shown in (a) of FIG. 3 , the electronic device 001 displays the login interface 002 of the application A, and the user can enter “bank account number 1” in the “account number” input field in the login interface 002, and Enter the password corresponding to the bank account in the "Password" input field. If the user wants to check whether the bank card account number corresponding to the bank card 1 is the account he needs, the user can long press "bank account number 1" in the input field, and the electronic device responds to the long press input (ie, the third input), as shown in (b) in Figure 3, in the case that "bank account number 1" matches the preset keyword, the "account number" input column in the electronic device 001 displays the target associated with "bank account number 1" String "621226XXXXXXXX373" (ie, target information).

可以理解的是,本发明实施例中,在目标关键词与预设关键词匹配的情况下,电子设备可以确定目标信息,并可以响应于接收到的第三输入,显示目标字符串。即,在目标关键词与预设关键词匹配的情况下,用户可以通过第三输入,触发电子设备显示目标字符串。如此,一方面、在电子设备未接收到用户第三输入的情况下,电子设备依旧显示目标关键词,不显示目标字符串,从而可以保护用户隐私。另一方面、用户可以根据使用需求,通过第三输入,触发电子设备显示该目标字符串,从而在保护用户隐私的同时,给用户使用目标字符串提供了方便,进而提高电子设备的智能化程度,方便用户使用。It can be understood that, in the embodiment of the present invention, when the target keyword matches the preset keyword, the electronic device can determine target information, and can display the target character string in response to the received third input. That is, when the target keyword matches the preset keyword, the user can trigger the electronic device to display the target character string through the third input. In this way, on the one hand, in the case that the electronic device does not receive the third input from the user, the electronic device still displays the target keyword and does not display the target character string, thereby protecting the user's privacy. On the other hand, the user can trigger the electronic device to display the target string through the third input according to the usage requirements, so as to protect the user's privacy, it provides convenience for the user to use the target string, thereby improving the intelligence of the electronic device. , which is convenient for users to use.

需要说明的是,本发明实施例中,上述各个附图所示的显示方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示的显示方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present invention, the display methods shown in the above drawings are all illustratively described by taking a drawing in the embodiments of the present invention as an example. During specific implementation, the display methods shown in the above-mentioned respective drawings can also be implemented in combination with any other drawings shown in the above-mentioned embodiments that can be combined, and details are not described herein again.

如图9所示,本发明实施例提供一种电子设备900。该电子设备可以包括接收模块901和显示模块902。接收模块901,可以用于接收输入的目标关键词。显示模块902,可以用于在该目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息。其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。As shown in FIG. 9 , an embodiment of the present invention provides an electronic device 900 . The electronic device may include a receiving module 901 and a display module 902 . The receiving module 901 may be configured to receive the input target keyword. The display module 902 may be configured to display target information associated with the target keyword when the target keyword matches a preset keyword. Wherein, the target information is a target character string or a target file, and the name of the target file does not include the target keyword.

可选地,结合图9,如图10所示,本发明实施例提供的电子设备还可以包括处理模块903。接收模块901,还可以用于接收对目标关键词和目标信息的第一目标输入。处理模块903,可以用于响应于接收模块901接收的该第一目标输入,创建该目标关键词和该目标信息的关联联系。Optionally, with reference to FIG. 9 , as shown in FIG. 10 , the electronic device provided in this embodiment of the present invention may further include a processing module 903 . The receiving module 901 may also be configured to receive a first target input of target keywords and target information. The processing module 903 may be configured to, in response to the first target input received by the receiving module 901, create an association relationship between the target keyword and the target information.

可选地,结合图9,如图11所示,本发明实施例提供的电子设备还可以包括发送模块904。发送模块904,可以用于向目标设备发送目标信息。Optionally, with reference to FIG. 9 , as shown in FIG. 11 , the electronic device provided in this embodiment of the present invention may further include a sending module 904 . The sending module 904 may be configured to send target information to the target device.

可选的,本发明实施例中,目标关键词与预设关键词匹配为目标关键词与预设关键词的匹配度大于或等于第一阈值。显示模块902,具体可以用于在目标关键词与预设关键词的匹配度大于或等于第二阈值,且目标关键词与预设关键词的匹配度小于第一阈值的情况下,显示提示信息和该预设关键词,该提示信息可以用于提示用户确认该目标关键词是否正确。接收模块901,还可以用于接收对预设关键词的第一输入。显示模块902,还可以用于响应于接收模块901接收的该第一输入,显示与该目标关键词关联的目标信息。Optionally, in this embodiment of the present invention, the matching between the target keyword and the preset keyword is that the matching degree between the target keyword and the preset keyword is greater than or equal to the first threshold. The display module 902 can be specifically configured to display prompt information when the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, and the matching degree between the target keyword and the preset keyword is less than the first threshold and the preset keyword, the prompt information can be used to prompt the user to confirm whether the target keyword is correct. The receiving module 901 may also be configured to receive a first input of a preset keyword. The display module 902 may also be configured to display target information associated with the target keyword in response to the first input received by the receiving module 901 .

可选的,本发明实施例中,目标信息为目标文件,显示模块902,具体可以用于在目标关键词与预设关键词匹配,且该预设关键词为第一类关键词的情况下,显示该目标文件;或者,显示模块902,具体可以用于在目标关键词与预设关键词匹配,且该预设关键词为第二类关键词的情况下,显示至少一个标签,响应于对该至少一个标签中目标标签的第二输入,显示该目标文件。Optionally, in this embodiment of the present invention, the target information is a target file, and the display module 902 can be specifically used in the case that the target keyword matches a preset keyword, and the preset keyword is the first type of keyword. , display the target file; or, the display module 902 can be specifically configured to display at least one label when the target keyword matches a preset keyword, and the preset keyword is a second-type keyword, and respond to The target file is displayed for a second input of the target tag of the at least one tag.

可选的,本发明实施例中,目标信息为目标字符串,处理模块903,可以用于在目标关键词与预设关键词匹配的情况下,确定目标信息,响应于接收到的第三输入,控制显示模块902显示该目标字符串。Optionally, in this embodiment of the present invention, the target information is a target character string, and the processing module 903 may be configured to determine the target information when the target keyword matches the preset keyword, and respond to the received third input. , control the display module 902 to display the target character string.

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

本发明实施例提供一种电子设备,一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标字符串,因此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而节约用户时间。另一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标文件,因此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而方便寻找目标文件。综上,用户可以通过仅输入目标关键词,触发电子设备显示与该目标关键词关联的目标字符串或目标文件,从而可以提高电子设备的智能化程度,进而可以减少用户操作步骤。An embodiment of the present invention provides an electronic device. On the one hand, when a target keyword input by a user matches a preset keyword, the electronic device can display a target character string associated with the target keyword, so the user can only Save users time by entering target keywords without having to manually enter the entire string. On the other hand, since the electronic device can display the target file associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword to trigger the electronic device to display the target keyword. files, without the need for users to search for target files one by one, so as to facilitate the search for target files. To sum up, the user can trigger the electronic device to display the target character string or target file associated with the target keyword by only inputting the target keyword, thereby improving the intelligence of the electronic device and reducing user operation steps.

图12为实现本发明各个实施例的一种电子设备的硬件结构示意图。如图12所示,该电子设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in FIG. 12 , the electronic device 200 includes but is not limited to: a radio frequency unit 201 , a network module 202 , an audio output unit 203 , an input unit 204 , a sensor 205 , a display unit 206 , a user input unit 207 , an interface unit 208 , and a memory 209 , the processor 210, and the power supply 211 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 12 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 devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.

其中,处理器210用于控制用户输入单元207接收输入的目标关键词。并控制显示单元206在该目标关键词与预设关键词匹配的情况下,显示与该目标关键词关联的目标信息。其中,该目标信息为目标字符串或目标文件,该目标文件的名称不包括该目标关键词。The processor 210 is configured to control the user input unit 207 to receive the input target keyword. and controlling the display unit 206 to display target information associated with the target keyword when the target keyword matches the preset keyword. Wherein, the target information is a target character string or a target file, and the name of the target file does not include the target keyword.

本发明实施例提供一种电子设备,一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标字符串,因此用户可以仅输入目标关键词,而无需手动输入整个字符串,从而节约用户时间。另一方面,由于在用户输入的目标关键词与预设关键词匹配的情况下,电子设备可以显示与该目标关键词关联的目标文件,因此用户可以仅输入目标关键词,触发电子设备显示目标文件,而无需用户逐个查找目标文件,从而方便寻找目标文件。综上,用户可以通过仅输入目标关键词,触发电子设备显示与该目标关键词关联的目标字符串或目标文件,从而可以提高电子设备的智能化程度,进而可以减少用户操作步骤。An embodiment of the present invention provides an electronic device. On the one hand, when a target keyword input by a user matches a preset keyword, the electronic device can display a target character string associated with the target keyword, so the user can only Save users time by entering target keywords without having to manually enter the entire string. On the other hand, since the electronic device can display the target file associated with the target keyword when the target keyword input by the user matches the preset keyword, the user can only input the target keyword to trigger the electronic device to display the target keyword. files, without the need for users to search for target files one by one, so as to facilitate the search for target files. To sum up, the user can trigger the electronic device to display the target character string or target file associated with the target keyword by only inputting the target keyword, thereby improving the intelligence of the electronic device and reducing user operation steps.

应理解的是,本发明实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 201 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 210; The uplink data is sent to the base station. Generally, the radio frequency unit 201 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 201 can also communicate with the network and other devices through a wireless communication system.

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

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

输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(graphics processing unit,GPU)2041、麦克风2042和摄像头模组2043,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。摄像头模组2043采集图像,并将采集到的图像传输至图形处理器2041。The input unit 204 is used to receive audio or video signals. The input unit 204 may include a graphics processor (graphics processing unit, GPU) 2041, a microphone 2042, and a camera module 2043, and the graphics processor 2041 is capable of processing static images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The image data of pictures or videos is processed. The processed image frames may be displayed on the display unit 206 . The image frames processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202 . The microphone 2042 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 201 for output in the case of a telephone call mode. The camera module 2043 captures images and transmits the captured images to the graphics processor 2041 .

电子设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在电子设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 200 also includes at least one sensor 205, 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 2061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 2061 and the display panel 2061 when the electronic device 200 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 205 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.

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

用户输入单元207可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 207 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 207 includes a touch panel 2071 and other input devices 2072 . The touch panel 2071, also known as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, or any suitable object or accessory on or near the touch panel 2071). operate). The touch panel 2071 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 210, the command sent by the processor 210 is received and executed. In addition, the touch panel 2071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 2071 , the user input unit 207 may also include other input devices 2072 . Specifically, other input devices 2072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.

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

接口单元208为外部装置与电子设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备200内的一个或多个元件或者可以用于在电子设备200和外部装置之间传输数据。The interface unit 208 is an interface for connecting an external device to the electronic device 200 . 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 208 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 200 or may be used between the electronic device 200 and the external Transfer data between devices.

存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 209 may be used to store software programs as well as various data. The memory 209 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 required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 209 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.

处理器210是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器210可包括一个或多个处理单元;可选的,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The processor 210 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 209, and calling the data stored in the memory 209. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 210 may include one or more processing units; optionally, the processor 210 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 210.

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

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

可选的,本发明实施例还提供一种电子设备,包括如图12所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including a processor 210 as shown in FIG. 12 , a memory 209 , a computer program stored in the memory 209 and executable on the processor 210 , the computer program being When the processor 210 executes, each process of the foregoing method embodiments is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(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, and when the computer program is executed by a processor, each process of the foregoing method embodiment can be achieved, and the same technical effect can be achieved, In order to avoid repetition, details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), 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 (12)

1.一种显示方法,其特征在于,所述方法包括:1. A display method, wherein the method comprises: 接收输入的目标关键词;Receive the input target keyword; 在所述目标关键词与预设关键词匹配的情况下,显示与所述目标关键词关联的目标信息;In the case that the target keyword matches a preset keyword, display target information associated with the target keyword; 其中,所述目标信息为目标字符串或目标文件,所述目标文件的名称不包括所述目标关键词。Wherein, the target information is a target character string or a target file, and the name of the target file does not include the target keyword. 2.根据权利要求1所述的方法,其特征在于,所述显示与所述目标关键词关联的目标信息之后,所述方法还包括:2. The method according to claim 1, characterized in that after displaying the target information associated with the target keyword, the method further comprises: 向目标设备发送所述目标信息。The target information is sent to the target device. 3.根据权利要求1或2所述的方法,其特征在于,所述目标关键词与所述预设关键词匹配为所述目标关键词与所述预设关键词的匹配度大于或等于第一阈值;3. The method according to claim 1 or 2, wherein the matching of the target keyword and the preset keyword is that the matching degree of the target keyword and the preset keyword is greater than or equal to the first a threshold; 所述显示与所述目标关键词关联的目标信息之前,所述方法还包括:Before displaying the target information associated with the target keyword, the method further includes: 在所述目标关键词与所述预设关键词的匹配度大于或等于第二阈值,且所述目标关键词与所述预设关键词的匹配度小于所述第一阈值的情况下,显示提示信息和所述预设关键词,所述提示信息用于提示用户确认所述目标关键词是否正确;When the matching degree between the target keyword and the preset keyword is greater than or equal to the second threshold, and the matching degree between the target keyword and the preset keyword is less than the first threshold, display prompt information and the preset keyword, the prompt information is used to prompt the user to confirm whether the target keyword is correct; 接收对所述预设关键词的第一输入;receiving a first input of the preset keyword; 所述显示与所述目标关键词关联的目标信息,包括:The displaying target information associated with the target keyword includes: 响应于所述第一输入,显示与所述目标关键词关联的目标信息。In response to the first input, target information associated with the target keyword is displayed. 4.根据权利要求1或2所述的方法,其特征在于,所述目标信息为目标文件;所述在所述目标关键词与预设关键词匹配的情况下,显示与所述目标关键词关联的目标信息,包括:4. The method according to claim 1 or 2, wherein the target information is a target file; when the target keyword matches a preset keyword, displaying the target keyword Associated target information, including: 在所述目标关键词与所述预设关键词匹配,且所述预设关键词为第一类关键词的情况下,显示所述目标文件;In the case that the target keyword matches the preset keyword, and the preset keyword is a keyword of the first type, displaying the target file; 或者,or, 在所述目标关键词与所述预设关键词匹配,且所述预设关键词为第二类关键词的情况下,显示至少一个标签,响应于对所述至少一个标签中目标标签的第二输入,显示所述目标文件。In the case that the target keyword matches the preset keyword, and the preset keyword is a keyword of the second type, at least one tag is displayed, and in response to the first tag of the target tag in the at least one tag Second input, display the target file. 5.根据权利要求1或2所述的方法,其特征在于,所述目标信息为目标字符串;5. The method according to claim 1 or 2, wherein the target information is a target character string; 所述在所述目标关键词与预设关键词匹配的情况下,显示与所述目标关键词关联的目标信息,包括:When the target keyword matches a preset keyword, display target information associated with the target keyword, including: 在所述目标关键词与所述预设关键词匹配的情况下,确定目标信息,响应于接收到的第三输入,显示所述目标字符串。In the case that the target keyword matches the preset keyword, target information is determined, and the target character string is displayed in response to the received third input. 6.一种电子设备,其特征在于,所述电子设备包括:接收模块和显示模块;6. An electronic device, characterized in that the electronic device comprises: a receiving module and a display module; 所述接收模块,用于接收输入的目标关键词;The receiving module is used to receive the input target keyword; 所述显示模块,用于在所述目标关键词与预设关键词匹配的情况下,显示与所述目标关键词关联的目标信息;The display module is configured to display target information associated with the target keyword when the target keyword matches a preset keyword; 其中,所述目标信息为目标字符串或目标文件,所述目标文件的名称不包括所述目标关键词。Wherein, the target information is a target character string or a target file, and the name of the target file does not include the target keyword. 7.根据权利要求6所述的电子设备,其特征在于,所述电子设备还包括发送模块;7. The electronic device according to claim 6, wherein the electronic device further comprises a sending module; 所述发送模块,用于向目标设备发送所述目标信息。The sending module is configured to send the target information to the target device. 8.根据权利要求6或7所述的电子设备,其特征在于,所述目标关键词与所述预设关键词匹配为所述目标关键词与所述预设关键词的匹配度大于或等于第一阈值;8. The electronic device according to claim 6 or 7, wherein the matching of the target keyword with the preset keyword is that the matching degree of the target keyword and the preset keyword is greater than or equal to first threshold; 所述显示模块,具体用于在所述目标关键词与所述预设关键词的匹配度大于或等于第二阈值,且所述目标关键词与所述预设关键词的匹配度小于所述第一阈值的情况下,显示提示信息和所述预设关键词,所述提示信息用于提示用户确认所述目标关键词是否正确;The display module is specifically configured to be used when the matching degree between the target keyword and the preset keyword is greater than or equal to a second threshold, and the matching degree between the target keyword and the preset keyword is less than the In the case of the first threshold, prompt information and the preset keyword are displayed, and the prompt information is used to prompt the user to confirm whether the target keyword is correct; 所述接收模块,还用于接收对所述预设关键词的第一输入;The receiving module is further configured to receive the first input of the preset keyword; 所述显示模块,还用于响应于所述接收模块接收的所述第一输入,显示与所述目标关键词关联的目标信息。The display module is further configured to display target information associated with the target keyword in response to the first input received by the receiving module. 9.根据权利要求6或7所述的电子设备,其特征在于,所述目标信息为目标文件;9. The electronic device according to claim 6 or 7, wherein the target information is a target file; 所述显示模块,具体用于在所述目标关键词与所述预设关键词匹配,且所述预设关键词为第一类关键词的情况下,显示所述目标文件;或者,The display module is specifically configured to display the target file when the target keyword matches the preset keyword and the preset keyword is a first-type keyword; or, 所述显示模块,具体用于在所述目标关键词与所述预设关键词匹配,且所述预设关键词为第二类关键词的情况下,显示至少一个标签,响应于对所述至少一个标签中目标标签的第二输入,显示所述目标文件。The display module is specifically configured to display at least one label in the case that the target keyword matches the preset keyword, and the preset keyword is a second-type keyword, and responds to the The second input of the target tag in at least one of the tags displays the target file. 10.根据权利要求6或7所述的电子设备,其特征在于,所述电子设备还包括处理模块,所述目标信息为目标字符串;10. The electronic device according to claim 6 or 7, wherein the electronic device further comprises a processing module, and the target information is a target character string; 所述处理模块,用于在所述目标关键词与所述预设关键词匹配的情况下,确定目标信息,响应于接收到的第三输入,控制显示模块显示所述目标字符串。The processing module is configured to determine target information when the target keyword matches the preset keyword, and in response to the received third input, control the display module to display the target character string. 11.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的显示方法的步骤。11. An electronic device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the right The steps of the display method described in any one of claims 1 to 5. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的显示方法的步骤。12. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the display according to any one of claims 1 to 5 is realized steps of the method.
CN202010125697.0A 2020-02-27 2020-02-27 Display method and electronic device Pending CN111368151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010125697.0A CN111368151A (en) 2020-02-27 2020-02-27 Display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125697.0A CN111368151A (en) 2020-02-27 2020-02-27 Display method and electronic device

Publications (1)

Publication Number Publication Date
CN111368151A true CN111368151A (en) 2020-07-03

Family

ID=71208183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125697.0A Pending CN111368151A (en) 2020-02-27 2020-02-27 Display method and electronic device

Country Status (1)

Country Link
CN (1) CN111368151A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399006A (en) * 2020-10-28 2021-02-23 维沃移动通信(杭州)有限公司 File transmission method, device and electronic device
CN112765944A (en) * 2020-12-30 2021-05-07 维沃移动通信有限公司 Form filling method, device, equipment and medium
CN115618826A (en) * 2022-10-27 2023-01-17 维沃移动通信有限公司 Form filling method, device, electronic device and medium
CN115629696A (en) * 2022-10-27 2023-01-20 维沃移动通信有限公司 System data display method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202204A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 The lookup method of a kind of voice document and mobile terminal
CN107450744A (en) * 2017-07-13 2017-12-08 维沃移动通信有限公司 A kind of personal data inputting method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202204A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 The lookup method of a kind of voice document and mobile terminal
CN107450744A (en) * 2017-07-13 2017-12-08 维沃移动通信有限公司 A kind of personal data inputting method and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399006A (en) * 2020-10-28 2021-02-23 维沃移动通信(杭州)有限公司 File transmission method, device and electronic device
CN112399006B (en) * 2020-10-28 2022-09-16 维沃移动通信(杭州)有限公司 File transmission method, device and electronic device
CN112765944A (en) * 2020-12-30 2021-05-07 维沃移动通信有限公司 Form filling method, device, equipment and medium
CN112765944B (en) * 2020-12-30 2024-09-03 维沃移动通信有限公司 Form filling method, device, equipment and medium
CN115618826A (en) * 2022-10-27 2023-01-17 维沃移动通信有限公司 Form filling method, device, electronic device and medium
CN115629696A (en) * 2022-10-27 2023-01-20 维沃移动通信有限公司 System data display method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US12113925B2 (en) Unread message management method and terminal device
WO2019184666A1 (en) Method for displaying content and terminal
CN111061383B (en) Text detection method and electronic equipment
CN109901761B (en) A content display method and mobile terminal
CN111368151A (en) Display method and electronic device
US11861158B2 (en) Message processing method and electronic device
WO2021110053A1 (en) File sending method and terminal device
CN111600931A (en) Information sharing method and electronic equipment
WO2021017738A1 (en) Interface display method and electronic device
WO2020215932A1 (en) Method for displaying unread message and terminal device
CN110012152A (en) A kind of interface display method and terminal device
WO2021057301A1 (en) File control method and electronic device
WO2020199783A1 (en) Interface display method and terminal device
JP2023529956A (en) INTERFACE DISPLAY METHOD, APPARATUS AND ELECTRONIC DEVICE
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2020258952A1 (en) Permission configuration method and terminal device
WO2020192322A1 (en) Display method and terminal device
CN111596819A (en) Unread message processing method and electronic equipment
WO2021121225A1 (en) Method for installing application program, and electronic apparatus
CN110175063A (en) Operation assistance method, device, mobile terminal and storage medium
CN111459358A (en) Application control method and electronic device
WO2020220893A1 (en) Screenshot method and mobile terminal
CN109981442A (en) Method for sending information and terminal device
CN110196664A (en) Control method and terminal device
CN111459361A (en) Application icon display method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703

RJ01 Rejection of invention patent application after publication