Movatterモバイル変換


[0]ホーム

URL:


CN106843860B - Method, device and system for adjusting display style of search box - Google Patents

Method, device and system for adjusting display style of search box
Download PDF

Info

Publication number
CN106843860B
CN106843860BCN201710001724.1ACN201710001724ACN106843860BCN 106843860 BCN106843860 BCN 106843860BCN 201710001724 ACN201710001724 ACN 201710001724ACN 106843860 BCN106843860 BCN 106843860B
Authority
CN
China
Prior art keywords
display style
input content
target
search box
current input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710001724.1A
Other languages
Chinese (zh)
Other versions
CN106843860A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201710001724.1ApriorityCriticalpatent/CN106843860B/en
Publication of CN106843860ApublicationCriticalpatent/CN106843860A/en
Application grantedgrantedCritical
Publication of CN106843860BpublicationCriticalpatent/CN106843860B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种调整搜索框的显示样式的方法、装置和系统,属于计算机技术领域。所述方法包括:当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。采用本发明,可以提高搜索框的显示灵活性。

Figure 201710001724

The invention discloses a method, device and system for adjusting the display style of a search box, belonging to the technical field of computers. The method includes: when it is detected that the input content in the target search box changes, acquiring the current input content in the target search box, and sending the current input content to the server, where the current input content is used according to the pre-stored content. The correspondence between words and display styles, determine the first display style corresponding to the target word contained in the current input content, receive the first display style sent by the server, and adjust the display style of the target search box to the first display style. By adopting the present invention, the display flexibility of the search box can be improved.

Figure 201710001724

Description

Translated fromChinese
一种调整搜索框的显示样式的方法、装置和系统A method, device and system for adjusting the display style of a search box

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种调整搜索框的显示样式的方法、装置和系统。The present invention relates to the field of computer technology, and in particular, to a method, device and system for adjusting the display style of a search box.

背景技术Background technique

随着计算机技术和网络技术的发展,越来越多的应用程序得到了开发和应用,目前应用程序一般都提供有搜索功能,用户可以使用搜索功能从应用程序的服务器处获取相关信息。With the development of computer technology and network technology, more and more application programs have been developed and applied. Currently, application programs generally provide a search function, and users can use the search function to obtain relevant information from the server of the application program.

用户可以在应用程序提供的搜索框中输入想要获取的信息的词语,然后点击搜索按键,终端则可以向应用程序的服务器发送携带有上述词语的查询请求,服务器接收到该查询请求后,可以返回与上述词语关联的相关信息,从而终端可以接收并显示上述相关信息。The user can enter the words of the information they want to obtain in the search box provided by the application, and then click the search button, and the terminal can send a query request carrying the above words to the server of the application. After receiving the query request, the server can The related information associated with the above-mentioned words is returned, so that the terminal can receive and display the above-mentioned related information.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor found that the prior art has at least the following problems:

在用户搜索过程中,应用程序提供的搜索框始终为黑白样式的静态矩形框图,搜索框样式单一,搜索框的显示灵活性较差。During the user's search process, the search box provided by the application is always a static rectangular frame in black and white style. The search box has a single style, and the display flexibility of the search box is poor.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术的问题,本发明实施例提供了一种调整搜索框的显示样式的方法、装置和系统。所述技术方案如下:In order to solve the problems in the prior art, the embodiments of the present invention provide a method, apparatus and system for adjusting the display style of the search box. The technical solution is as follows:

第一方面,提供了一种调整搜索框的显示样式的方法,所述方法包括:In a first aspect, a method for adjusting a display style of a search box is provided, the method comprising:

当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;When detecting that the input content in the target search box changes, obtain the current input content in the target search box;

向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Sending the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the correspondence between pre-stored words and display styles;

接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style.

可选的,所述方法还包括:Optionally, the method further includes:

当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。When a storage instruction of the first display style is received, the first display style is stored.

这样,如果在输入过程中,用户发现自己喜欢当前搜索框的显示样式,则可以手动存储该显示样式。In this way, if the user finds that he likes the display style of the current search box during the input process, he can manually store the display style.

可选的,所述方法还包括:Optionally, the method further includes:

当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。When the input content in the target search box is empty, the display style of the target search box is set to the first display style.

这样,如果在输入过程中,用户发现自己喜欢当前搜索框的显示样式,可以将该显示样式设置为搜索框的默认显示样式。In this way, if the user finds that he likes the display style of the current search box during the input process, the display style can be set as the default display style of the search box.

可选的,所述当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,包括:Optionally, when detecting that the input content in the target search box changes, acquiring the current input content in the target search box, including:

当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,

当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,

当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.

第二方面,提供了一种调整搜索框的显示样式的方法,所述方法包括:In a second aspect, a method for adjusting a display style of a search box is provided, the method comprising:

接收终端发送的目标搜索框内的当前输入内容;Receive the current input content in the target search box sent by the terminal;

根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style;

向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

可选的,所述方法还包括:Optionally, the method further includes:

如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;If the target word contained in the current input content does not exist in the corresponding relationship, obtain a target picture corresponding to the target word;

根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;Generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the corresponding relationship;

向所述终端发送所述第二显示样式。The second display style is sent to the terminal.

这样,即使服务器中未存储与输入内容关联的显示样式,服务器也可以根据输入内容生成新的显示样式,并发送给终端,可以提高搜索框的显示灵活性。In this way, even if the display style associated with the input content is not stored in the server, the server can generate a new display style according to the input content and send it to the terminal, which can improve the display flexibility of the search box.

可选的,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:Optionally, determining the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, including:

获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;obtaining the first target word with the highest popularity among the plurality of target words contained in the current input content;

根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The first display style corresponding to the first target word is determined according to the pre-stored correspondence between the word and the display style.

这样,如果输入内容中存在多个目标词语,服务器则可以选择其中最热门的目标词语对应的显示样式发送给终端。In this way, if there are multiple target words in the input content, the server can select the display style corresponding to the most popular target word and send it to the terminal.

可选的,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:Optionally, determining the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, including:

如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.

这样,可以有效避免用户在搜索框进行输入的过程中,服务器连续多次向终端发送同一显示样式的情况。In this way, it can be effectively avoided that the server sends the same display style to the terminal several times in a row during the process of inputting by the user in the search box.

第三方面,提供了一种终端,所述终端包括:In a third aspect, a terminal is provided, and the terminal includes:

获取模块,用于当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;an acquisition module, configured to acquire the current input content in the target search box when it is detected that the input content in the target search box changes;

发送模块,用于向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;A sending module, configured to send the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles ;

接收模块,用于接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。A receiving module, configured to receive the first display style sent by the server, and adjust the display style of the target search box to the first display style.

可选的,所述终端还包括:Optionally, the terminal further includes:

存储模块,用于当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。The storage module is configured to store the first display style when receiving the storage instruction of the first display style.

可选的,所述终端还包括:Optionally, the terminal further includes:

设置模块,用于当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。A setting module, configured to set the display style of the target search box to the first display style when the input content in the target search box is empty.

可选的,所述获取模块,用于:Optionally, the obtaining module is used for:

当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,

当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,

当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.

第四方面,提供了一种服务器,所述服务器包括:In a fourth aspect, a server is provided, the server comprising:

接收模块,用于接收终端发送的目标搜索框内的当前输入内容;a receiving module for receiving the current input content in the target search box sent by the terminal;

确定模块,用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;a determining module, configured to determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style;

第一发送模块,用于向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。A first sending module, configured to send the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

可选的,所述服务器还包括:Optionally, the server further includes:

获取模块,用于如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;an acquisition module, configured to acquire a target picture corresponding to the target word if the target word contained in the current input content does not exist in the corresponding relationship;

生成模块,用于根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;A generating module, configured to generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the corresponding relationship;

第二发送模块,用于向所述终端发送所述第二显示样式。A second sending module, configured to send the second display style to the terminal.

可选的,所述确定模块,包括:Optionally, the determining module includes:

获取子模块,用于获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;an acquisition sub-module for acquiring the first target word with the highest popularity among the multiple target words contained in the current input content;

确定子模块,用于根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The determining submodule is configured to determine the first display style corresponding to the first target word according to the pre-stored correspondence between the word and the display style.

可选的,所述确定模块,用于:Optionally, the determining module is used for:

如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.

第五方面,提供了一种调整搜索框的显示样式的装置,包括:In a fifth aspect, a device for adjusting the display style of a search box is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;When detecting that the input content in the target search box changes, obtain the current input content in the target search box;

向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Sending the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the correspondence between pre-stored words and display styles;

接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style.

第六方面,提供了一种调整搜索框的显示样式的装置,包括:In a sixth aspect, a device for adjusting the display style of the search box is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

接收终端发送的目标搜索框内的当前输入内容;Receive the current input content in the target search box sent by the terminal;

根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style;

向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

第七方面,提供了一种调整搜索框的显示样式的系统,所述系统包括终端和服务器,其中:In a seventh aspect, a system for adjusting a display style of a search box is provided, the system includes a terminal and a server, wherein:

所述终端,用于当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,向所述服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式;The terminal is configured to acquire the current input content in the target search box when it is detected that the input content in the target search box changes, and send the current input content to the server, where the current input content is used according to the Pre-stored correspondence between words and display styles, determine the first display style corresponding to the target word contained in the current input content, receive the first display style sent by the server, and display the target search box. The style is adjusted to the first display style;

所述服务器,用于接收所述终端发送的所述目标搜索框内的当前输入内容,根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。The server is configured to receive the current input content in the target search box sent by the terminal, and determine the first corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles. display style, sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例提供的一种调整搜索框的显示样式的方法流程图;1 is a flowchart of a method for adjusting the display style of a search box provided by an embodiment of the present invention;

图2是本发明实施例提供的一种生成显示样式的处理流程图;Fig. 2 is a kind of processing flow chart of generating a display style provided by an embodiment of the present invention;

图3是本发明实施例提供的一种调整搜索框的显示样式的效果示意图;3 is a schematic diagram of an effect of adjusting the display style of a search box according to an embodiment of the present invention;

图4是本发明实施例提供的一种终端的结构示意图;4 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图5是本发明实施例提供的一种终端的结构示意图;FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图6是本发明实施例提供的一种终端的结构示意图;6 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图7是本发明实施例提供的一种服务器的结构示意图;7 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图8是本发明实施例提供的一种服务器的结构示意图;8 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图9是本发明实施例提供的一种服务器的结构示意图;9 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图10是本发明实施例提供的一种终端的结构示意图;FIG. 10 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图11是本发明实施例提供的一种服务器的结构示意图。FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

本发明实施例提供了一种调整搜索框的显示样式的方法,该方法可以由终端和服务器共同实现。其中,终端可以是安装有应用程序的任意终端,如手机、电脑等,应用程序可以是具备搜索功能的应用程序,如网页浏览类应用,视频播放类应用等,终端上可以设置有处理器、存储器、通信部件、显示部件和输入部件,处理器可以用于对调整搜索框的显示样式的过程进行处理,存储器可以用于存储下述处理过程中需要的数据以及产生的数据,通信部件可以用于数据的接收与发送,显示部件可以用于显示输入内容、显示样式等,可以是屏幕,输入部件可以用于用户向终端输入指令,可以是键盘或控制按键等。服务器可以是上述具备搜索功能的应用程序的服务器,该服务器中可以设置有处理器、存储器、通信部件,处理器可以用于对终端发送的输入内容进行处理,存储器可以用于存储下述处理过程中需要的数据以及产生的数据,通信部件可以用于与终端进行数据交互。本实施例中以终端为电脑,应用程序为网页浏览类应用为例,进行方案的详细说明,其它情况与之类似,本实施例不再累述。The embodiment of the present invention provides a method for adjusting the display style of a search box, and the method can be jointly implemented by a terminal and a server. The terminal can be any terminal installed with application programs, such as mobile phones, computers, etc. The application program can be an application program with a search function, such as a web browsing application, a video playing application, etc. The terminal can be provided with a processor, Memory, communication part, display part and input part, the processor can be used to process the process of adjusting the display style of the search box, the memory can be used to store the data required in the following processing and the data generated, the communication part can use For data reception and transmission, the display component can be used to display input content, display styles, etc., which can be a screen, and the input component can be used for the user to input instructions to the terminal, and can be a keyboard or control keys. The server can be the server of the above-mentioned application program with the search function. The server can be provided with a processor, a memory, and a communication component. The processor can be used to process the input content sent by the terminal, and the memory can be used to store the following processing procedures. The data required and generated in the communication component can be used for data interaction with the terminal. In this embodiment, the terminal is a computer and the application program is a web browsing application as an example, and the detailed description of the solution is carried out. Other situations are similar, and are not repeated in this embodiment.

下面将结合具体实施方式,对图1所示的处理流程进行详细的说明,内容可以如下:The processing flow shown in FIG. 1 will be described in detail below in conjunction with the specific embodiments, and the content may be as follows:

步骤101,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容。Step 101: When detecting that the input content in the target search box changes, the terminal acquires the current input content in the target search box.

在实施中,用户可以在终端上安装有用于浏览网页的应用程序(即网页浏览类应用),用户可以点击打开上述网页浏览类应用,则会触发终端显示网页浏览类应用的主页面,主页面中可以设置有至少一个搜索框,当用户想要查找某些目标信息时,可以在搜索框(即目标搜索框)内输入目标信息的相关搜索词句。这时,终端可以检测目标搜索框内的输入内容是否发生变化,具体的,当输入光标出现在目标搜索框时,可以触发上述检测处理,用户在目标搜索框内输入文本信息后,终端则可以检测到目标搜索框内的输入内容变化,进而可以获取目标搜索框内的当前输入内容。需要说明的是,输入内容变化可以是目标搜索框内的输入内容由空变为有字符,也可以是输入内容减少或增多,还可以是输入内容中有至少一个字符发生了改变等多种情况。In implementation, the user may install an application for browsing web pages (ie, a web browsing application) on the terminal, and the user may click to open the above web browsing application, which will trigger the terminal to display the main page of the web browsing application. The main page At least one search box can be set in the . When the user wants to find some target information, he can input relevant search terms of the target information in the search box (ie, the target search box). At this time, the terminal can detect whether the input content in the target search box has changed. Specifically, when the input cursor appears in the target search box, the above detection process can be triggered. After the user enters text information in the target search box, the terminal can The change of the input content in the target search box is detected, and then the current input content in the target search box can be obtained. It should be noted that the change of the input content can be that the input content in the target search box is changed from empty to having characters, or the input content can be reduced or increased, or at least one character in the input content has changed. .

可选的,上述检测输入内容变化,触发终端获取当前输入内容的方式多种多样,如下给出了三种可行的方式:Optionally, there are various ways to trigger the terminal to obtain the current input content by detecting the change of the input content. Three feasible ways are given as follows:

方式一:当检测到目标搜索框内的输入光标移动时,获取目标搜索框内的当前输入内容。Method 1: When it is detected that the input cursor in the target search box moves, the current input content in the target search box is obtained.

在实施中,终端可以实时检测目标搜索框内的输入光标的位置,当输入光标移动(即输入光标的位置发生变化)时,可以认为目标搜索框内的当前输入内容发生了变化,进而终端可以获取目标搜索框内的当前输入内容。In implementation, the terminal can detect the position of the input cursor in the target search box in real time, and when the input cursor moves (that is, the position of the input cursor changes), it can be considered that the current input content in the target search box has changed, and then the terminal can Get the current input in the target search box.

方式二:当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容。Manner 2: When a search confirmation instruction input by the user is detected, the current input content in the target search box is acquired.

在实施中,用户在目标搜索框内完成输入操作后,可以点击目标搜索框对应的确认按键,这时,终端则可以检测到用户输入的搜索确认指令,可以判断目标搜索框内的当前输入内容发生了变化,进而终端可以获取目标搜索框内的当前输入内容。In the implementation, after the user completes the input operation in the target search box, he can click the confirmation button corresponding to the target search box. At this time, the terminal can detect the search confirmation instruction input by the user, and can judge the current input content in the target search box. changes, so that the terminal can obtain the current input content in the target search box.

方式三:当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。Manner 3: When it is detected that the number of input characters in the target search box changes, the current input content in the target search box is acquired.

在实施中,终端可以实时检测目标搜索框内的已输入字符数,如果已输入字符数发生了变化,则可以认为目标搜索框内的当前输入内容发生了变化,进而终端可以获取目标搜索框内的当前输入内容。In implementation, the terminal can detect the number of entered characters in the target search box in real time. If the number of entered characters changes, it can be considered that the current input content in the target search box has changed, and then the terminal can obtain the information in the target search box. of the current input.

可选的,为避免目标搜索框的显示样式频繁的快速无意义变化,步骤101的处理可以相应如下:周期性检测目标搜索框内的输入内容,如果目标搜索框内的输入内容发生变化,终端则获取目标搜索框内的当前输入内容。Optionally, in order to avoid frequent rapid and meaningless changes in the display style of the target search box, the processing instep 101 may be as follows: Periodically detect the input content in the target search box, if the input content in the target search box changes, the terminal Then get the current input content in the target search box.

在实施中,可以设定检测目标搜索框内的输入内容的间隔时长,这样,当目标搜索内出现输入光标后,终端可以上述间隔时长周期性检测目标搜索框内的输入内容,如果某一次检测到的输入内容与上一次检测到的输入内容不同,则目标搜索框内的输入内容发生了变化,进而终端可以获取目标搜索框内的当前输入内容。In implementation, the interval length for detecting the input content in the target search box can be set, so that when the input cursor appears in the target search, the terminal can periodically detect the input content in the target search box with the above interval time. If the detected input content is different from the last detected input content, the input content in the target search box has changed, and the terminal can obtain the current input content in the target search box.

步骤102,终端向服务器发送当前输入内容。Step 102, the terminal sends the current input content to the server.

在实施中,终端获取到目标搜索框内的当前输入内容后,可以向服务器发送该当前输入内容。In implementation, after acquiring the current input content in the target search box, the terminal may send the current input content to the server.

步骤103,服务器接收终端发送的目标搜索框内的当前输入内容。Step 103, the server receives the current input content in the target search box sent by the terminal.

在实施中,终端向服务器发送目标搜索框内的当前输入内容后,服务器可以接收到相应的当前输入内容。In implementation, after the terminal sends the current input content in the target search box to the server, the server can receive the corresponding current input content.

步骤104,服务器根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式。Step 104, the server determines a first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style.

在实施中,服务器中可以存储有大量的搜索框的显示样式,这些显示样式可以是技术人员自行设计的,或者是用户设计后上传给服务器的,也可以是服务器从网络上爬取的。服务器获取到搜索框的某个显示样式后,技术人员可以为每个显示样式标注词语,该词语可以用于描述该显示样式的主题或者风格等。之后,服务器可以建立词语和显示样式的对应关系,从而服务器可以根据词语查找到对应的显示样式。需要说明的是,上述对应关系中,可以一个词语对应多个显示样式,也可以一个显示样式对应多个词语。服务器接收到目标搜索框内的当前输入内容后,可以获取当前输入内容包含的目标词语,具体可以对当前输入内容进行分词处理,筛选出其中包含的可以用于描述主题或者风格的目标词语。然后服务器可以在预先存储的词语和显示样式的对应关系中,查找目标词语对应的第一显示样式。需要说明的是,如果目标词语对应有多个显示样式,服务器则可以在多个显示样式中随机获取一个显示样式,或者可以获取其中最新的一个显示样式。In implementation, a large number of search box display styles may be stored in the server, and these display styles may be designed by technical personnel, or uploaded to the server after being designed by the user, or may be crawled by the server from the network. After the server obtains a certain display style of the search box, the technician can mark a word for each display style, and the word can be used to describe the theme or style of the display style. Afterwards, the server can establish the correspondence between the words and the display styles, so that the server can find the corresponding display styles according to the words. It should be noted that, in the above correspondence, one word may correspond to multiple display styles, or one display style may correspond to multiple words. After receiving the current input content in the target search box, the server can obtain the target words contained in the current input content, and specifically can perform word segmentation processing on the current input content, and filter out the target words contained therein that can be used to describe the theme or style. Then, the server may search for the first display style corresponding to the target word in the pre-stored correspondence between the word and the display style. It should be noted that, if there are multiple display styles corresponding to the target word, the server may randomly obtain one display style among the multiple display styles, or may obtain the latest one of the display styles.

可选的,如果词语和显示样式的对应关系中不存在目标词语,则可以创建新的显示样式和目标词语的对应关系,相应的处理可以如下:如果对应关系中不存在当前输入内容中包含的目标词语,则获取目标词语对应的目标图片;根据目标图片和显示样式模板生成第二显示样式,将目标词语和第二显示样式对应存储至上述对应关系;向终端发送第二显示样式。Optionally, if there is no target word in the correspondence between words and display styles, a new correspondence between display styles and target words can be created, and the corresponding processing can be as follows: The target word is obtained, the target picture corresponding to the target word is obtained; the second display style is generated according to the target picture and the display style template, and the target word and the second display style are correspondingly stored in the above-mentioned corresponding relationship; and the second display style is sent to the terminal.

在实施中,服务器在接收到终端发送的目标搜索框内的当前输入内容后,可以获取当前输入内容包含的目标词语,然后服可以在预先存储的词语和显示样式的对应关系中,查找目标词语对应的第一显示样式,如果该对应关系中不存在目标词语的对应项,即代表目前服务器中还未存储有相应的显示样式,进而服务器可以先获取目标词语对应的目标图片,具体的,可以在预设的图库中查找目标词语对应的目标图片,也可以在网络上爬取相应的目标图片。之后,服务器可以获取预先存储的显示样式模板,并基于上述目标图片和显示样式模板生成第二显示样式,如图2所示,然后将目标词语和第二显示样式对应存储至上述对应关系中,这样,当再次接收到包含有目标词语的输入内容后,可以基于对应关系将第二显示样式返回给终端。另外,对于本次发送过来的当前输入内容,服务器可以将生成的第二显示样式发送给终端,或者,考虑到目标搜索框的输入内容的变化频率一般高,而生成第二显示样式的处理需要花费一定时间,故而可以选择不将生成的第二显示样式发送给终端。可以理解,上述第二显示样式可以由技术人员设计生成,即在获取到上述对应关系中不存在的目标词语后,服务器可以先记录该目标词语,技术人员之后可以查看服务器记录的目标词语,然后设计目标词语对应的显示样式,并将设计出的显示样式和目标词语对应添加至上述对应关系中。需要说明的是,可以将服务器首次收到包含目标词语的当前输入内容时,首次生成的显示样式称为第二显示样式,而如果服务器再次接收到包含目标词语的当前输入内容时,该第二显示样式即与步骤101至步骤106中的第一显示样式为同一显示样式。In implementation, after receiving the current input content in the target search box sent by the terminal, the server can obtain the target words contained in the current input content, and then the server can search for the target words in the correspondence between the pre-stored words and the display styles. The corresponding first display style, if there is no corresponding item of the target word in the corresponding relationship, it means that the corresponding display style has not been stored in the server at present, and then the server can first obtain the target picture corresponding to the target word. Specifically, you can Find the target image corresponding to the target word in the preset gallery, or crawl the corresponding target image on the Internet. Afterwards, the server can obtain the pre-stored display style template, and generate a second display style based on the above-mentioned target picture and the display style template, as shown in FIG. 2, and then store the target word and the second display style in the above-mentioned corresponding relationship, In this way, after receiving the input content containing the target word again, the second display style can be returned to the terminal based on the corresponding relationship. In addition, for the current input content sent this time, the server may send the generated second display style to the terminal, or, considering that the input content of the target search box generally changes frequently, the process of generating the second display style requires It takes a certain amount of time, so it is possible to choose not to send the generated second display pattern to the terminal. It can be understood that the above-mentioned second display style can be designed and generated by a technician, that is, after obtaining a target word that does not exist in the above-mentioned corresponding relationship, the server can first record the target word, and then the technician can check the target word recorded by the server, and then The display style corresponding to the target word is designed, and the designed display style and the target word are correspondingly added to the above-mentioned corresponding relationship. It should be noted that the display style generated for the first time when the server receives the current input content containing the target word for the first time can be called the second display style, and if the server receives the current input content containing the target word again, the second display style The display style is the same as the first display style insteps 101 to 106 .

可选的,当输入内容中包含多个目标词语时,服务器可以针对其中一个目标词语进行处理,相应的,步骤104的处理可以如下:获取当前输入内容中包含的多个目标词语中热度最高的第一目标词语,根据预先存储的词语和显示样式的对应关系,确定第一目标词语对应的第一显示样式。Optionally, when the input content contains multiple target words, the server may process one of the target words. Correspondingly, the processing ofstep 104 may be as follows: Obtain the most popular target word among the multiple target words included in the current input content. For the first target word, the first display style corresponding to the first target word is determined according to the pre-stored correspondence between the word and the display style.

在实施中,服务器每次接收到终端发送搜索框的输入内容,并获取其中包含的词语后,可以记录每个词语出现次数(即热度)。这样,服务器在接收到终端发送的目标搜索框内的当前输入内容后,可以获取其中包含的多个目标词语,然后确定每个目标词语的热度,获取其中热度最高的第一目标词语,从而可以在预先存储的词语和显示样式的对应关系中,确定第一目标词语对应的第一显示样式。当然,上述仅为对于输入内容包含多个目标词语的情况一种可行的处理,服务器还可以在获取到多个目标词语后,确定每个目标词语在当前输入内容中所占的比重,具体可以根据字数,以及在输入内容中所属的语句成分来确定,进而可以将比重最高的目标词语确定为第一目标词语。或者,服务器选取的第一显示样式可以是多个目标词语共同对应的显示样式,或者,第一显示样式也可以是对应的目标词语的个数最多的显示样式。In implementation, after each time the server receives the input content of the search box sent by the terminal and obtains the words contained in the search box, the server may record the number of occurrences (ie popularity) of each word. In this way, after receiving the current input content in the target search box sent by the terminal, the server can obtain a plurality of target words contained therein, then determine the popularity of each target word, and obtain the first target word with the highest popularity, so that it can In the pre-stored correspondence between words and display styles, a first display style corresponding to the first target word is determined. Of course, the above is only a feasible processing for the case where the input content contains multiple target words. The server can also determine the proportion of each target word in the current input content after acquiring the multiple target words. It is determined according to the number of words and the sentence components belonging to the input content, and then the target word with the highest weight can be determined as the first target word. Alternatively, the first display style selected by the server may be a display style commonly corresponding to multiple target words, or the first display style may also be a display style with the largest number of corresponding target words.

可选的,为了避免服务器向终端连续发送同一个显示样式,步骤104的处理可以相应如下:如果当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式。Optionally, in order to prevent the server from continuously sending the same display style to the terminal, the processing ofstep 104 may be as follows: if the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored words and the corresponding relationship with the display style, determine the first display style corresponding to the target word contained in the current input content.

在实施中,服务器接收到终端发送目标搜索框内的当前输入内容,并获取到其中包含的目标词语后,可以将本次获得的目标词语和目标搜索框内的上一输入内容包含的目标词语进行对比,如果两次输入内容包含的目标词语不完全相同,服务器则可以根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,而如果两次输入内容包含的目标词语相同,服务器则不进行任何处理。In the implementation, after the server receives the current input content in the target search box sent by the terminal, and obtains the target words contained therein, the server can compare the target words obtained this time with the target words contained in the previous input content in the target search box For comparison, if the target words contained in the two input contents are not exactly the same, the server can determine the first display style corresponding to the target words contained in the current input content according to the correspondence between the pre-stored words and the display styles, and if the two input contents correspond to the first display style. The target words contained in the secondary input content are the same, and the server does not perform any processing.

步骤105,服务器向终端发送第一显示样式。Step 105, the server sends the first display style to the terminal.

在实施中,服务器在获取到第一显示样式后,可以将第一显示样式发送给终端。可以理解的是,服务器可以记录在预设历史时长内已向终端发送过的搜索框的显示样式,预设历史时长可以是1小时,如果服务器已在过去的1小时内向终端发送过第一显示样式,则本次可以取消发送。In an implementation, after acquiring the first display style, the server may send the first display style to the terminal. It can be understood that the server can record the display style of the search box that has been sent to the terminal within the preset historical period, and the preset historical period can be 1 hour. If the server has sent the first display to the terminal within the past 1 hour style, you can cancel the sending this time.

步骤106,终端接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。Step 106: The terminal receives the first display style sent by the server, and adjusts the display style of the target search box to the first display style.

在实施中,终端可以接收服务器发送的第一显示样式,然后可以将目标搜索框的显示样式调整为第一显示样式,同时,终端还可以自动将第一显示样式缓存在本地,在经过预设持续时长后再将第一显示样式删除。图3示例性的说明了本方案的技术效果,目标搜索框内的输入内容为空时,目标搜索框为黑白样式的静态矩形框图,而当用户输入“花”后,目标搜索框的显示样式变为与“花”相关的显示样式。In implementation, the terminal may receive the first display style sent by the server, and then adjust the display style of the target search box to the first display style. At the same time, the terminal may also automatically cache the first display style locally, and after preset The first display style is deleted after the duration is long. Figure 3 exemplarily illustrates the technical effect of this solution. When the input content in the target search box is empty, the target search box is a static rectangular frame in black and white style, and when the user inputs "flower", the display style of the target search box is displayed. Changes to the display style related to "Flower".

可选的,用户可以控制终端对接收到的显示样式进行存储,相应的处理可以如下:当接收到第一显示样式的存储指令时,终端存储第一显示样式。Optionally, the user may control the terminal to store the received display style, and the corresponding processing may be as follows: when receiving the storage instruction of the first display style, the terminal stores the first display style.

在实施中,终端在接收到服务器发送的第一显示样式,并将目标搜索框的显示样式调整为第一显示样式后,用户可以控制终端对第一显示样式进行存储,具体的,用户可以右键单击目标搜索框,唤出功能菜单,点击存储当前显示样式的选项,这时,终端则可以接收到第一显示样式的存储指令,进而可以对第一显示样式进行存储。In implementation, after the terminal receives the first display style sent by the server and adjusts the display style of the target search box to the first display style, the user can control the terminal to store the first display style. Specifically, the user can right-click Click the target search box, call up the function menu, and click the option to store the current display style. At this time, the terminal can receive the storage instruction of the first display style, and then can store the first display style.

可选的,用户可以将第一显示样式设置为目标搜索框默认显示样式,相应的处理可以如下:当目标搜索框内的输入内容为空时,将目标搜索框的显示样式设置为第一显示样式。Optionally, the user can set the first display style as the default display style of the target search box, and the corresponding processing can be as follows: when the input content in the target search box is empty, set the display style of the target search box to the first display style. style.

在实施中,在接收服务器发送的第一显示样式后,终端可以将目标搜索框的默认显示样式设置为第一显示样式,即当目标搜索框内的输入内容为空时,将目标搜索框的显示样式设置为第一显示样式。可以理解,终端在接收服务器发送的第一显示样式后,需要对第一显示样式进行存储,此处的存储处理可以是永久存储,也可以是步骤106中的自动缓存(即短暂存储),终端可以设置有两个显示样式列表,分别存储有永久存储的显示样式,和自动缓存的显示样式,用户可以查看上述两个显示样式列表,从而将目标搜索框的默认显示样式设置为上述两个列表中的任意显示样式。需要说明的是,如果用户控制终端存储第一显示样式,则即使永久存储的显示样式列表中包含多个显示样式,终端也会将目标搜索框的默认显示样式设置为第一显示样式。In implementation, after receiving the first display style sent by the server, the terminal may set the default display style of the target search box to the first display style, that is, when the input content in the target search box is empty, the The display style is set to the first display style. It can be understood that after receiving the first display style sent by the server, the terminal needs to store the first display style. The storage process here may be permanent storage, or may be automatic caching (ie, temporary storage) instep 106. Two display style lists can be set, which store the permanently stored display style and the automatically cached display style respectively. Users can view the above two display style lists, thereby setting the default display style of the target search box to the above two lists. any display style in . It should be noted that if the user controls the terminal to store the first display style, even if the permanently stored display style list contains multiple display styles, the terminal will set the default display style of the target search box as the first display style.

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

基于相同的技术构思,本发明实施例还提供了一种终端,如图4所示,该终端包括:Based on the same technical concept, an embodiment of the present invention also provides a terminal, as shown in FIG. 4 , the terminal includes:

获取模块401,用于当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;anacquisition module 401, configured to acquire the current input content in the target search box when a change in the input content in the target search box is detected;

发送模块402,用于向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;The sendingmodule 402 is configured to send the current input content to the server, where the current input content is used to determine the first display corresponding to the target word contained in the current input content according to the correspondence between the pre-stored words and the display styles style;

接收模块403,用于接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The receivingmodule 403 is configured to receive the first display style sent by the server, and adjust the display style of the target search box to the first display style.

可选的,如图5所示,所述终端还包括:Optionally, as shown in Figure 5, the terminal further includes:

存储模块404,用于当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。Thestorage module 404 is configured to store the first display style when receiving the storage instruction of the first display style.

可选的,如图6所示,所述终端还包括:Optionally, as shown in Figure 6, the terminal further includes:

设置模块405,用于当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。Thesetting module 405 is configured to set the display style of the target search box to the first display style when the input content in the target search box is empty.

可选的,所述获取模块401,用于:Optionally, the obtainingmodule 401 is used for:

当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,

当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,

当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.

基于相同的技术构思,本发明实施例还提供了一种服务器,如图7所示,该服务器包括:Based on the same technical concept, an embodiment of the present invention also provides a server, as shown in FIG. 7 , the server includes:

接收模块701,用于接收终端发送的目标搜索框内的当前输入内容;A receivingmodule 701, configured to receive the current input content in the target search box sent by the terminal;

确定模块702,用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Adetermination module 702, configured to determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style;

第一发送模块703,用于向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Thefirst sending module 703 is configured to send the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

可选的,如图8所示,所述服务器还包括:Optionally, as shown in Figure 8, the server further includes:

获取模块704,用于如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;Obtainingmodule 704, configured to obtain a target picture corresponding to the target word if the target word contained in the current input content does not exist in the corresponding relationship;

生成模块705,用于根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;Agenerating module 705, configured to generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the above-mentioned corresponding relationship;

第二发送模块706,用于向所述终端发送所述第二显示样式。Thesecond sending module 706 is configured to send the second display style to the terminal.

可选的,如图9所示,所述确定模块702,包括:Optionally, as shown in FIG. 9 , the determiningmodule 702 includes:

获取子模块7021,用于获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;Obtaining sub-module 7021, for obtaining the first target word with the highest popularity among the multiple target words included in the current input content;

确定子模块7022,用于根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The determining sub-module 7022 is configured to determine the first display style corresponding to the first target word according to the pre-stored correspondence between the word and the display style.

可选的,所述确定模块702,用于:Optionally, the determiningmodule 702 is configured to:

如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

需要说明的是:上述实施例提供的调整搜索框的显示样式的装置在调整搜索框的显示样式时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的调整搜索框的显示样式的装置与调整搜索框的显示样式的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the apparatus for adjusting the display style of the search box provided in the above embodiment adjusts the display style of the search box, only the division of the above functional modules is used as an example for illustration. The allocation is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for adjusting the display style of the search box provided in the above embodiment and the method embodiment for adjusting the display style of the search box belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

基于相同的技术构思,本公开又一示例性实施例提供了一种调整搜索框的显示样式的系统,系统包括终端和服务器,其中:Based on the same technical concept, another exemplary embodiment of the present disclosure provides a system for adjusting the display style of a search box, the system includes a terminal and a server, wherein:

所述终端,用于当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,向所述服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式;The terminal is configured to acquire the current input content in the target search box when it is detected that the input content in the target search box changes, and send the current input content to the server, where the current input content is used according to the Pre-stored correspondence between words and display styles, determine the first display style corresponding to the target word contained in the current input content, receive the first display style sent by the server, and display the target search box. The style is adjusted to the first display style;

所述服务器,用于接收所述终端发送的所述目标搜索框内的当前输入内容,根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。The server is configured to receive the current input content in the target search box sent by the terminal, and determine the first corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles. display style, sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

本公开再一示例性实施例还示出的一种终端的结构,该终端可以是计算机、手机等。Still another exemplary embodiment of the present disclosure also shows a structure of a terminal, where the terminal may be a computer, a mobile phone, or the like.

参照图9,终端1000可以包括以下一个或多个组件:处理组件1002,存储器1004,电源组件1006,多媒体组件1008,音频组件1010,输入/输出(I/O)的接口1012,传感器组件1014,以及通信组件1016。9, the terminal 1000 may include one or more of the following components: aprocessing component 1002, amemory 1004, apower supply component 1006, amultimedia component 1008, anaudio component 1010, an input/output (I/O)interface 1012, asensor component 1014, And thecommunication component 1016.

处理组件1002通常控制终端1000的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1002可以包括一个或多个处理器1020来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1002可以包括一个或多个模块,便于处理组件1002和其他组件之间的交互。例如,处理部件1002可以包括多媒体模块,以方便多媒体组件1008和处理组件1002之间的交互。Theprocessing component 1002 generally controls the overall operation of the terminal 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. Theprocessing element 1002 may include one ormore processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Additionally,processing component 1002 may include one or more modules that facilitate interaction betweenprocessing component 1002 and other components. For example,processing component 1002 may include a multimedia module to facilitate interaction betweenmultimedia component 1008 andprocessing component 1002.

存储器1004被配置为存储各种类型的数据以支持在终端1000的操作。这些数据的示例包括用于在终端1000上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Thememory 1004 is configured to store various types of data to support operations at theterminal 1000 . Examples of such data include instructions for any application or method operating on the terminal 1000, contact data, phonebook data, messages, pictures, videos, and the like.Memory 1004 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电力组件1006为终端1000的各种组件提供电力。电力组件1006可以包括电源管理系统,一个或多个电源,及其他与为音频输出设备1000生成、管理和分配电力相关联的组件。Power component 1006 provides power to various components of terminal 1000 .Power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power toaudio output device 1000 .

多媒体组件1008包括在所述终端1000和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1008包括一个前置摄像头和/或后置摄像头。当终端1000处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Themultimedia component 1008 includes a screen that provides an output interface between the terminal 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, themultimedia component 1008 includes a front-facing camera and/or a rear-facing camera. When the terminal 1000 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1010被配置为输出和/或输入音频信号。例如,音频组件1010包括一个麦克风(MIC),当音频输出设备1000处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1004或经由通信组件1016发送。Audio component 1010 is configured to output and/or input audio signals. For example,audio component 1010 includes a microphone (MIC) that is configured to receive external audio signals whenaudio output device 1000 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored inmemory 1004 or transmitted viacommunication component 1016 .

I/O接口1012为处理组件1002和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1012 provides an interface between theprocessing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件1014包括一个或多个传感器,用于为终端1000提供各个方面的状态评估。例如,传感器组件1014可以检测到终端1000的打开/关闭状态,组件的相对定位,例如所述组件为终端1000的显示器和小键盘,传感器组件1014还可以检测终端1000或终端1000一个组件的位置改变,用户与终端1000接触的存在或不存在,终端1000方位或加速/减速和终端1000的温度变化。传感器组件1014可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1014还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1014还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for terminal 1000 . For example, thesensor component 1014 can detect the open/closed state of the terminal 1000, the relative positioning of components, such as the display and the keypad of the terminal 1000, thesensor component 1014 can also detect the position change of the terminal 1000 or a component of the terminal 1000 , the presence or absence of the user's contact with the terminal 1000 , the orientation or acceleration/deceleration of the terminal 1000 and the temperature change of theterminal 1000 .Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.Sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件1016被配置为便于终端1000和其他设备之间有线或无线方式的通信。终端1000可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1016经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1016还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1016 is configured to facilitate wired or wireless communications between terminal 1000 and other devices. The terminal 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, thecommunication component 1016 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,终端1000可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, terminal 1000 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1004,上述指令可由终端1000的处理器1020执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as amemory 1004 including instructions, which are executable by theprocessor 1020 of the terminal 1000 to accomplish the above method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行一种调整搜索框的显示样式的方法,该方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, the terminal can execute a method for adjusting the display style of a search box, the method comprising:

当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;When detecting that the input content in the target search box changes, obtain the current input content in the target search box;

向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Sending the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the correspondence between pre-stored words and display styles;

接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style.

可选的,所述方法还包括:Optionally, the method further includes:

当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。When a storage instruction of the first display style is received, the first display style is stored.

可选的,所述方法还包括:Optionally, the method further includes:

当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。When the input content in the target search box is empty, the display style of the target search box is set to the first display style.

可选的,所述当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,包括:Optionally, when detecting that the input content in the target search box changes, acquiring the current input content in the target search box, including:

当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,

当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,

当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

本公开再一示例性实施例还示出的一种服务器的结构,参照图11,服务器1100包括处理组件1122,其进一步包括一个或多个处理器,以及由存储器1132所代表的存储器资源,用于存储可由处理部件1122的执行的指令,例如应用程序。存储器1132中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1122被配置为执行指令,以执行上述调整搜索框的显示样式的方法。Still another exemplary embodiment of the present disclosure also shows the structure of a server. Referring to FIG. 11 , theserver 1100 includes aprocessing component 1122 , which further includes one or more processors, and memory resources represented by thememory 1132 . For storing instructions executable byprocessing element 1122, such as application programs. An application program stored inmemory 1132 may include one or more modules, each corresponding to a set of instructions. Furthermore, theprocessing component 1122 is configured to execute the instructions to perform the above-described method of adjusting the display style of the search box.

服务器1100还可以包括一个电源组件1126被配置为执行服务器1100的电源管理,一个有线或无线网络接口1150被配置为将服务器1100连接到网络,和一个输入输出(I/O)接口1158。服务器1100可以操作基于存储在存储器1132的操作系统,例如WindowsServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Theserver 1100 may also include apower component 1126 configured to perform power management of theserver 1100, a wired orwireless network interface 1150 configured to connect theserver 1100 to a network, and an input output (I/O)interface 1158.Server 1100 may operate based on an operating system stored inmemory 1132, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

服务器1100可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:Theserver 1100 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, including for performing the following Operational instructions:

接收终端发送的目标搜索框内的当前输入内容;Receive the current input content in the target search box sent by the terminal;

根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式;Determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the word and the display style;

向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.

可选的,所述方法还包括:Optionally, the method further includes:

如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;If the target word contained in the current input content does not exist in the corresponding relationship, obtain a target picture corresponding to the target word;

根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;Generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the corresponding relationship;

向所述终端发送所述第二显示样式。The second display style is sent to the terminal.

可选的,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:Optionally, determining the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, including:

获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;obtaining the first target word with the highest popularity among the plurality of target words contained in the current input content;

根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The first display style corresponding to the first target word is determined according to the pre-stored correspondence between the word and the display style.

可选的,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:Optionally, determining the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, including:

如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.

本发明实施例中,当检测到目标搜索框内的输入内容变化时,终端获取目标搜索框内的当前输入内容,向服务器发送当前输入内容,当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定当前输入内容中包含的目标词语对应的第一显示样式,接收服务器发送的第一显示样式,将目标搜索框的显示样式调整为第一显示样式。这样,用户在搜索框内进行输入操作时,终端可以从服务器处获取到与搜索框内当前输入内容相关的搜索框的显示样式,即搜索框的显示样式可以根据不同的输入内容而产生变化,从而可以提高搜索框的显示灵活性。In this embodiment of the present invention, when a change in the input content in the target search box is detected, the terminal acquires the current input content in the target search box, and sends the current input content to the server, where the current input content is used for pre-stored words and display styles based on pre-stored words and display styles. The corresponding relationship is determined, the first display style corresponding to the target word contained in the current input content is determined, the first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style. In this way, when the user performs an input operation in the search box, the terminal can obtain the display style of the search box related to the current input content in the search box from the server, that is, the display style of the search box can be changed according to different input contents. Thereby, the display flexibility of the search box can be improved.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (18)

Translated fromChinese
1.一种调整搜索框的显示样式的方法,其特征在于,所述方法包括:1. A method for adjusting the display style of a search box, wherein the method comprises:周期性检测目标搜索框内的输入内容,当检测到所述目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;Periodically detect the input content in the target search box, and obtain the current input content in the target search box when detecting that the input content in the target search box changes;向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为所述服务器从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;Send the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the correspondence between the pre-stored words and the display style, the first display style The display style is the display style corresponding to the first target word with the highest popularity determined by the server from the plurality of target words obtained from the current input content, or the display style corresponding to the plurality of target words in common, or, each The display style corresponding to the most number of target words;接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises:当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。When a storage instruction of the first display style is received, the first display style is stored.3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, wherein the method further comprises:当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。When the input content in the target search box is empty, the display style of the target search box is set to the first display style.4.根据权利要求1所述的方法,其特征在于,所述当检测到目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容,包括:4. The method according to claim 1, wherein, when detecting that the input content in the target search box changes, acquiring the current input content in the target search box, comprising:当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.5.一种调整搜索框的显示样式的方法,其特征在于,所述方法包括:5. A method for adjusting a display style of a search box, wherein the method comprises:接收终端发送的目标搜索框内的当前输入内容,所述当前输入内容是当所述终端检测到所述目标搜索框内的输入内容变化时获取的输入内容,所述终端用于周期性检测所述目标搜索框内的输入内容;Receiving the current input content in the target search box sent by the terminal, the current input content is the input content obtained when the terminal detects that the input content in the target search box changes, and the terminal is used to periodically detect all the input content. Describe the input content in the target search box;根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;Determine a first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, where the first display style is one of multiple target words acquired from the current input content The determined display style corresponding to the first target word with the highest popularity, or the display style corresponding to the plurality of target words in common, or the display style corresponding to the target word with the largest number;向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, wherein the method further comprises:如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;If the target word contained in the current input content does not exist in the corresponding relationship, obtain a target picture corresponding to the target word;根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;Generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the corresponding relationship;向所述终端发送所述第二显示样式。The second display style is sent to the terminal.7.根据权利要求5所述的方法,其特征在于,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:7. The method according to claim 5, wherein determining the first display style corresponding to the target word contained in the current input content according to the correspondence between pre-stored words and display styles, comprising:获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;obtaining the first target word with the highest popularity among the plurality of target words contained in the current input content;根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The first display style corresponding to the first target word is determined according to the pre-stored correspondence between the word and the display style.8.根据权利要求5所述的方法,其特征在于,所述根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,包括:8. The method according to claim 5, wherein determining the first display style corresponding to the target word contained in the current input content according to the correspondence between pre-stored words and display styles, comprising:如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.9.一种终端,其特征在于,所述终端包括:9. A terminal, wherein the terminal comprises:获取模块,用于周期性检测目标搜索框内的输入内容,当检测到所述目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;an acquisition module, configured to periodically detect the input content in the target search box, and acquire the current input content in the target search box when detecting that the input content in the target search box changes;发送模块,用于向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为所述服务器从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;A sending module, configured to send the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles , the first display style is the display style corresponding to the first target word with the highest popularity determined by the server from the plurality of target words obtained from the current input content, or the display style corresponding to the plurality of target words in common style, or the display style corresponding to the target word with the largest number;接收模块,用于接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。A receiving module, configured to receive the first display style sent by the server, and adjust the display style of the target search box to the first display style.10.根据权利要求9所述的终端,其特征在于,所述终端还包括:10. The terminal according to claim 9, wherein the terminal further comprises:存储模块,用于当接收到所述第一显示样式的存储指令时,存储所述第一显示样式。The storage module is configured to store the first display style when receiving the storage instruction of the first display style.11.根据权利要求9所述的终端,其特征在于,所述终端还包括:11. The terminal according to claim 9, wherein the terminal further comprises:设置模块,用于当所述目标搜索框内的输入内容为空时,将所述目标搜索框的显示样式设置为所述第一显示样式。A setting module, configured to set the display style of the target search box to the first display style when the input content in the target search box is empty.12.根据权利要求9所述的终端,其特征在于,所述获取模块,用于:12. The terminal according to claim 9, wherein the acquisition module is configured to:当检测到目标搜索框内的输入光标移动时,获取所述目标搜索框内的当前输入内容;或者,When the movement of the input cursor in the target search box is detected, obtain the current input content in the target search box; or,当检测到用户输入的搜索确认指令时,获取所述目标搜索框内的当前输入内容;或者,When a search confirmation instruction input by the user is detected, obtain the current input content in the target search box; or,当检测到目标搜索框内的已输入字符数发生变化时,获取所述目标搜索框内的当前输入内容。When it is detected that the number of entered characters in the target search box changes, the current input content in the target search box is acquired.13.一种服务器,其特征在于,所述服务器包括:13. A server, characterized in that the server comprises:接收模块,用于接收终端发送的目标搜索框内的当前输入内容,所述当前输入内容是当所述终端检测到所述目标搜索框内的输入内容变化时获取的输入内容,所述终端用于周期性检测所述目标搜索框内的输入内容;The receiving module is configured to receive the current input content in the target search box sent by the terminal, where the current input content is the input content obtained when the terminal detects that the input content in the target search box changes, and the terminal uses Periodically detect the input content in the target search box;确定模块,用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;A determination module, configured to determine the first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between the words and the display style, where the first display style is obtained from the current input content The display style corresponding to the first target word with the highest popularity determined among the plurality of target words, or the display style corresponding to the plurality of target words in common, or the display style corresponding to the target word with the largest number;第一发送模块,用于向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。A first sending module, configured to send the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.14.根据权利要求13所述的服务器,其特征在于,所述服务器还包括:14. The server according to claim 13, wherein the server further comprises:获取模块,用于如果所述对应关系中不存在所述当前输入内容中包含的目标词语,则获取所述目标词语对应的目标图片;an acquisition module, configured to acquire a target picture corresponding to the target word if the target word contained in the current input content does not exist in the corresponding relationship;生成模块,用于根据所述目标图片和显示样式模板生成第二显示样式,将所述目标词语和所述第二显示样式对应存储至上述对应关系;A generating module, configured to generate a second display style according to the target picture and the display style template, and store the target word and the second display style in the corresponding relationship;第二发送模块,用于向所述终端发送所述第二显示样式。A second sending module, configured to send the second display style to the terminal.15.根据权利要求13所述的服务器,其特征在于,所述确定模块,包括:15. The server according to claim 13, wherein the determining module comprises:获取子模块,用于获取所述当前输入内容中包含的多个目标词语中热度最高的第一目标词语;an acquisition sub-module for acquiring the first target word with the highest popularity among the multiple target words contained in the current input content;确定子模块,用于根据预先存储的词语和显示样式的对应关系,确定所述第一目标词语对应的第一显示样式。The determining submodule is configured to determine the first display style corresponding to the first target word according to the pre-stored correspondence between the word and the display style.16.根据权利要求13所述的服务器,其特征在于,所述确定模块,用于:16. The server according to claim 13, wherein the determining module is configured to:如果所述当前输入内容和目标搜索框内的上一输入内容包含不同的目标词语,则根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式。If the current input content and the previous input content in the target search box contain different target words, then according to the pre-stored correspondence between the words and the display style, determine the first target word corresponding to the target word contained in the current input content Display style.17.一种调整搜索框的显示样式的装置,其特征在于,包括:17. A device for adjusting a display style of a search box, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为:wherein the processor is configured to:周期性检测目标搜索框内的输入内容,当检测到所述目标搜索框内的输入内容变化时,获取所述目标搜索框内的当前输入内容;Periodically detect the input content in the target search box, and obtain the current input content in the target search box when detecting that the input content in the target search box changes;向服务器发送所述当前输入内容,所述当前输入内容用于根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为所述服务器从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;Send the current input content to the server, where the current input content is used to determine the first display style corresponding to the target word contained in the current input content according to the correspondence between the pre-stored words and the display style, the first display style The display style is the display style corresponding to the first target word with the highest popularity determined by the server from the plurality of target words obtained from the current input content, or the display style corresponding to the plurality of target words in common, or, each The display style corresponding to the most number of target words;接收所述服务器发送的所述第一显示样式,将所述目标搜索框的显示样式调整为所述第一显示样式。The first display style sent by the server is received, and the display style of the target search box is adjusted to the first display style.18.一种调整搜索框的显示样式的装置,其特征在于,包括:18. A device for adjusting a display style of a search box, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为:wherein the processor is configured to:接收终端发送的目标搜索框内的当前输入内容,所述当前输入内容是当所述终端检测到所述目标搜索框内的输入内容变化时获取的输入内容,所述终端用于周期性检测所述目标搜索框内的输入内容;Receiving the current input content in the target search box sent by the terminal, the current input content is the input content obtained when the terminal detects that the input content in the target search box changes, and the terminal is used to periodically detect all the input content. Describe the input content in the target search box;根据预先存储的词语和显示样式的对应关系,确定所述当前输入内容中包含的目标词语对应的第一显示样式,所述第一显示样式为从所述当前输入内容获取的多个目标词语中确定的热度最高的第一目标词语对应的显示样式,或者,所述多个目标词语共同对应的显示样式,或者,个数最多的目标词语对应的显示样式;Determine a first display style corresponding to the target word contained in the current input content according to the pre-stored correspondence between words and display styles, where the first display style is one of multiple target words acquired from the current input content The determined display style corresponding to the first target word with the highest popularity, or the display style corresponding to the plurality of target words in common, or the display style corresponding to the target word with the largest number;向所述终端发送所述第一显示样式,所述第一显示样式用于将所述目标搜索框的显示样式调整为所述第一显示样式。Sending the first display style to the terminal, where the first display style is used to adjust the display style of the target search box to the first display style.
CN201710001724.1A2017-01-032017-01-03Method, device and system for adjusting display style of search boxActiveCN106843860B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710001724.1ACN106843860B (en)2017-01-032017-01-03Method, device and system for adjusting display style of search box

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710001724.1ACN106843860B (en)2017-01-032017-01-03Method, device and system for adjusting display style of search box

Publications (2)

Publication NumberPublication Date
CN106843860A CN106843860A (en)2017-06-13
CN106843860Btrue CN106843860B (en)2020-07-21

Family

ID=59116972

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710001724.1AActiveCN106843860B (en)2017-01-032017-01-03Method, device and system for adjusting display style of search box

Country Status (1)

CountryLink
CN (1)CN106843860B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107943554A (en)*2017-12-122018-04-20福建中金在线信息科技有限公司Realize the method and device of YouTube dialog box effects

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104484360A (en)*2014-12-022015-04-01百度在线网络技术(北京)有限公司Acquiring method and device of parameter information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9449079B2 (en)*2013-06-282016-09-20Yandex Europe AgMethod of and system for displaying a plurality of user-selectable refinements to a search query
CN104484088B (en)*2014-12-022017-10-27百度在线网络技术(北京)有限公司Search result shows method and device
CN104484362B (en)*2014-12-022017-11-17百度在线网络技术(北京)有限公司Search result shows method and device
US9881027B2 (en)*2014-12-312018-01-30Ebay Inc.Image appended search string
CN105138697B (en)*2015-09-252018-11-13百度在线网络技术(北京)有限公司A kind of search result shows method, apparatus and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104484360A (en)*2014-12-022015-04-01百度在线网络技术(北京)有限公司Acquiring method and device of parameter information

Also Published As

Publication numberPublication date
CN106843860A (en)2017-06-13

Similar Documents

PublicationPublication DateTitle
CN107153541B (en) Browsing interaction processing method and device
CN105159640B (en)Display interface rotating method and device and mobile terminal
CN106896991B (en) A method and device for updating information
CN109600303B (en) Content sharing method, device and storage medium
CN106528617B (en)A kind of method and device that Web page picture is shown
CN108629178B (en) Method and device for configuring resource access rights of applications
CN107562349B (en)Method and device for executing processing
CN105812515A (en)Protection cover of mobile terminal, and method, device and terminal for setting system themes
CN107483594A (en) Method and device for displaying updated items
CN107402767B (en) Method and apparatus for displaying push messages
CN106775248A (en)Push the methods of exhibiting and device of content
WO2017185567A1 (en)Resource searching method and apparatus
CN106503131A (en)Obtain the method and device of interest information
CN107632835B (en)Application installation method and device
CN107402756B (en)Method, device and terminal for drawing page
CN105095296B (en)File management method and device
CN105912202A (en)Application sharing method and device
CN107179837B (en)Input method and device
CN106843860B (en)Method, device and system for adjusting display style of search box
CN107329744A (en)The functional module of application program starts method and device
CN107247735A (en)Document transmission method and device
CN107948876B (en)Method, device and medium for controlling sound box equipment
CN107506469A (en)Image acquisition method, device and computer-readable recording medium
CN107908667A (en)Method and apparatus that Articles found, owner please contact
CN106354808A (en)Image storage method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp