Nothing Special   »   [go: up one dir, main page]

CN118827758A - Information display method, information display device, electronic equipment and storage medium - Google Patents

Information display method, information display device, electronic equipment and storage medium Download PDF

Info

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
display
prompt information
response data
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311600175.1A
Other languages
Chinese (zh)
Inventor
高茂林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT 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 China Mobile Communications Group Co Ltd, China Mobile IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202311600175.1A priority Critical patent/CN118827758A/en
Publication of CN118827758A publication Critical patent/CN118827758A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information display method, an information display device, an electronic device and a storage medium, wherein the method comprises the following steps: detecting a network request sent by a client to a server; determining a display state of the loading prompt information based on a return state of response data in the processing time of the server to the network request; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data; and displaying the loading prompt information on a front display interface of the client according to the display state. The method and the device can flexibly display the loading prompt information of the network request, and improve the experience of the user.

Description

Information display method, information display device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of the internet, and in particular relates to an information display method, an information display device, electronic equipment and a storage medium.
Background
With the continuous development of internet technology, users use web pages or Application programs (apps) more and more frequently, and when using web pages or clients, users send network requests to a server. When the server side processes the network request, corresponding response time is needed, and the response time is easily influenced by the network environment of the user and the size of the requested data.
In the related art, during the response of the network request, an identifier for indicating the loading of data, for example, a turn identifier, may be displayed on the display interface. After the network request response is over, the identity concealment disappears. When the response time is short, the phenomenon that the mark flashes can occur; when the response time is long, the user cannot actively cancel the display of the identifier, so that the display mode of the identifier in the related art influences the use experience of the user on the application program.
Disclosure of Invention
The disclosure provides an information display method, an information display device, electronic equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an information display method including:
Detecting a network request sent by a client to a server;
Determining a display state of loading prompt information based on a return state of response data in processing time of the network request by the server; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data;
and displaying the loading prompt information on a front display interface of the client according to the display state.
Further, the determining, based on the return state of the response data in the processing duration of the server to the network request, the display state of the loading prompt information includes:
Under the condition that the response data is not acquired in the first processing time, determining the display state as a first state; the first state is used for indicating to display the loading prompt information in the front-end display interface;
And determining state change information of the display state based on the return state of the response data in the second processing time period.
Further, the determining the state change information of the display state based on the return state of the response data in the second processing duration includes:
Determining that the display state is changed from the first state to a second state when the response data is not acquired within a second processing time period; the second state is used for indicating to display the loading prompt information and the deleting prompt information of the loading prompt information in the front-end display interface, and the second processing time period is longer than the first processing time period.
Further, the method further comprises:
under the condition that the response data is acquired in the second processing time period, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
Further, after determining that the display state is changed from the first state to the second state, the method further includes:
after the processing time of the network request is determined to exceed the preset processing time, determining that the display state is a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
Further, after determining that the display state is changed from the first state to the second state, the method further includes:
Responding to the triggering operation of the user on the deleting prompt information, and sending stop request information to the server; the stop request information is used for indicating to stop loading the response data.
Further, the determining, based on the return state of the response data in the processing duration of the server to the network request, the display state of the loading prompt information includes:
Under the condition that the response data is acquired in the first processing time length, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
According to a second aspect of the present disclosure, there is provided an information display apparatus including:
the detection module is used for detecting a network request sent by the client to the server;
The determining module is used for determining the display state of the loading prompt information based on the return state of the response data in the processing time of the network request by the server; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data;
And the display module is used for displaying the loading prompt information on a 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. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the above-described method of the present disclosure.
In the embodiment of the application, a network request sent by a client to a server is detected; determining a display state of the loading prompt information based on a return state of response data in the processing time of the server to the network request; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data; and displaying the loading prompt information on a front display interface of the client according to the display state. Therefore, the embodiment of the application can determine the display state of the loading prompt information according to the return state of the response data in the processing time of the network request by the server when the user makes the network request, and can determine the more matched display state for the loading prompt information by determining the processing mode of the display state according to the return state of the response data in the processing time, thereby more flexibly setting the display state of the loading prompt information on the front display interface, and further optimizing the user experience to the maximum extent.
Drawings
Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments, with reference to the following drawings, wherein:
FIG. 1 is a flow chart of an information display provided by an exemplary embodiment of the present disclosure;
FIG. 2 is a diagram of a loading hint interface provided by an exemplary embodiment of the present disclosure;
FIG. 3 is a diagram of a load hint and a delete hint interface for load hint provided by an exemplary embodiment of the present disclosure;
FIG. 4 is a logic diagram of a load hint information provided by an exemplary embodiment of the present disclosure;
fig. 5 is a schematic block diagram of functional blocks of an information display apparatus provided in an exemplary embodiment of the present disclosure;
FIG. 6 is a block diagram of an electronic device provided in an exemplary embodiment of the present disclosure;
fig. 7 is a block diagram of a computer system according to 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. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window. It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
In the embodiment provided by the disclosure, the display state of the loading prompt information is determined by detecting the network request sent by the client to the server and determining the return state of the response data in the processing time of the network request by the server; the response data is data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data. And finally displaying the loading prompt information on a front display interface of the client according to the display state.
In an embodiment, when detecting a network request sent by a client to a server, determining, by the server, a display state of a loading prompt message according to a return state of response data in a processing time period of the network request, and if the response data is returned within 1 second, determining the display state of the loading prompt message as a hidden state, where the hidden state may be understood as that the loading prompt message is not displayed on a front display interface. This is the case for most networks that are good, or lightweight data requests, where the user does not have a sense of acquiring the data.
In an embodiment, after detecting a network request sent by a client to a server, if no response data is returned within 1 second, determining a display state of the loading prompt information as a display in-process state, where the display state may be understood as displaying the loading prompt information on a front display interface of the client to prompt that user data is being loaded.
In an embodiment, after detecting a network request sent by a client to a server, if response data is returned within 2 seconds, determining a display state of loading prompt information as a hidden state.
In the embodiment, after detecting a network request sent by a client to a server, if no response data is returned within 2 seconds, determining a display state of loading prompt information as a display state, displaying the loading prompt information on a front display interface of the client, and sending stop request information to the server in response to a triggering operation of deleting the prompt information by a user on the front display interface of the client, wherein the stop request information is used for indicating to stop loading the response data. At this time, the user can choose to wait continuously or can choose to close the loading prompt information, and the operation of closing the loading prompt information can terminate the network request.
In an embodiment, after detecting a network request sent by a client to a server, if the network request is overtime, determining a display state of loading prompt information as a hidden state.
Based on the foregoing embodiments, there is further provided in an embodiment of the present disclosure an information display method, as shown in fig. 1, which may include the following steps:
step 101, detecting a network request sent by a client to a server.
In one possible embodiment, a network request sent to a server by a user when using a web page or an App is detected, and a return state of response data in a processing time period of the network request by the server is obtained, where the return state of the response data in the processing time period of the network request by the server is used for determining a display state of loading prompt information.
Step 102, determining a display state of the loading prompt information based on a return state of response data in a processing time period of the server to the network request.
After the return state of the response data within the processing time period is acquired, the display state of the loading prompt information can be determined based on the return state. The response data is data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data.
Here, the loading prompt information may be information such as pictures, characters, videos, etc.; wherein, the pictures comprise static pictures and dynamic pictures. For example, the loading hint information may be: a circle in a rotating state, a circle with a color in a gradual change state, and the like.
In one possible embodiment, based on the return state of the response data in the processing duration of the server to the network request, the display state of the loading prompt information is determined, which specifically includes the following steps:
Under the condition that the response data is not acquired within the first processing time, determining that the display state is a first state, wherein the first state is used for indicating to display loading prompt information in a front-end display interface;
And determining state change information of the display state based on the return state of the response data in the second processing time period.
Illustratively, the processing duration includes a first processing duration and a second processing duration, where the first processing duration may be 1s. If no response data is obtained within 1s, determining that the display state is a first state (namely, a state in display), wherein the first state is used for indicating to display loading prompt information in the front-end display interface.
Here, the first processing duration may also be 1.5 seconds, 2 seconds, etc., which are not specifically limited in this disclosure, and the first processing duration that is smaller than the second processing duration is within the protection scope of the present application.
After determining that the display state is the first state, determining the return state of the response data within the second processing time period, and further determining state change information of the display state according to the return state.
For example, if no response data is obtained within 1s, determining that the display state is the first state; then, it is continued to determine whether the response data is acquired within 2 seconds, resulting in a return state of the response data. At this time, the state change information of the display state can be determined based on 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, to jump from the first state to another state.
In one possible embodiment, the determining the state change information of the display state based on the return state of the response data in the second processing duration includes the steps of:
When the response data is not acquired within the second processing time period, determining that the display state is changed from the first state to the second state; the second state is used for indicating to display loading prompt information and deleting prompt information of the loading prompt information in the front-end display interface, and the second processing time period is longer than the first processing time period.
Here, the second processing time period is longer than the first processing time period. For example, if the first processing duration is 1s, the second processing duration may be 2s.
In the embodiment of the application, if the response data is not acquired 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-end display interface. Then, the return state of the response data needs to be continuously detected, that is, the return state of the response data needs to be continuously detected for the second processing period, so that the state change information of the display state is determined based on the return state.
Here, if the response data is not acquired within the second processing time period, it is determined that the state change information is changed from the first state to the second state, that is, from displaying the loading prompt information in the front-end display interface to displaying the loading prompt information and deleting the loading prompt information in the front-end display interface.
Here, the deletion hint information may be various types of information such as text and graphics, for example, the deletion hint information may be "cross symbol", and for example, the deletion hint information may be the following text information "delete load".
For example, when no response data is acquired within the first processing duration 1s, and no response data is acquired within the second processing duration 2s, it is determined that the display state is changed from the first state to the second state, where 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.
In another possible embodiment, after determining that the display state is changed from the first state to the second state, the method further comprises the steps of:
Responding to the triggering operation of the user on the deleting prompt information, and sending stop request information to the server; the stop request information is used for indicating 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 may be detected, where the trigger operation may be a trigger operation such as a click operation, a drag operation, a slide operation, or the like. After detecting the triggering operation of deleting the prompt information, the client transmits stop request information to the server to request to stop loading of the response data.
In one possible embodiment, the method further comprises the steps of:
and under the condition that the response data is acquired in the second processing time, determining that the display state is a third state, wherein the third state is used for indicating to hide and display the loading prompt information.
In the embodiment of the application, when no response data is acquired within the first processing time period 1s, but when the response data is acquired within the second processing time period 2s, the display state is determined to be a third state, namely the loading prompt information is hidden and displayed in the front-end display interface.
For example, when no response data is acquired within the first processing time period 1s and response data is acquired within the second processing time period 2s, it is determined that the display state is changed from the first state to the third state, that is, that the loading prompt information is changed from displaying in the front-end display interface to displaying in the front-end display interface in a hidden manner.
In another possible embodiment, after determining that the display state is changed from the first state to the second state, the method further comprises the steps of:
and if the processing time of the network request exceeds the preset processing time, determining the display state as a third state.
In the embodiment of the application, if the response data is not acquired within the second processing time period, the loading prompt information displayed in the front-end display interface is changed into the loading prompt information displayed in the front-end display interface and the deleting prompt information of the loading prompt information. And then, continuously detecting the return state of the response data, wherein if the response data is not received within the preset processing time, the processing time of the network request is determined to exceed the preset processing time, and at the moment, the loading prompt information can be hidden and displayed 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 in the processing duration of the network request by the server includes:
Under the condition that the response data is acquired in the first processing time length, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
In the embodiment of the application, if the response data is acquired within 1s, the display state is determined to be the third state, and at this time, the loading prompt information can be hidden and displayed in the front-end display interface.
And step 103, displaying the loading prompt information on a front-end display interface of the client according to the display state.
In one possible embodiment, when the display state is determined to be the first state, loading prompt information is displayed in the front-end display interface, where it is to be noted that the loading prompt information includes one or more of text, pictures, and animations, and is not limited herein, and as shown in fig. 2, an exemplary loading prompt information interface diagram is shown in fig. 2, and the user waits for a response of data according to this page.
In one possible embodiment, when the display state is determined to be the second state, displaying the loading prompt information and the deleting prompt information of the loading prompt information in the front-end display interface, responding to the triggering operation of the user on the deleting prompt information, sending stopping request information to the server by the user, wherein the stopping request information is used for indicating to stop loading response data, and as shown in fig. 3, by way of example, the interface schematic diagram of the deleting prompt information of the loading prompt information and the loading prompt information is shown in fig. 3, at this time, the network response is slower, the user can choose to continue waiting or can choose to close the loading prompt information, and the closing of the loading prompt information can terminate the network request.
In one possible embodiment, when the display state is determined to be the third state, the loading prompt information is hidden at the front display interface of the client, and the user does not perceive to acquire the response data.
Specifically, as shown in fig. 4, fig. 4 exemplarily shows a loading prompt information logic diagram, after a user uses a web page or an App to send a network request to a server, detecting the network request and acquiring a return state of response data in a processing duration of the network request by the server, and when no response data is acquired in a first processing duration, determining that the display state is a first state, where the first state is used to indicate that loading prompt information is displayed in a front display interface, displaying the loading prompt information to the user in the front display interface at this time, and prompting the user to wait; when the response data is acquired within the first processing time, determining that the display state is a third state, wherein the third state is used for indicating to hide and display the loading prompt information, and hiding and loading prompt information from a user in a front-end display interface, and the user does not perceive to acquire the response data; when the response data is not acquired in the first processing time, judging whether the response data can be acquired in the second processing time, and when the response data is not acquired in the second processing time, determining that the display state is changed from the first state to the second state, wherein the second state is used for indicating to display loading prompt information and deleting prompt information of the loading prompt information in a front-end display interface, at the moment, displaying the loading prompt information and deleting prompt information of the loading prompt information to a user in the front-end display interface, responding to the triggering operation of the user on the deleting prompt information, at the moment, the user can select to wait continuously or close the prompt information, when the user selects to close the prompt information, determining that the display state is the third state, at the moment, hiding the loading prompt information to the user in the front-end display interface, and stopping the network request by the client; when the user does not select to close the prompt information, continuing to detect the return state of the response data, if the response data is not acquired within the preset processing time, determining that the processing time of the network request exceeds the preset processing time, determining that the display state is a third state, and hiding and displaying the loading prompt information in the front-end display interface; and when the response data is acquired in the second processing time, determining that the display state is a third state, and hiding the loading prompt information from the user in the front-end display interface.
The information display method, the information display device, the electronic equipment and the storage medium provided by the embodiment of the disclosure detect a network request sent by a client to a server; determining a display state of the loading prompt information based on a return state of response data in the processing time of the server to the network request; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data; and displaying the loading prompt information on a front display interface of the client according to the display state. Therefore, the embodiment of the application can determine the display state of the loading prompt information according to the return state of the response data in the processing time of the network request by the server when the user makes the network request, and then flexibly display the loading prompt information on the front display interface of the client according to the display state, thereby not only enabling the user to have no perception of acquiring data when the network request is faster, but also prompting the user to wait for loading when the network request is not fast, and providing the user with the option of stopping the network request when the request time is too long and the user is in charge of waiting, and improving the experience of the user.
In the case of dividing each functional module with corresponding each function, the embodiments of the present disclosure provide an information display apparatus, which may be a server or a chip applied to the server. Fig. 5 is a schematic block diagram of functional modules of an information display apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the information display device includes:
a detection module 501, configured to detect a network request sent by a client to a server;
A determining module 502, configured to determine a display state of the loading prompt information based on a return state of response data in a processing duration of the network request by the server; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data;
and the display module 503 is configured to display the loading prompt information on a front display interface of the client according to the display state.
In an alternative embodiment, the determining module is further configured to:
Under the condition that the response data is not acquired in the first processing time, determining the display state as a first state; the first state is used for indicating to display the loading prompt information in the front-end display interface;
And determining state change information of the display state based on the return state of the response data in the second processing time period.
In an alternative embodiment, the determining module is further configured to:
Determining that the display state is changed from the first state to a second state when the response data is not acquired within a second processing time period; the second state is used for indicating to display the loading prompt information and the deleting prompt information of the loading prompt information in the front-end display interface, and the second processing time period is longer than the first processing time period.
In an alternative embodiment, the apparatus is further configured to:
under the condition that the response data is acquired in the second processing time period, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
In an alternative embodiment, the apparatus is further configured to:
After determining that the display state is changed from the first state to the second state, determining that the display state is a third state after determining that the processing time of the network request exceeds a preset processing time; the third state is used for indicating to display the loading prompt information in a hidden mode.
In an alternative embodiment, the apparatus is further configured to:
after the display state is determined to be changed from the first state to the second state, responding to the triggering operation of the user on the deletion prompt information, and sending stop request information to the server; the stop request information is used for indicating to stop loading the response data.
In an alternative embodiment, the determining module is further configured to:
Under the condition that the response data is acquired in the first processing time length, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
The embodiment of the disclosure also provides an electronic device, including: at least one processor; a memory for storing the at least one processor-executable instruction; wherein the at least one processor is configured to execute the instructions to implement the above-described methods disclosed by embodiments of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to 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, the processor 601 may perform the respective steps of the above-described methods disclosed in the embodiments of the present disclosure.
The processor 601 may also be referred to as a central processing unit (central processing unit, CPU), which may be an integrated circuit chip with signal processing capabilities. The steps of the above-described methods disclosed in the embodiments of the present disclosure may be accomplished by instructions in the form of integrated logic circuits or software of hardware in the processor 601. The processor 601 may be a general purpose processor, a digital signal processor (DIGITAL SIGNAL processing, DSP), an ASIC, an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may reside in a memory 602 such as random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The processor 601 reads the information in the memory 602 and in combination with its hardware performs the steps of the method described above.
In addition, various operations/processes according to the present disclosure, in the case of being implemented by software and/or firmware, may be installed from a storage medium or network to a computer system having a dedicated hardware structure, such as the computer system 700 shown in fig. 7, which is capable of performing various functions including functions such as those described previously, and the like, when various programs are installed. Fig. 7 is a block diagram of a computer system according to an exemplary embodiment of the present disclosure.
Computer system 700 is intended to represent various forms of digital electronic computing devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the computer system 700 includes a computing unit 701, and the computing unit 701 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 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in computer system 700 are connected to 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 numeric 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, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 708 may include, but is not limited to, magnetic disks, optical disks. 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, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the above-described methods disclosed by embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto 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-described methods disclosed by embodiments of the present disclosure by any other suitable means (e.g., by means of firmware).
The disclosed embodiments also provide a computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the above-described method disclosed by the disclosed embodiments.
A computer readable storage medium in embodiments of the present disclosure may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium described above can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium described above may include one or more wire-based electrical connections, a portable computer diskette, 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 disc 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 contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The disclosed embodiments also provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the above-described methods of the disclosed embodiments.
In an embodiment of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C ++, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computers.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules, components or units referred to in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module, component or unit does not in some cases constitute a limitation of the module, component or unit itself.
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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The above description is merely illustrative of some embodiments of the present disclosure and of the principles of the technology applied. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
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 will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1. An information display method, characterized in that the method comprises:
Detecting a network request sent by a client to a server;
Determining a display state of loading prompt information based on a return state of response data in processing time of the network request by the server; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data;
and displaying the loading prompt information on a front display interface of the client according to the display state.
2. The method of claim 1, wherein determining the display status of the loading hint information based on the return status of response data within a processing time period of the server to the network request comprises:
Under the condition that the response data is not acquired in the first processing time, determining the display state as a first state; the first state is used for indicating to display the loading prompt information in the front-end display interface;
And determining state change information of the display state based on the return state of the response data in the second processing time period.
3. The method of claim 2, wherein 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:
Determining that the display state is changed from the first state to a second state when the response data is not acquired within a second processing time period; the second state is used for indicating to display the loading prompt information and the deleting prompt information of the loading prompt information in the front-end display interface, and the second processing time period is longer than the first processing time period.
4. A method according to claim 3, characterized in that the method further comprises:
under the condition that the response data is acquired in the second processing time period, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
5. A method according to claim 3, wherein after determining that the display state has changed from the first state to the second state, the method further comprises:
after the processing time of the network request is determined to exceed the preset processing time, determining that the display state is a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
6. A method according to claim 3, wherein after determining that the display state has changed from the first state to the second state, the method further comprises:
Responding to the triggering operation of the user on the deleting prompt information, and sending stop request information to the server; the stop request information is used for indicating to stop loading the response data.
7. The method of claim 1, wherein determining the display status of the loading hint information based on the return status of response data within a processing time period of the server to the network request comprises:
Under the condition that the response data is acquired in the first processing time length, determining the display state as a third state; the third state is used for indicating to display the loading prompt information in a hidden mode.
8. An information display device, characterized in that the device comprises:
the detection module is used for detecting a network request sent by the client to the server;
The determining module is used for determining the display state of the loading prompt information based on the return state of the response data in the processing time of the network request by the server; the response data are data requested by the network request, and the loading prompt information is used for indicating the loading state of the response data;
And the display module is used for displaying the loading prompt information on a front-end display interface of the client according to the display state.
9. An electronic device, comprising:
At least one processor;
a memory for storing the at least one processor-executable instruction;
Wherein the at least one processor is configured to execute the instructions to implement the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-7.
CN202311600175.1A 2023-11-27 2023-11-27 Information display method, information display device, electronic equipment and storage medium Pending CN118827758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311600175.1A CN118827758A (en) 2023-11-27 2023-11-27 Information display method, information display device, electronic equipment 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, information display device, electronic equipment 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, information display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118827758A (en)

Similar Documents

Publication Publication Date Title
US10552644B2 (en) Method and apparatus for displaying information content
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
US20220229528A1 (en) Method, apparatus, and system for generating resource value transfer request
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
US10943160B2 (en) Dynamic graphic code implementation method and apparatus
US20200258195A1 (en) Image Processing Method and Device
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN110096329B (en) Display content control method, electronic device and computer readable storage medium
WO2017008415A1 (en) Apparatus and method for launching mobile applications from a lock screen
CN112712498A (en) Vehicle damage assessment method and device executed by mobile terminal, mobile terminal and medium
CN114748873B (en) Interface rendering method, device, equipment and storage medium
CN110795172B (en) Foreground process control method and device, electronic equipment and storage medium
EP2825992B1 (en) Method and apparatus for controlling content capture of prohibited content
US10902101B2 (en) Techniques for displaying secure content for an application through user interface context file switching
CN118827758A (en) Information display method, information display device, electronic equipment and storage medium
US9684355B2 (en) Identifying power state changes
WO2022193142A1 (en) Behavior monitoring method and apparatus, terminal device, and computer readable storage medium
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
JP2019533861A (en) Virtual navigation bar processing method and terminal
CN111190529B (en) Keyboard input method and device and electronic equipment
US20140283132A1 (en) Computing application security and data settings overrides
WO2019153986A1 (en) Application display method, application, storage medium, and electronic device
CN113268300B (en) Information display method and device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination