Event response method and device, computer equipment and storage medium
By generating pseudo-class coverage of the second area on the interactive interface, the first area can respond to events in the second area, solving the problem of limited incident response in the prior art, achieving a wider incident response range and a better user experience.
Patent Information
- Application Number
- CN202311639512.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art incident response methods have the problem of limited event response and cannot effectively transmit and respond to events between multiple regions.
By generating pseudo-classes on the interactive interface, the second region is covered, so that the first region can respond to events in the second region and expand the scope of event response.
The incident response between multiple regions is realized, the problem of limited incident response is solved, and the user experience and operation efficiency is improved.
Smart Images

Figure CN120066636A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of front-end display technology, and particularly to an event response method, apparatus, computer device, and storage medium. Background Art
[0002] Each area in a WEB display interface has its corresponding response event. The input device can only respond to the corresponding event within the range of each area.
[0003] Taking the input device including a mouse as an example, mouse events include a press event mousedown, a movement event mousemove, and a lift event mouseup. When the mouse is over a certain area, that area can respond to the corresponding mouse event. However, if the mouse leaves that area and enters other areas, that area can no longer continue to respond to the corresponding mouse event. Therefore, the current event response method has the problem that the response of events is restricted. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide an event response method, apparatus, computer device, and storage medium that can expand the scope of event response.
[0005] In a first aspect, this application provides an event response method, including:
[0006] In response to a first operation of an input control on a first area of an interactive interface, generating a pseudo-class of the first area;
[0007] In response to a second operation on a second area of the interactive interface, based on the pseudo-class, responding to an event of the first area; the pseudo-class is used to cover the second area.
[0008] In one embodiment, the method further includes:
[0009] In response to a third operation, deleting the pseudo-class of the first area.
[0010] In one embodiment, generating the pseudo-class of the first area includes:
[0011] Obtaining attribute information of the pseudo-class;
[0012] Generating the pseudo-class of the first area according to the attribute information.
[0013] In one embodiment, obtaining the attribute information of the pseudo-class includes:
[0014] In response to an input operation, obtaining the attribute information of the pseudo-class.
[0015] In one embodiment, the attribute information includes at least one of a positioning type, position coordinates, dimension information, and a covering level.
[0016] In one embodiment, the first region includes a heartbeat scatter plot; the first operation and the second operation are used to determine a target scatter point from the heartbeat scatter plot presented in the first region; based on the pseudo-class, an event in response to the first region includes:
[0017] Presenting an electrocardiogram corresponding to the target scatter point in the interaction interface based on the pseudo-class.
[0018] In a second aspect, the present application further provides an event response device, including:
[0019] A generation module, configured to generate a pseudo-class of the first region in response to a first operation of an input control on a first region of an interaction interface;
[0020] A response module, configured to respond to an event in the first region based on the pseudo-class in response to a second operation on a second region of the interaction interface; the pseudo-class is used to cover the second region.
[0021] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the steps of any of the above methods are implemented.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0023] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0024] For the above event response method, device, computer device, and storage medium, in response to a first operation of an input control on a first region of an interaction interface, a pseudo-class of the first region is generated. Since the pseudo-class is used to cover the second region, therefore, in response to a second operation on the second region of the interaction interface, an event in the first region can be responded to based on the pseudo-class. In this way, the event response range of the first region can be expanded by using the pseudo-class, and the problem that the event response of the current event response method is limited is solved. Description of the Drawings
[0025] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0026] Figure 1 It is a schematic diagram of an interaction interface;
[0027] Figure 2 This is an application environment diagram of the event response method in the embodiments of the present application;
[0028] Figure 3 This is a schematic flowchart of the event response method in the embodiments of the present application;
[0029] Figure 4 This is a schematic diagram of a pseudo-class in the embodiments of the present application;
[0030] Figure 5 This is a schematic flowchart of generating a pseudo-class in the embodiments of the present application;
[0031] Figure 6 This is an interaction schematic diagram of an interaction interface in the embodiments of the present application;
[0032] Figure 7 This is a process schematic diagram of an event response method in the embodiments of the present application;
[0033] Figure 8 This is a timing schematic diagram of an event response method in the present application;
[0034] Figure 9 This is a structural block diagram of an event response device in the embodiments of the present application. Detailed implementation manners
[0035] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] Figure 1 This is a schematic diagram of an interaction interface. For example, Figure 1 as shown, taking the input device including a mouse as an example, when the mouse is in area A, area A can respond to the corresponding mouse event; when the mouse is in area B, area B responds to the corresponding mouse event. That is to say, when the mouse is in area A, it cannot respond to the mouse event in area B, and when the mouse is in area B, it cannot respond to the mouse event in area A.
[0037] In some application scenarios, taking the drawing operation as an example, assume that a shape is drawn from area B. If the mouse is pressed in area B and the mouse is moved to area A during the process of moving the mouse, since the mouse has entered area A, the drawing operation in area B cannot be responded to, resulting in a failed drawing and a poor user experience.
[0038] In some existing technologies, the pointer event method can be adopted to bind an event to an element in a specified area through pointer capture, so that the event can be repositioned to area B after the mouse leaves area B. However, there are compatibility issues between pointer events and mouse events in some browsers.
[0039] Therefore, the current event response method has the problem of limited event response. Based on this, it is necessary to provide an event response method that can expand the scope of event response for the above technical problems. The following will introduce this event response method.
[0040] Figure 2 This is an application environment diagram of the event response method in the embodiments of the present application. Figure 2 A computer device is provided. This computer device can be a terminal, and its internal structure diagram can be as Figure 2 shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an event response method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0041] Those skilled in the art can understand that Figure 2 the structure shown in
[0042] This embodiment takes the application of this method to a terminal as an example for illustration. It can be understood that this method can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers.
[0043] Figure 3 It is a schematic flowchart of the event response method in the embodiment of the present application. In an exemplary embodiment, as Figure 3 shown, an event response method is provided. Taking the application of this method to Figure 2 the computer device in as an example for illustration, it includes the following S301 to S302.
[0044] S301, in response to a first operation of an input control on a first area of the interaction interface, generate a pseudo-class of the first area.
[0045] In this embodiment, the computer device can display an interaction interface. Among them, the computer device can display the interaction interface after logging in to a fixed website or account.
[0046] Among them, the input control is used for interaction based on the interaction interface. The input control can be, but is not limited to, a mouse, a keyboard, a touch screen, etc. The first operation can include, but is not limited to, a press operation. Exemplarily, taking the input control as a mouse, the first operation can refer to the operation of the user pressing the mouse. Taking the input control as a touch screen, the first operation can refer to the operation of the user placing a finger on the touch screen. This embodiment is not limited thereto.
[0047] Furthermore, when the user initiates a first operation on the first area of the interaction interface through the input control, the computer device can respond to the first operation, and in the case of responding to the first operation, generate a pseudo-class of the first area. Exemplarily, the computer device can generate a pseudo-class of the first area by using a callback function corresponding to the first operation.
[0048] Among them, the first operation on the first area can also be understood as the first operation on the elements in the first area. The elements can be defined by the "div" tag based on Hyper Text Markup Language (HTML). Generating a pseudo-class of the first area can also be understood as generating a pseudo-class corresponding to the elements in the first area.
[0049] For ease of understanding, a pseudo-class can be understood as a colorless and transparent layer in the interactive interface. That is, within the range covered by the pseudo-class in the first region, the computer device will only respond to events in the first region of the interactive interface.
[0050] Optionally, the computer device can store multiple candidate pseudo-classes and, in response to the first operation, determine a target pseudo-class from the multiple candidate pseudo-classes as the pseudo-class for the first region. The computer device can also store the pseudo-class preset by the user in advance and, in response to the first operation, use the preset pseudo-class as the pseudo-class for the first region. This embodiment does not make any restrictions.
[0051] S302, in response to the second operation on the second region of the interactive interface, based on the pseudo-class, respond to the events in the first region; the pseudo-class is used to cover the second region.
[0052] In this embodiment, the second region includes any region in the interactive interface other than the first region. The second operation on the second region can also be understood as the second operation on the elements in the second region.
[0053] The pseudo-class is used to cover the second region. That is, the pseudo-class can expand the event response range of the first region. Optionally, the pseudo-class can also be used to cover the first region and the second region.
[0054] In this way, even if the second operation is initiated within the second region, the computer device can respond to the second operation and respond to the events in the first region. Among them, the second operation occurs after the first operation, and the second operation can include but is not limited to a move operation. Taking the input control as a mouse as an example, the first operation can refer to the operation of the user pressing and moving the mouse. Taking the input control as a touch screen as an example, the first operation can refer to the operation of the user placing a finger on the touch screen and sliding on the touch screen. This embodiment does not limit it in this way.
[0055] Figure 4 This is a schematic diagram of a pseudo-class in an embodiment of the present application. Taking the first region as region A and the second region as region B as an example, as Figure 4 (a) shows, if no pseudo-class is generated, the event response range of region A in the interactive interface is the range where region A is located, and the event response range of region B is the range where region B is located.
[0056] And the pseudo-class of the first region generated by the computer device can be as Figure 4 (b) the diagonal region. It can be seen that the pseudo-class of region A can cover region B. In this way, even if the second operation is initiated within region B, for example, the mouse moves from region A to region B, the computer device can also respond to the events in region A based on this pseudo-class. It should be noted that Figure 4(b) is an example made to distinguish pseudo-classes, and pseudo-classes can actually be colorless and transparent.
[0057] In the above event response method, in response to a first operation of an input control on a first area of an interactive interface, a pseudo-class of the first area is generated. Since the pseudo-class is used to cover a second area, therefore, in response to a second operation on the second area of the interactive interface, the event of the first area can be responded to based on the pseudo-class. In this way, the event response range of the first area can be expanded by using the pseudo-class, and the problem that the event response of the current event response method is limited is solved.
[0058] In an exemplary embodiment, optionally, the above event response method further includes the following steps:
[0059] In response to a third operation, delete the pseudo-class of the first area.
[0060] In this embodiment, in order to prevent the pseudo-class of the first area from affecting the event response of areas other than the first area subsequently, the computer device will delete the pseudo-class of the first area in response to the third operation.
[0061] Among them, the third operation occurs after the second operation, and the third operation is used to end the second operation. The third operation includes but is not limited to a lift operation. Similarly, the third operation can also be understood as the first operation on an element in interactive encryption.
[0062] Taking the input control as a mouse as an example, the first operation can refer to the operation of the user pressing the mouse and then releasing the mouse. Taking the input control as a touch screen as an example, the first operation can refer to the operation of the user placing a finger on the touch screen and then lifting the finger. This embodiment is not limited thereto. It can be understood that after the first operation, the second operation, and the third operation are executed in chronological order, that is, a complete operation of the input control is completed.
[0063] Optionally, the computer device can delete the pseudo-class of the first area in response to a third operation of the input control on the interactive interface. For example, the computer device can delete the pseudo-class of the first area in response to a third operation of the input control on the first area. The computer device can also delete the pseudo-class of the first area in response to a third operation of the input control on the second area.
[0064] Please combine Figure 4 , exemplarily, if the user presses the mouse in area A, then moves the mouse to area B, and releases the pressed mouse in area B, the computer device can respond to the third operation and delete Figure 4 the pseudo-class shown in (b). Furthermore, after deleting the pseudo-class of area A, the event response ranges of area A and area B are as Figure 4(as shown in (a)). In this way, pressing the mouse in area B subsequently will not affect the response to mouse events in area B.
[0065] Since the above embodiments can respond to the third operation and delete the pseudo-class of the first area, the response logics of events in the first area and the second area can be effectively isolated.
[0066] Figure 5 FIG. is a schematic flowchart of generating a pseudo-class in an embodiment of the present application. In an exemplary embodiment, as Figure 5 shown, "generating the pseudo-class of the first area" in S301 includes S501 to S502.
[0067] S501, obtaining the attribute information of the pseudo-class.
[0068] In this embodiment, before generating the pseudo-class of the first area, the computer device needs to obtain the attribute information of the pseudo-class. Among them, the attribute information of the pseudo-class is used to characterize information such as the size and position of the pseudo-class in the interaction interface.
[0069] Optionally, the computer device can determine the attribute information of the pseudo-class according to the size and position of the first area in the interaction interface. For example, after the computer device determines the size and position of the first area, it can determine the attribute information of the pseudo-class based on the size and position of all areas in the interaction interface except the first area.
[0070] Optionally, the computer device can also use a preset default value as the attribute information of the pseudo-class. For example, the computer device can use the size and position fixedly displayed by the interaction interface as the attribute information of the pseudo-class.
[0071] S502, generating the pseudo-class of the first area according to the attribute information.
[0072] Further, after determining the attribute information of the pseudo-class, the computer device can generate the pseudo-class of the first area according to the attribute information.
[0073] Optionally, after the user initiates a first operation on an element in the first area, the computer device will obtain the attribute information of the pseudo-class, determine the pseudo-class according to the attribute information of the pseudo-class, and then add the pseudo-class to the class attribute of the element to generate the pseudo-class of the first area.
[0074] In some embodiments, after the user initiates a third operation, the computer device can respond to the third operation and delete the pseudo-class of the first area from the corresponding class attribute to delete the pseudo-class of the first area.
[0075] Exemplarily, if the attribute information indicates that the pseudo-class covers the entire interaction interface, the computer device will generate a pseudo-class that covers the entire interaction interface. In this way, for any area in the interaction interface, the computer device can also respond to events in the first area based on the pseudo-class.
[0076] In the above embodiments, since the attribute information of the pseudo-class can be obtained, therefore, by generating the pseudo-class of the first area according to the attribute information, the pseudo-class of the first area can be accurately generated.
[0077] In an exemplary embodiment, the above S501 can also be implemented in the following manner:
[0078] In response to an input operation, obtain the attribute information of the pseudo-class.
[0079] In this embodiment, the input operation can be an operation initiated by the user. That is, the user can input attribute information such as the positioning type, position coordinates, size information, and covering level of the pseudo-class to the computer device according to actual needs, so that the computer device can obtain the attribute information of the pseudo-class.
[0080] In the above embodiments, since the attribute information of the pseudo-class can be obtained in response to the input operation, the flexibility of the attribute information is improved.
[0081] In an exemplary embodiment, the attribute information includes at least one of a positioning type, position coordinates, size information, and a covering level.
[0082] In this embodiment, the positioning type position can include relative positioning relative and fixed positioning fixed. Relative positioning means that the position of the pseudo-class changes relative to its own position. Fixed positioning means that the position of the pseudo-class is fixed in the interaction interface, and even if the interaction interface scrolls, the position of the pseudo-class will not change.
[0083] The position coordinates can include a top offset top and a left offset left. The size information can include a width width and a height height. The covering level z-index is used to indicate the covering priority of the layer where the pseudo-class is located, which can be set according to requirements, and generally can be set to the highest priority, that is, the pseudo-class can cover all elements on the interaction interface.
[0084] Further optionally, the attribute information can also include content content. The content content is used to indicate the content displayed by the pseudo-class in the interaction interface, and it can be set to a null value.
[0085] Taking the pseudo - element as an example, in the attribute information, the positioning type of position is fixed positioning (fixed), the top offset is 0, the left offset is 0, the width is 100%, the height is 100%, the content is an empty value, and the covering level z - index is 10000. In this way, a pseudo - class that covers all areas in the interactive interface can be set.
[0086] Further, when the computer device responds to the first operation on element A in the first area, it determines the pseudo - element pseudo - element and adds the pseudo - element pseudo - element to the class attribute corresponding to element A, and then the pseudo - class of the first area can be generated.
[0087] In this embodiment, since the attribute information includes at least one of the positioning type, position coordinates, size information, and covering level, therefore, according to the attribute information, the pseudo - class of the first area can be generated accurately and efficiently.
[0088] Figure 6 This is an interaction schematic diagram of an interactive interface in an embodiment of the present application. In an exemplary embodiment, as Figure 6 shown, taking the left area as the first area and the right area as the second area as an example, the computer device can display a heart - beat scatter plot in the first area.
[0089] Among them, the heart - beat scatter plot includes at least one heart - beat scatter point, and each heart - beat scatter point is used to indicate the electrocardiogram segment of the target object in one heart - beat. The first operation and the second operation are used to determine the target scatter point from the heart - beat scatter plot displayed in the first area.
[0090] Furthermore, "responding to the event of the first area based on the pseudo - class" in S302 is also to display the electrocardiogram corresponding to the target scatter point in the interactive interface based on the pseudo - class.
[0091] As Figure 6 (a) shown, the user can check the target scatter point in the heart - beat scatter plot displayed in the first area. For example, the user presses the mouse in the first area and moves the mouse to check the target scatter point. Ideally, after the computer device determines the target scatter point, it can display the electrocardiogram corresponding to the target scatter point.
[0092] Please continue to refer to Figure 6 (b). If the mouse moves to the second area outside the first area during the process of checking the target scatter point, in the prior art, the computer device cannot respond to the event of the first area, so the electrocardiogram corresponding to the target scatter point will not be displayed in the interactive interface.
[0093] Please continue to refer to Figure 6(c), in the embodiment of the present application, when the user presses the mouse in the first area, the computer device can obtain the attribute information of the pseudo-class and add the pseudo-class to the class attribute of the element in the first area according to the attribute information of the pseudo-class. Therefore, the pseudo-class of the first area is generated before the second operation. The pseudo-class of the first area can cover the second area. In this way, even when the mouse moves to the second area outside the first area during the process of checking the target scatter points, the computer device can display the electrocardiogram corresponding to the target scatter points based on the interaction interface, improving the user experience and operation efficiency.
[0094] Furthermore, after the second operation, if the user raises and releases the mouse in the interaction interface, the computer device can delete the pseudo-class from the class attribute of the element in the first area. In this way, the pseudo-class of the first area can be deleted through the third operation, without affecting subsequent operations in the second area.
[0095] In this embodiment, since the target scatter points can be determined from the heartbeat scatter plot displayed in the first area according to the second operation, and the electrocardiogram corresponding to the target scatter points is displayed based on the pseudo-class in the interaction interface, the event response method provided in this embodiment can be applied to the medical field to improve the work efficiency of doctors.
[0096] In one embodiment, the first area may include candidate electrocardiograms, and the second operation may be an operation of checking the candidate electrocardiograms on the interaction interface. Furthermore, the computer device can respond to the operation of checking the candidate electrocardiograms on the interaction interface and determine the target electrocardiogram segment in the candidate electrocardiograms based on the pseudo-class response. In this way, during the process of checking the target electrocardiogram segment from the candidate electrocardiograms in the first area, even if the input control moves outside the first area, the computer device can continue to respond to the drawing operation to determine the target electrocardiogram segment in the candidate electrocardiograms.
[0097] To more clearly introduce the event response method in the embodiment of the present application, the following is combined with Figure 7 for description. Figure 7 is a schematic diagram of the process of an event response method in the embodiment of the present application. As Figure 7 shown, the computer device can execute the event response method according to the following process.
[0098] S701, in response to the input operation, obtain the attribute information of the pseudo-class. Among them, the attribute information includes at least one of the positioning type, position coordinates, size information, and coverage level.
[0099] S702, in response to the first operation of the input control on the first area of the interaction interface, generate the pseudo-class of the first area according to the attribute information.
[0100] S703. In response to a second operation on a second area on the interaction interface, based on a pseudo-class, an event in a first area is responded to. The pseudo-class is used to cover the second area. Exemplarily, according to the first operation and the second operation, a target scatter point can be determined from the heartbeat scatter plot displayed in the first area, and an electrocardiogram corresponding to the target scatter point can be displayed on the interaction interface based on the pseudo-class.
[0101] S704. In response to a third operation, the pseudo-class in the first area is deleted.
[0102] S701 to S704 can refer to the above embodiments and will not be elaborated here.
[0103] Figure 8 This is a timing diagram of an event response method in the implementation of this application. As Figure 8 shown, taking the input control as a mouse as an example, when the mouse performs a press operation in area A of the interaction interface, the computer device will generate a pseudo-class for area A. The generated pseudo-class for area A can cover area B. Furthermore, even when the mouse performs a movement operation in area B of the interaction interface, the computer device can still respond to events in area A. Finally, when the mouse performs a lift operation in area A, the computer device will delete the pseudo-class for area A, thereby removing the coverage of area B by the pseudo-class. It should be noted that Figure 8 here, the lift operation in area A is taken as an example for illustration. When the mouse performs a lift operation in any area of the interaction interface such as area B, the computer device can also delete the pseudo-class for area A.
[0104] It can be seen that for the event response method provided in this embodiment, first, by generating a pseudo-class, the event response range of the first area can be expanded, and even if the input control leaves the first area, the events corresponding to the first area can still be responded to. Second, by generating a pseudo-class to cover the second area, the events in the second area will not be triggered when the input control enters the second area, so that the events between the areas in the interaction interface do not affect each other. Third, using the pseudo-class method can support browsers with lower versions, improving compatibility.
[0105] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of the steps or stages in other steps or other steps.
[0106] Based on the same inventive concept, an embodiment of the present application further provides an event response device for implementing the above-mentioned event response method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the event response device provided below can refer to the limitations on the event response method in the above text, and will not be repeated here.
[0107] Figure 9 For the structural block diagram of the event response device in the embodiment of the present application, in an exemplary embodiment, as Figure 9 shown, an event response device 900 is provided, including: a generation module 901 and a response module 902, where:
[0108] The generation module 901 is configured to generate a pseudo-class of the first area in response to a first operation of an input control on a first area of the interaction interface.
[0109] The response module 902 is configured to, in response to a second operation on a second area of the interaction interface, respond to an event of the first area based on the pseudo-class; the pseudo-class is used to cover the second area.
[0110] In the above event response device, in response to a first operation of an input control on a first area of the interaction interface, a pseudo-class of the first area is generated. Since the pseudo-class is used to cover the second area, therefore, in response to a second operation on a second area of the interaction interface, an event of the first area can be responded to based on the pseudo-class. In this way, the event response range of the first area can be expanded by using the pseudo-class, and the problem that the event response of the current event response device is limited is solved.
[0111] Optionally, the event response device 900 further includes:
[0112] A deletion module, configured to delete the pseudo-class of the first area in response to a third operation.
[0113] Optionally, the generation module 901 includes:
[0114] An acquisition unit, configured to acquire attribute information of a pseudo-class.
[0115] A generation unit, configured to generate a pseudo-class of a first region according to the attribute information.
[0116] Optionally, the attribute information includes at least one of a positioning type, position coordinates, size information, and a coverage level.
[0117] Optionally, the acquisition unit is further configured to acquire attribute information of the pseudo-class in response to an input operation.
[0118] Optionally, the first region includes a heartbeat scatter plot; the first operation and the second operation are used to determine a target scatter point from the heartbeat scatter plot displayed in the first region; the response module 902 is further configured to display an electrocardiogram corresponding to the target scatter point in the interaction interface based on the pseudo-class.
[0119] Each module in the above event response device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or stored in a memory in the computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.
[0120] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:
[0121] In response to a first operation of an input control on a first region of an interaction interface, generate a pseudo-class of the first region;
[0122] In response to a second operation on a second region of the interaction interface, based on the pseudo-class, respond to an event of the first region; the pseudo-class is used to cover the second region.
[0123] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0124] In response to a third operation, delete the pseudo-class of the first region.
[0125] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0126] Acquire the attribute information of the pseudo-class; generate the pseudo-class of the first region according to the attribute information.
[0127] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0128] In response to an input operation, acquire the attribute information of the pseudo-class.
[0129] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0130] Based on the pseudo-class, display the electrocardiogram corresponding to the target scatter point in the interaction interface; wherein, the first region includes a heartbeat scatter plot; the first operation and the second operation are used to determine the target scatter point from the heartbeat scatter plot displayed in the first region.
[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0132] In response to a first operation of an input control on a first region of the interaction interface, generate a pseudo-class of the first region;
[0133] In response to a second operation on a second region of the interaction interface, based on the pseudo-class, respond to an event of the first region; the pseudo-class is used to cover the second region.
[0134] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0135] In response to a third operation, delete the pseudo-class of the first region.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0137] Obtain the attribute information of the pseudo-class; generate the pseudo-class of the first region according to the attribute information.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0139] In response to an input operation, obtain the attribute information of the pseudo-class.
[0140] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0141] Based on the pseudo-class, display the electrocardiogram corresponding to the target scatter point in the interaction interface; wherein, the first region includes a heartbeat scatter plot; the first operation and the second operation are used to determine the target scatter point from the heartbeat scatter plot displayed in the first region.
[0142] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0143] In response to a first operation of an input control on a first region of the interaction interface, generate a pseudo-class of the first region;
[0144] In response to a second operation on a second area on the interaction interface, an event of the first area is responded based on the pseudo-class; the pseudo-class is used to cover the second area.
[0145] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0146] In response to a third operation, the pseudo-class of the first area is deleted.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0148] Obtain attribute information of the pseudo-class; generate the pseudo-class of the first area according to the attribute information.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0150] In response to an input operation, obtain the attribute information of the pseudo-class.
[0151] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0152] Display an electrocardiogram corresponding to the target scatter point in the interaction interface based on the pseudo-class; wherein, the first area includes a heartbeat scatter plot; the first operation and the second operation are used to determine a target scatter point from the heartbeat scatter plot displayed in the first area.
[0153] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0154] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0155] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. An event response method, characterized in that, the method includes: responding to a first operation of an input control on a first area of an interaction interface, generating a pseudo-class of the first area; responding to a second operation on a second area of the interaction interface, and based on the pseudo-class, responding to an event of the first area; the pseudo-class is used to cover the second area.
2. The method according to claim 1, characterized in that, the method further includes: responding to a third operation, deleting the pseudo-class of the first area.
3. The method according to claim 1 or 2, characterized in that, generating the pseudo-class of the first area includes: obtaining attribute information of the pseudo-class; generating the pseudo-class of the first area according to the attribute information.
4. The method according to claim 3, characterized in that, obtaining the attribute information of the pseudo-class includes: responding to an input operation, obtaining the attribute information of the pseudo-class.
5. The method according to claim 3, characterized in that, the attribute information includes at least one of a positioning type, position coordinates, size information, and a covering level.
6. The method according to claim 1 or 2, characterized in that, the first area includes a heart rate scatter plot; the first operation and the second operation are used to determine a target scatter point from the heart rate scatter plot displayed in the first area; responding to the event of the first area based on the pseudo-class includes: displaying an electrocardiogram corresponding to the target scatter point in the interaction interface based on the pseudo-class.
7. An event response device, characterized in that, the device includes: a generation module, configured to respond to a first operation of an input control on a first area of an interaction interface, and generate a pseudo-class of the first area; a response module, configured to respond to a second operation on a second area of the interaction interface, and based on the pseudo-class, respond to an event of the first area; the pseudo-class is used to cover the second area.
8. A computer device, including a memory and a processor, the memory stores a computer program, characterized in that, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.