CN118827758A - Information display method, device, electronic device and storage medium - Google Patents
Information display method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN118827758A CN118827758A CN202311600175.1A CN202311600175A CN118827758A CN 118827758 A CN118827758 A CN 118827758A CN 202311600175 A CN202311600175 A CN 202311600175A CN 118827758 A CN118827758 A CN 118827758A
- Authority
- CN
- China
- Prior art keywords
- state
- prompt information
- display
- response data
- processing time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000004044 response Effects 0.000 claims abstract description 124
- 238000012545 processing Methods 0.000 claims abstract description 104
- 238000012217 deletion Methods 0.000 claims description 21
- 230000037430 deletion Effects 0.000 claims description 21
- 230000008859 change Effects 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 13
- 238000004590 computer program Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 238000013475 authorization Methods 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000009987 spinning Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开涉及一种信息显示方法、装置、电子设备及存储介质,其方法包括:检测客户端向服务器发送的网络请求;基于服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,响应数据为网络请求所请求数据,加载提示信息用于指示响应数据的加载状态;按照显示状态在客户端的前端显示界面对加载提示信息进行显示。本公开可以灵活的对网络请求的加载提示信息进行显示,提高用户的体验感。
The present disclosure relates to an information display method, device, electronic device and storage medium, and the method includes: detecting a network request sent by a client to a server; determining the display state of loading prompt information based on the return state of response data within the processing time of the server to the network request; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading state of the response data; and displaying the loading prompt information on the front-end display interface of the client according to the display state. The present disclosure can flexibly display the loading prompt information of the network request, thereby improving the user experience.
Description
技术领域Technical Field
本公开涉及互联网的技术领域,尤其涉及一种信息显示方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of the Internet, and in particular to an information display method, device, electronic device and storage medium.
背景技术Background Art
随着互联网技术的不断发展,用户对网页或者应用程序(Application,App)的使用越来越频繁,用户在使用网页或者客户端时会向服务端发出网络请求。服务端在对该网络请求进行处理时,需要相应的响应时间,且该响应时间容易受到用户网络环境、所请求数据量大小的影响。With the continuous development of Internet technology, users use web pages or applications (Application, App) more and more frequently. When using web pages or clients, users will send network requests to the server. When the server processes the network request, it needs a corresponding response time, and the response time is easily affected by the user's network environment and the amount of data requested.
相关技术中,在网络请求的响应过程中,可以在显示界面上显示用于指示数据加载中的标识,例如,转圈标识。在该网络请求响应结束之后,该标识隐藏消失。当响应时间较短时,会出现该标识闪现的现象;当响应时间较长时,用户无法主动取消显示该标识,因此,相关技术中该标识的显示方式影响了用户对应用程序的使用体验。In the related art, during the response process of a network request, an indicator for indicating that data is loading, such as a spinning indicator, may be displayed on the display interface. After the network request response is completed, the indicator is hidden and disappears. When the response time is short, the indicator may flash; when the response time is long, the user cannot actively cancel the display of the indicator. Therefore, the display method of the indicator in the related art affects the user experience of the application.
发明内容Summary of the invention
本公开提供了一种信息显示方法、装置、电子设备及存储介质。The present disclosure provides an information display method, device, electronic device and storage medium.
根据本公开的第一方面,提供了一种信息显示方法,所述方法包括:According to a first aspect of the present disclosure, there is provided an information display method, the method comprising:
检测客户端向服务器发送的网络请求;Detect network requests sent by the client to the server;
基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,所述响应数据为所述网络请求所请求数据,所述加载提示信息用于指示所述响应数据的加载状态;Determine the display status of the loading prompt information based on the return status of the response data within the processing time of the network request by the server; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data;
按照所述显示状态在所述客户端的前端显示界面对所述加载提示信息进行显示。The loading prompt information is displayed on the front-end display interface of the client according to the display state.
进一步地,所述基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,包括:Further, the determining the display status of the loading prompt information based on the return status of the response data within the processing time of the server to the network request includes:
在第一处理时长内未获取到所述响应数据的情况下,确定所述显示状态为第一状态;其中,所述第一状态用于指示在所述前端显示界面中显示所述加载提示信息;If the response data is not obtained within the first processing time, determining that the display state is a first state; wherein the first state is used to indicate that the loading prompt information is displayed in the front-end display interface;
基于第二处理时长内所述响应数据的返回状态,确定所述显示状态的状态变更信息。Based on the return status of the response data within the second processing time period, the status change information of the display status is determined.
进一步地,所述基于所述第二处理时长内所述响应数据的返回状态,确定所述显示状态的状态变更信息,包括:Further, the determining the state change information of the display state based on the return state of the response data within the second processing time period includes:
在第二处理时长内未获取到所述响应数据的情况下,确定所述显示状态从所述第一状态变更为第二状态;其中,所述第二状态用于指示在所述前端显示界面中显示所述加载提示信息和所述加载提示信息的删除提示信息,所述第二处理时长大于所述第一处理时长。When the response data is not obtained within the second processing time, it is determined that the display state is changed from the first state to the second state; wherein the second state is used to indicate that the loading prompt information and the deletion prompt information of the loading prompt information are displayed in the front-end display interface, and the second processing time is greater than the first processing time.
进一步地,所述方法还包括:Furthermore, the method further comprises:
在所述第二处理时长内获取到所述响应数据的情况下,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。In the case where the response data is obtained within the second processing time, the display state is determined to be a third state; wherein the third state is used to indicate hiding and displaying the loading prompt information.
进一步地,在确定所述显示状态从所述第一状态变更为第二状态之后,所述方法还包括:Further, after determining that the display state is changed from the first state to the second state, the method further includes:
在确定所述网络请求的所述处理时长超过预设处理时长之后,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。After determining that the processing time of the network request exceeds a preset processing time, determining that the display state is a third state; wherein the third state is used to indicate hiding the loading prompt information.
进一步地,确定所述显示状态从所述第一状态变更为第二状态之后,所述方法还包括:Further, after determining that the display state is changed from the first state to the second state, the method further includes:
响应于用户对所述删除提示信息的触发操作,向所述服务器发送停止请求信息;其中,所述停止请求信息用于指示停止加载所述响应数据。In response to the user's triggering operation on the deletion prompt information, a stop request message is sent to the server; wherein the stop request message is used to instruct to stop loading the response data.
进一步地,所述基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,包括:Further, the determining the display status of the loading prompt information based on the return status of the response data within the processing time of the server to the network request includes:
在第一处理时长内获取到所述响应数据的情况下,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。In the case where the response data is obtained within the first processing time, the display state is determined to be a third state; wherein the third state is used to indicate hiding the loading prompt information.
根据本公开的第二方面,提供了一种信息显示装置,所述装置包括:According to a second aspect of the present disclosure, there is provided an information display device, the device comprising:
检测模块,用于检测客户端向服务器发送的网络请求;A detection module, used to detect network requests sent by the client to the server;
确定模块,用于基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,所述响应数据为所述网络请求所请求数据,所述加载提示信息用于指示所述响应数据的加载状态;A determination module, configured to determine a display status of the loading prompt information based on a return status of the response data within a processing time of the network request by the server; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate a loading status of the response data;
显示模块,用于按照所述显示状态在所述客户端的前端显示界面对所述加载提示信息进行显示。A display module is used to display the loading prompt information on the front-end display interface of the client according to the display state.
根据本公开的第三方面,提供了一种电子设备。该电子设备包括:存储器和处理器,所述存储器上存储有计算机程序,所述处理器执行所述程序时实现如以上所述的方法。According to a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.
根据本公开的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现本公开的上述方法。According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above method of the present disclosure is implemented.
本公开实施例提供的信息显示方法、装置、电子设备及存储介质,在本申请实施例中,通过检测客户端向服务器发送的网络请求;基于服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,响应数据为网络请求所请求数据,加载提示信息用于指示响应数据的加载状态;按照显示状态在客户端的前端显示界面对加载提示信息进行显示。由此,本申请实施例可以在用户进行网络请求时根据服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,通过处理时长内响应数据的返回状态确定显示状态的处理方式,可以为加载提示信息确定出更加匹配的显示状态,从而更加灵活的设置加载提示信息在前端显示界面的显示状态,从而最大限度优化了用户的体验。The information display method, device, electronic device and storage medium provided by the embodiments of the present disclosure, in the embodiments of the present application, by detecting the network request sent by the client to the server; based on the return status of the response data within the processing time of the server to the network request, the display status of the loading prompt information is determined; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data; the loading prompt information is displayed on the front-end display interface of the client according to the display status. Therefore, the embodiments of the present application can determine the display status of the loading prompt information according to the return status of the response data within the processing time of the server to the network request when the user makes a network request, and the processing method of determining the display status by the return status of the response data within the processing time can determine a more matching display status for the loading prompt information, thereby more flexibly setting the display status of the loading prompt information on the front-end display interface, thereby maximizing the user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
在下面结合附图对于示例性实施例的描述中,本公开的更多细节、特征和优点被公开,在附图中:Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
图1为本公开一示例性实施例提供的信息显示的流程图;FIG1 is a flow chart of information display provided by an exemplary embodiment of the present disclosure;
图2为本公开一示例性实施例提供的加载提示信息界面示意图;FIG2 is a schematic diagram of a loading prompt information interface provided by an exemplary embodiment of the present disclosure;
图3为本公开一示例性实施例提供的加载提示信息和加载提示信息的删除提示信息界面示意图;FIG3 is a schematic diagram of an interface for loading prompt information and deleting prompt information provided by an exemplary embodiment of the present disclosure;
图4为本公开一示例性实施例提供的加载提示信息逻辑示意图;FIG4 is a logic diagram of loading prompt information provided by an exemplary embodiment of the present disclosure;
图5为本公开一示例性实施例提供的信息显示装置的功能模块示意性框图;FIG5 is a schematic block diagram of functional modules of an information display device provided by an exemplary embodiment of the present disclosure;
图6为本公开一示例性实施例提供的电子设备的结构框图;FIG6 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present disclosure;
图7为本公开一示例性实施例提供的计算机系统的结构框图。FIG. 7 is a structural block diagram of a computer system provided by an exemplary embodiment of the present disclosure.
具体实施方式DETAILED DESCRIPTION
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当依据相关法律法规通过恰当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确地提示用户,其请求执行的操作将需要获取和使用到用户的个人信息。从而,使得用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
作为一种可选的但非限定性的实现方式,响应于接收到用户的主动请求,向用户发送提示信息的方式例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或者“不同意”向电子设备提供个人信息的选择控件。可以理解的是,上述通知和获取用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其它满足相关法律法规的方式也可应用于本公开的实现方式中。As an optional but non-limiting implementation, in response to receiving an active request from the user, the method of sending a prompt message to the user may be, for example, a pop-up window, in which the prompt message may be presented in text. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
本公开提供的实施例中,通过检测客户端向服务器发送的网络请求,并通过服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,响应数据为网络请求所请求数据,加载提示信息用于指示响应数据的加载状态。最后按照显示状态在客户端的前端显示界面对加载提示信息进行显示。In the embodiment provided by the present disclosure, the display status of the loading prompt information is determined by detecting the network request sent by the client to the server and the return status of the response data within the processing time of the network request by the server; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data. Finally, the loading prompt information is displayed on the front-end display interface of the client according to the display status.
实施例中,检测客户端向服务器发送的网络请求时,通过服务器对网络请求的处理时长内响应数据的返回状态确定加载提示信息的显示状态,如果1秒内返回响应数据,则将加载提示信息的显示状态确定为隐藏状态,其中,该隐藏状态可以理解为不在前端显示界面对该加载提示信息进行显示。此种情况适用于大多数网络良好,或轻量级数据请求,用户无感知获取数据。In the embodiment, when the network request sent by the client to the server is detected, the display state of the loading prompt information is determined by the return state of the response data within the processing time of the server to the network request. If the response data is returned within 1 second, the display state of the loading prompt information is determined to be a hidden state, wherein the hidden state can be understood as not displaying the loading prompt information on the front-end display interface. This situation is applicable to most good networks or lightweight data requests, and users do not perceive the acquisition of data.
实施例中,检测到客户端向服务器发送的网络请求后,如果1秒内未返回响应数据,则将加载提示信息的显示状态确定为显示中状态,其中,该显示状态可以理解为在客户端的前端显示界面对加载提示信息进行显示,以提示用户数据正在加载中。In an embodiment, after detecting that a network request is sent by a client to a server, if no response data is returned within 1 second, the display status of the loading prompt information is determined as a displaying status, wherein the display status can be understood as displaying the loading prompt information on the front-end display interface of the client to prompt the user that data is loading.
实施例中,检测到客户端向服务器发送的网络请求后,如果2秒内返回响应数据,则将加载提示信息的显示状态确定为隐藏状态。In the embodiment, after detecting that the client sends a network request to the server, if the response data is returned within 2 seconds, the display state of the loading prompt information is determined to be a hidden state.
实施例中,检测到客户端向服务器发送的网络请求后,如果2秒内未返回响应数据,则将加载提示信息的显示状态确定为显示中状态,在客户端的前端显示界面对加载提示信息进行显示,并在客户端的前端显示界面响应于用户对删除提示信息的触发操作,向服务器发送停止请求信息,停止请求信息用于指示停止加载响应数据。此时用户可以选择继续等待也可以选择关闭加载提示信息,关闭加载提示信息操作可以终止此次网络请求。In the embodiment, after detecting that the network request sent by the client to the server is not returned within 2 seconds, the display state of the loading prompt information is determined to be in the displaying state, and the loading prompt information is displayed on the front-end display interface of the client, and in response to the user's triggering operation of deleting the prompt information, the front-end display interface of the client sends a stop request information to the server, and the stop request information is used to instruct to stop loading the response data. At this time, the user can choose to continue waiting or choose to close the loading prompt information, and the closing of the loading prompt information operation can terminate this network request.
实施例中,检测到客户端向服务器发送的网络请求后,若网络请求超时,则将加载提示信息的显示状态确定为隐藏状态。In the embodiment, after detecting that the network request sent by the client to the server is timed out, the display state of the loading prompt information is determined to be a hidden state.
基于上述实施例,在本公开实施例还提供了一种信息显示方法,如图1所示,该方法可以包括以下步骤:Based on the above embodiment, the present disclosure also provides an information display method, as shown in FIG1 , which may include the following steps:
步骤101,检测客户端向服务器发送的网络请求。Step 101: Detect a network request sent by a client to a server.
在一种可能实施例中,检测用户使用网页或者App时向服务器发出的网络请求,并且获取服务器对网络请求的处理时长内响应数据的返回状态,服务器对网络请求的处理时长内响应数据的返回状态用于确定加载提示信息的显示状态。In a possible embodiment, a network request issued by a user to a server when using a web page or App is detected, and the return status of the response data within the processing time of the server to the network request is obtained. The return status of the response data within the processing time of the server to the network request is used to determine the display status of the loading prompt information.
步骤102,基于服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态。Step 102: Determine the display status of the loading prompt information based on the return status of the response data within the processing time of the server to the network request.
在获取到处理时长内响应数据的返回状态后,可以基于该返回状态,确定加载提示信息的显示状态。其中,响应数据为网络请求所请求数据,加载提示信息用于指示响应数据的加载状态。After obtaining the return status of the response data within the processing time, the display status of the loading prompt information can be determined based on the return status. The response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data.
这里,加载提示信息可以为图片、文字、视频等信息;其中,图片包含静态图片和动态图片。例如,该加载提示信息可以为:处于转动状态的圆圈、颜色处于渐变状态的圆圈等信息。Here, the loading prompt information can be information such as pictures, text, videos, etc., wherein pictures include static pictures and dynamic pictures. For example, the loading prompt information can be information such as: a circle in a rotating state, a circle in a gradient state, etc.
在一种可能实施例中,基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,具体包括如下步骤:In a possible embodiment, determining the display status of the loading prompt information based on the return status of the response data within the processing time of the server to the network request specifically includes the following steps:
在第一处理时长内未获取到响应数据的情况下,确定显示状态为第一状态,第一状态用于指示在前端显示界面中显示加载提示信息;If no response data is obtained within the first processing time, determining that the display state is a first state, where the first state is used to indicate that loading prompt information is displayed in the front-end display interface;
基于第二处理时长内所述响应数据的返回状态,确定所述显示状态的状态变更信息。Based on the return status of the response data within the second processing time period, the status change information of the display status is determined.
示例性地,处理时长包含第一处理时长和第二处理时长,其中,第一处理时长可以为1s。若1s内未获取到响应数据,则确定显示状态为第一状态(即,显示中状态),第一状态用于指示在前端显示界面中显示加载提示信息。Exemplarily, the processing time includes a first processing time and a second processing time, wherein the first processing time may be 1 second. If no response data is obtained within 1 second, the display state is determined to be the first state (i.e., displaying state), and the first state is used to indicate that loading prompt information is displayed in the front-end display interface.
这里,第一处理时长还可以为1.5秒、2秒等时长,本公开不做具体限定,小于第二处理时长的第一处理时长,均在本申请的保护范围内。Here, the first processing time may also be 1.5 seconds, 2 seconds, etc., and the present disclosure does not make any specific limitation thereto. A first processing time that is shorter than the second processing time is within the protection scope of the present application.
在确定出显示状态为第一状态之后,还需要确定第二处理时长内,该响应数据的返回状态,进而根据该返回状态确定显示状态的状态变更信息。After determining that the display state is the first state, it is also necessary to determine the return state of the response data within the second processing time, and then determine the state change information of the display state according to the return state.
举例来说,若1s内未获取到响应数据,则确定显示状态为第一状态;然后,继续确定2秒内是否获取到该响应数据,得到该响应数据的返回状态。此时,就可以根据该2秒内响应数据的返回状态,确定该显示状态的状态变更信息。For example, if the response data is not obtained within 1 second, the display state is determined to be the first state; then, it is further determined whether the response data is obtained within 2 seconds to obtain the return state of the response data. At this time, the state change information of the display state can be determined according to the return state of the response data within 2 seconds.
其中,该状态变更信息用于指示该显示状态的状态变化,例如,从第一状态跳转为其他状态。The state change information is used to indicate a state change of the display state, for example, a jump from a first state to another state.
在一种可能实施例中,基于所述第二处理时长内所述响应数据的返回状态,确定所述显示状态的状态变更信息,包括如下步骤:In a possible embodiment, determining the state change information of the display state based on the return state of the response data within the second processing time period includes the following steps:
在第二处理时长内未获取到响应数据的情况下,确定显示状态从第一状态变更为第二状态;第二状态用于指示在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息,第二处理时长大于第一处理时长。If no response data is obtained within the second processing time, it is determined that the display state is changed from the first state to the second state; the second state is used to indicate that loading prompt information and deletion prompt information of the loading prompt information are displayed in the front-end display interface, and the second processing time is greater than the first processing time.
这里,第二处理时长大于第一处理时长。例如,如果第一处理时长为1s,那么第二处理时长可以为2s。Here, the second processing time is longer than the first processing time. For example, if the first processing time is 1 second, the second processing time may be 2 seconds.
在本申请实施例中,如果第一处理时长内未获取到响应数据的情况下,可以确定显示状态为第一状态,即,在前端显示界面中显示加载提示信息。之后,需要继续检测响应数据的返回状态,即,需要继续检测第二处理时长内,响应数据的返回状态,从而基于该返回状态确定该显示状态的状态变更信息。In the embodiment of the present application, if the response data is not obtained within the first processing time, the display state can be determined to be the first state, that is, the loading prompt information is displayed in the front display interface. After that, it is necessary to continue to detect the return state of the response data, that is, it is necessary to continue to detect the return state of the response data within the second processing time, so as to determine the state change information of the display state based on the return state.
这里,如果第二处理时长内未获取到响应数据,则确定状态变更信息为显示状态从第一状态变更为第二状态,即,从在前端显示界面中显示加载提示信息变更为在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息。Here, if no response data is obtained within the second processing time, the status change information is determined to be the display status changed from the first state to the second state, that is, from displaying the loading prompt information in the front display interface to displaying the loading prompt information and the deletion prompt information of the loading prompt information in the front display interface.
这里,删除提示信息可以为文字、图形等各种类型信息,例如,该删除提示信息可以为“叉符号”,又例如,该删除提示信息可以为以下文字信息“删除加载”。Here, the deletion prompt information may be various types of information such as text, graphics, etc. For example, the deletion prompt information may be a "cross symbol", and for another example, the deletion prompt information may be the following text information "delete loading".
举例来说,在第一处理时长1s内未获取到响应数据,以及在第二处理时长2s内均未获取到响应数据的情况下,确定显示状态从第一状态变更为第二状态,第二状态用于指示在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息。For example, when no response data is obtained within the first processing time of 1s, and when no response data is obtained within the second processing time of 2s, it is determined that the display state is changed from the first state to the second state, and the second state is used to indicate the display of loading prompt information and deletion prompt information of the loading prompt information in the front display interface.
在另一种可能实施例中,在确定显示状态从第一状态变更为第二状态后,该方法还包括如下步骤:In another possible embodiment, after determining that the display state changes from the first state to the second state, the method further includes the following steps:
响应于用户对所述删除提示信息的触发操作,向所述服务器发送停止请求信息;其中,所述停止请求信息用于指示停止加载所述响应数据。In response to the user's triggering operation on the deletion prompt information, a stop request message is sent to the server; wherein the stop request message is used to instruct to stop loading the response data.
这里,在前端显示界面中显示删除提示信息之后,可以检测对该删除提示信息的触发操作,其中,该触发操作可以为点击操作、拖拽操作、滑动操作等触发操作。在检测到对删除提示信息的触发操作之后,客户端向服务器发送停止请求信息,以请求停止加载响应数据。Here, after the deletion prompt information is displayed in the front-end display interface, a trigger operation for the deletion prompt information can be detected, wherein the trigger operation can be a click operation, a drag operation, a sliding operation, etc. After the trigger operation for the deletion prompt information is detected, the client sends a stop request information to the server to request to stop loading the response data.
在一种可能实施例中,该方法还包括如下步骤:In a possible embodiment, the method further includes the following steps:
在第二处理时长内获取到响应数据的情况下,确定显示状态为第三状态,第三状态用于指示隐藏显示加载提示信息。When the response data is obtained within the second processing time, it is determined that the display state is the third state, and the third state is used to indicate hiding the display loading prompt information.
在本申请实施例中,在第一处理时长1s内未获取到响应数据,但在第二处理时长2s内获取到响应数据的情况下,则确定显示状态为第三状态,即在前端显示界面中隐藏显示该加载提示信息。In an embodiment of the present application, if no response data is obtained within the first processing time of 1 second, but response data is obtained within the second processing time of 2 seconds, the display state is determined to be the third state, that is, the loading prompt information is hidden in the front display interface.
举例来说,在第一处理时长1s内未获取到响应数据,在第二处理时长2s内获取到响应数据的情况下,确定显示状态从第一状态变更为第三状态,即,从在前端显示界面中显示加载提示信息变更为在前端显示界面中隐藏显示该加载提示信息。For example, if no response data is obtained within the first processing time of 1s, and response data is obtained within the second processing time of 2s, it is determined that the display state is changed from the first state to the third state, that is, from displaying the loading prompt information in the front display interface to hiding the loading prompt information in the front display interface.
在另一种可能实施例中,在确定显示状态从第一状态变更为第二状态后,该方法还包括如下步骤:In another possible embodiment, after determining that the display state changes from the first state to the second state, the method further includes the following steps:
若网络请求的处理时长超过预设处理时长,则将显示状态确定为第三状态。If the processing time of the network request exceeds the preset processing time, the display state is determined to be the third state.
在本申请实施例中,如果第二处理时长内未获取到响应数据,则从在前端显示界面中显示加载提示信息变更为在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息。之后,继续检测响应数据的返回状态,其中,如果确定预设处理时长内,未接收该响应数据,则确定该网络请求的处理时长超过预设处理时长,此时,可以在前端显示界面中隐藏显示该加载提示信息。In the embodiment of the present application, if the response data is not obtained within the second processing time, the display of the loading prompt information in the front-end display interface is changed to displaying the loading prompt information and the deletion prompt information of the loading prompt information in the front-end display interface. After that, the return status of the response data is continuously detected, wherein, if it is determined that the response data is not received within the preset processing time, it is determined that the processing time of the network request exceeds the preset processing time, at this time, the loading prompt information can be hidden in the front-end display interface.
在另一种可能实施例中,基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,包括:In another possible embodiment, determining the display state of the loading prompt information based on the return state of the response data within the processing time of the server to the network request includes:
在第一处理时长内获取到所述响应数据的情况下,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。In the case where the response data is obtained within the first processing time, the display state is determined to be a third state; wherein the third state is used to indicate hiding the loading prompt information.
在本申请实施例中,若1s内获取到响应数据,则确定显示状态为第三状态,此时,可以在前端显示界面中隐藏显示该加载提示信息。In an embodiment of the present application, if the response data is obtained within 1 second, the display state is determined to be the third state. At this time, the loading prompt information can be hidden and displayed in the front-end display interface.
步骤103,按照显示状态在客户端的前端显示界面对加载提示信息进行显示。Step 103: display the loading prompt information on the front-end display interface of the client according to the display status.
在一种可能实施例中,当确定显示状态为第一状态时,在前端显示界面中显示加载提示信息,需要说明的是,加载提示信息包括文字、图片、动画中的一种或多种,在此不做限定,示例性地,如图2所示,图2示例性地示出了加载提示信息界面示意图,用户根据此页面等待数据的响应。In a possible embodiment, when it is determined that the display state is the first state, loading prompt information is displayed in the front-end display interface. It should be noted that the loading prompt information includes one or more of text, pictures, and animations, which are not limited here. For example, as shown in Figure 2, Figure 2 exemplarily shows a schematic diagram of the loading prompt information interface, and the user waits for a response to the data based on this page.
在一种可能实施例中,当确定显示状态为第二状态时,在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息,响应于用户对删除提示信息的触发操作,用户向服务器发送停止请求信息,停止请求信息用于指示停止加载响应数据,示例性地,如图3所示,图3示例性地示出了加载提示信息和加载提示信息的删除提示信息界面示意图,此时网络响应较慢,用户可以选择继续等待也可以选择关闭加载提示信息,关闭加载提示信息可以终止此次网络请求。In a possible embodiment, when it is determined that the display state is the second state, loading prompt information and deletion prompt information of the loading prompt information are displayed in the front-end display interface. In response to the user's triggering operation of deleting the prompt information, the user sends a stop request information to the server. The stop request information is used to indicate to stop loading the response data. Exemplarily, as shown in Figure 3, Figure 3 exemplarily shows a schematic diagram of the interface of loading prompt information and deletion prompt information of the loading prompt information. At this time, the network response is slow. The user can choose to continue waiting or choose to close the loading prompt information. Closing the loading prompt information can terminate the network request.
在一种可能实施例中,当确定显示状态为第三状态时,在客户端的前端显示界面对加载提示信息进行隐藏,此时用户无感知获取到响应数据。In a possible embodiment, when it is determined that the display state is the third state, the loading prompt information is hidden in the front-end display interface of the client, and the user does not perceive that the response data is obtained.
具体地,如图4所示,图4示例性地示出了加载提示信息逻辑示意图,在用户使用网页或者App时向服务器发出的网络请求后,检测网络请求并且获取服务器对网络请求的处理时长内响应数据的返回状态,当在第一处理时长内未获取到响应数据的情况下,确定显示状态为第一状态,第一状态用于指示在前端显示界面中显示加载提示信息,此时在前端显示界面中向用户显示加载提示信息,提示用户进行等待;当在第一处理时长内获取到响应数据的情况下,确定显示状态为第三状态,第三状态用于指示隐藏显示加载提示信息,此时在前端显示界面中向用户隐藏加载提示信息,此时用户无感知获取到响应数据;当在第一处理时长内未获取到响应数据的情况下,判断在第二处理时长内是否能获取到响应数据,在第二处理时长内未获取到响应数据的情况下,确定显示状态从第一状态变更为第二状态,第二状态用于指示在前端显示界面中显示加载提示信息和加载提示信息的删除提示信息,此时在前端显示界面中向用户显示加载提示信息和加载提示信息的删除提示信息,响应于用户对删除提示信息的触发操作,此时用户可以选择继续等待或者是关闭提示信息,当用户选择关闭提示信息时,确定显示状态为第三状态,此时在前端显示界面中向用户隐藏加载提示信息,客户端停止网络请求;当用户未选择关闭提示信息时,继续检测响应数据的返回状态,如果确定预设处理时长内,未获取到响应数据,则确定该网络请求的处理时长超过预设处理时长,此时,确定显示状态为第三状态,在前端显示界面中隐藏显示加载提示信息;当第二处理时长内获取到响应数据的情况下,确定显示状态为第三状态,此时在前端显示界面中向用户隐藏加载提示信息。Specifically, as shown in Figure 4, Figure 4 exemplarily shows a logical schematic diagram of loading prompt information. After a user sends a network request to a server when using a web page or App, the network request is detected and the return status of the response data within the processing time of the server to the network request is obtained. When the response data is not obtained within the first processing time, the display state is determined to be the first state, and the first state is used to indicate that the loading prompt information is displayed in the front-end display interface. At this time, the loading prompt information is displayed to the user in the front-end display interface to prompt the user to wait; when the response data is obtained within the first processing time, the display state is determined to be the third state, and the third state is used to indicate that the loading prompt information is hidden. At this time, the loading prompt information is hidden from the user in the front-end display interface, and the user has no perception of obtaining the response data; when the response data is not obtained within the first processing time, it is determined whether the response data can be obtained within the second processing time. If the response data is not obtained within the second processing time, the display state is determined from the first state to the third state. A state is changed to a second state, and the second state is used to indicate that loading prompt information and deletion prompt information of loading prompt information are displayed in the front-end display interface. At this time, loading prompt information and deletion prompt information of loading prompt information are displayed to the user in the front-end display interface. In response to the user's triggering operation of deleting the prompt information, the user can choose to continue waiting or close the prompt information. When the user chooses to close the prompt information, the display state is determined to be a third state. At this time, the loading prompt information is hidden from the user in the front-end display interface, and the client stops the network request; when the user does not choose to close the prompt information, the return status of the response data continues to be detected. If it is determined that the response data is not obtained within the preset processing time, it is determined that the processing time of the network request exceeds the preset processing time. At this time, the display state is determined to be the third state, and the loading prompt information is hidden in the front-end display interface; when the response data is obtained within the second processing time, the display state is determined to be the third state. At this time, the loading prompt information is hidden from the user in the front-end display interface.
本公开实施例提供的信息显示方法、装置、电子设备及存储介质,通过检测客户端向服务器发送的网络请求;基于服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,响应数据为网络请求所请求数据,加载提示信息用于指示响应数据的加载状态;按照显示状态在客户端的前端显示界面对加载提示信息进行显示。由此,本申请实施例可以在用户进行网络请求时根据服务器对网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态,然后根据显示状态在客户端的前端显示界面对加载提示信息灵活地进行显示,既能在网络请求较快时让用户无感知获取数据,又能在网络请求不快时提示用户需要等待加载,而且还能在请求时间过长,用户苦于等待时提供给用户终止网络请求的选择,提高了用户的体验感。The information display method, device, electronic device and storage medium provided by the disclosed embodiment detect the network request sent by the client to the server; determine the display status of the loading prompt information based on the return status of the response data within the processing time of the server to the network request; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data; and display the loading prompt information on the front-end display interface of the client according to the display status. Thus, the embodiment of the present application can determine the display status of the loading prompt information according to the return status of the response data within the processing time of the server to the network request when the user makes a network request, and then flexibly display the loading prompt information on the front-end display interface of the client according to the display status, which can not only allow the user to obtain data without perception when the network request is fast, but also prompt the user to wait for loading when the network request is not fast, and can also provide the user with the option of terminating the network request when the request time is too long and the user is suffering from waiting, thereby improving the user's experience.
在采用对应各个功能划分各个功能模块的情况下,本公开实施例提供了一种信息显示装置,该信息显示装置可以为服务器或应用于服务器的芯片。图5为本公开一示例性实施例提供的信息显示装置的功能模块示意性框图。如图5所示,该信息显示装置包括:In the case of dividing each functional module according to each function, an embodiment of the present disclosure provides an information display device, which can be a server or a chip applied to a server. FIG5 is a schematic block diagram of the functional modules of an information display device provided by an exemplary embodiment of the present disclosure. As shown in FIG5, the information display device includes:
检测模块501,用于检测客户端向服务器发送的网络请求;Detection module 501, used to detect the network request sent by the client to the server;
确定模块502,用于基于所述服务器对所述网络请求的处理时长内响应数据的返回状态,确定加载提示信息的显示状态;其中,所述响应数据为所述网络请求所请求数据,所述加载提示信息用于指示所述响应数据的加载状态;The determination module 502 is used to determine the display status of the loading prompt information based on the return status of the response data within the processing time of the network request by the server; wherein the response data is the data requested by the network request, and the loading prompt information is used to indicate the loading status of the response data;
显示模块503,用于按照所述显示状态在所述客户端的前端显示界面对所述加载提示信息进行显示。The display module 503 is used to display the loading prompt information on the front-end display interface of the client according to the display state.
在一个可选的实施方式中,确定模块,还用于:In an optional implementation, the determination module is further configured to:
在第一处理时长内未获取到所述响应数据的情况下,确定所述显示状态为第一状态;其中,所述第一状态用于指示在所述前端显示界面中显示所述加载提示信息;If the response data is not obtained within the first processing time, determining that the display state is a first state; wherein the first state is used to indicate that the loading prompt information is displayed in the front-end display interface;
基于第二处理时长内所述响应数据的返回状态,确定所述显示状态的状态变更信息。Based on the return status of the response data within the second processing time period, the status change information of the display status is determined.
在一个可选的实施方式中,确定模块,还用于:In an optional implementation, the determination module is further configured to:
在第二处理时长内未获取到所述响应数据的情况下,确定所述显示状态从所述第一状态变更为第二状态;其中,所述第二状态用于指示在所述前端显示界面中显示所述加载提示信息和所述加载提示信息的删除提示信息,所述第二处理时长大于所述第一处理时长。When the response data is not obtained within the second processing time, it is determined that the display state is changed from the first state to the second state; wherein the second state is used to indicate that the loading prompt information and the deletion prompt information of the loading prompt information are displayed in the front-end display interface, and the second processing time is greater than the first processing time.
在一个可选的实施方式中,该装置,还用于:In an optional embodiment, the device is further used for:
在所述第二处理时长内获取到所述响应数据的情况下,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。In the case where the response data is obtained within the second processing time, the display state is determined to be a third state; wherein the third state is used to indicate hiding and displaying the loading prompt information.
在一个可选的实施方式中,该装置,还用于:In an optional embodiment, the device is further used for:
在确定所述显示状态从所述第一状态变更为第二状态之后,在确定所述网络请求的所述处理时长超过预设处理时长之后,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。After determining that the display state changes from the first state to the second state, and after determining that the processing time of the network request exceeds the preset processing time, determining that the display state is a third state; wherein the third state is used to indicate hiding the loading prompt information.
在一个可选的实施方式中,该装置,还用于:In an optional embodiment, the device is further used for:
确定所述显示状态从所述第一状态变更为第二状态之后,响应于用户对所述删除提示信息的触发操作,向所述服务器发送停止请求信息;其中,所述停止请求信息用于指示停止加载所述响应数据。After determining that the display state is changed from the first state to the second state, in response to the user's triggering operation on the deletion prompt information, a stop request message is sent to the server; wherein the stop request message is used to instruct to stop loading the response data.
在一个可选的实施方式中,确定模块,还用于:In an optional implementation, the determination module is further configured to:
在第一处理时长内获取到所述响应数据的情况下,确定所述显示状态为第三状态;其中,所述第三状态用于指示隐藏显示所述加载提示信息。In the case where the response data is obtained within the first processing time, the display state is determined to be a third state; wherein the third state is used to indicate hiding the loading prompt information.
本公开实施例还提供一种电子设备,包括:至少一个处理器;用于存储所述至少一个处理器可执行指令的存储器;其中,所述至少一个处理器被配置为执行所述指令,以实现本公开实施例公开的上述方法。An embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory for storing instructions executable by the at least one processor; wherein the at least one processor is configured to execute the instructions to implement the above method disclosed in the embodiment of the present disclosure.
图6为本公开一示例性实施例提供的电子设备的结构示意图。如图6所示,该电子设备600包括至少一个处理器601以及耦接至处理器601的存储器602,该处理器601可以执行本公开实施例公开的上述方法中的相应步骤。Fig. 6 is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. As shown in Fig. 6, the electronic device 600 includes at least one processor 601 and a memory 602 coupled to the processor 601, and the processor 601 can execute the corresponding steps in the above method disclosed in the embodiment of the present disclosure.
上述处理器601还可以称为中央处理单元(central processing unit,CPU),其可以是一种集成电路芯片,具有信号的处理能力。本公开实施例公开的上述方法中的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(digital signal processing,DSP)、ASIC、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储器602中,例如随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质。处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The processor 601 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 601 or by instructions in the form of software. The processor 601 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 602, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 601 reads the information in the memory 602 and completes the steps of the method in combination with its hardware.
另外,根据本公开的各种操作/处理在通过软件和/或固件实现的情况下,可从存储介质或网络向具有专用硬件结构的计算机系统,例如图7所示的计算机系统700安装构成该软件的程序,该计算机系统在安装有各种程序时,能够执行各种功能,包括诸如前文所述的功能等等。图7为本公开一示例性实施例提供的计算机系统的结构框图。In addition, when various operations/processes according to the present disclosure are implemented by software and/or firmware, the programs constituting the software can be installed from a storage medium or a network to a computer system having a dedicated hardware structure, such as the computer system 700 shown in FIG. 7. When various programs are installed, the computer system can perform various functions, including functions such as those described above. FIG. 7 is a block diagram of a computer system provided by an exemplary embodiment of the present disclosure.
计算机系统700旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Computer system 700 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and/or claimed herein.
如图7所示,计算机系统700包括计算单元701,该计算单元701可以根据存储在只读存储器(ROM)702中的计算机程序或者从存储单元708加载到随机存取存储器(RAM)703中的计算机程序,来执行各种适当的动作和处理。在RAM 703中,还可存储计算机系统700操作所需的各种程序和数据。计算单元701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG7 , the computer system 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to the bus 704.
计算机系统700中的多个部件连接至I/O接口705,包括:输入单元706、输出单元707、存储单元708以及通信单元709。输入单元706可以是能向计算机系统700输入信息的任何类型的设备,输入单元706可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入。输出单元707可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元708可以包括但不限于磁盘、光盘。通信单元709允许计算机系统700通过网络诸如因特网的与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。A plurality of components in the computer system 700 are connected to the I/O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the computer system 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and/or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 708 may include, but is not limited to, a disk, an optical disk. The communication unit 709 allows the computer system 700 to exchange information/data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and/or the like.
计算单元701可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元701的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元701执行上文所描述的各个方法和处理。例如,在一些实施例中,本公开实施例公开的上述方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元708。在一些实施例中,计算机程序的部分或者全部可以经由ROM 702和/或通信单元709而被载入和/或安装到电子设备600上。在一些实施例中,计算单元701可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行本公开实施例公开的上述方法。The computing unit 701 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 600 via the ROM 702 and/or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the above methods disclosed in the embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).
本公开实施例还提供一种计算机可读存储介质,其中,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行本公开实施例公开的上述方法。The embodiment of the present disclosure further provides a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.
本公开实施例中的计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。上述计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。更具体的,上述计算机可读存储介质可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
本公开实施例还提供一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现本公开实施例公开的上述方法。The embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor, the above method disclosed in the embodiments of the present disclosure is implemented.
在本公开的实施例中,可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络(包括局域网(LAN)或广域网(WAN))连接到用户计算机,或者,可以连接到外部计算机。In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的模块、部件或单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块、部件或单元的名称在某种情况下并不构成对该模块、部件或单元本身的限定。The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示例性的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
以上描述仅为本公开的一些实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).
虽然已经通过示例对本公开的一些特定实施例进行了详细说明,但是本领域的技术人员应该理解,以上示例仅是为了进行说明,而不是为了限制本公开的范围。本领域的技术人员应该理解,可在不脱离本公开的范围和精神的情况下,对以上实施例进行修改。本公开的范围由所附权利要求来限定。Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311600175.1A CN118827758A (en) | 2023-11-27 | 2023-11-27 | Information display method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311600175.1A CN118827758A (en) | 2023-11-27 | 2023-11-27 | Information display method, device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118827758A true CN118827758A (en) | 2024-10-22 |
Family
ID=93073734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311600175.1A Pending CN118827758A (en) | 2023-11-27 | 2023-11-27 | Information display method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118827758A (en) |
-
2023
- 2023-11-27 CN CN202311600175.1A patent/CN118827758A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885452B (en) | Performance monitoring method and device and terminal equipment | |
US9325717B1 (en) | Web-store restriction of external libraries | |
WO2019019702A1 (en) | Algorithm generation method and device, terminal device and storage medium | |
CN110908837B (en) | Application program exception handling method and device, electronic equipment and storage medium | |
CN112463799A (en) | Data extraction method, device, equipment and storage medium | |
US11438403B2 (en) | Page presentation method and system, computer system, and computer readable medium | |
CN109522492B (en) | A web page content display control method, device, equipment and storage medium | |
CN114647411B (en) | Programming interface loading method, device, electronic device and storage medium | |
CN118827758A (en) | Information display method, device, electronic device and storage medium | |
CN113641929B (en) | Page rendering method, device, electronic equipment and computer readable storage medium | |
CN107016296B (en) | Data index construction method, data index reading method, data index construction device, data reading device and electronic equipment | |
US20150039550A1 (en) | Construction abortion of dfa based on expression | |
CN114465763A (en) | A resource access control method, device and storage medium | |
CN111562958A (en) | Page data display management method and device | |
US12124826B2 (en) | Instrumentation-based detection of accidental algorithmic complexity of a procedure | |
CN116842156B (en) | Data generation method, device, equipment and medium | |
CN113934453B (en) | Risk detection method, risk detection device and storage medium | |
CN110780983A (en) | Task exception processing method, device, computer equipment, and storage medium | |
CN110262856A (en) | A kind of application data acquisition method, device, terminal and storage medium | |
CN113239296B (en) | Method, device, equipment and medium for displaying small program | |
US20250005141A1 (en) | Utilization of the least code principle to structure workflows | |
CN116225576B (en) | Application program data environment switching method and device, electronic equipment and medium | |
CN113377378B (en) | Processing method, device, equipment and storage medium for small program | |
US20250005393A1 (en) | Ensuring compliance of data for use in a data pipeline with limitations on data collection | |
CN113569182B (en) | Data processing method, device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |