Information display method and device, medium and product
By traversing the page code content and using attribute elements to create a collection of problems, the problem of quick positioning and prompt information configuration of online page response errors is solved, which improves efficiency and accuracy and reduces user impact.
Patent Information
- Application Number
- CN202510368942.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-25
AI Technical Summary
In online page applications, page response errors due to user operation problems or code defects, which has a large impact range, and it is difficult for the prior art to quickly and efficiently locate and configure the prompt information.
By traversing the page code content, using attribute elements to create a problem collection, judging the wrong attribute elements, and providing corresponding prompt information to avoid repeated configuration prompt information and improve problem configuration efficiency.
It realizes fast and accurate page response problem positioning and prompt information display, reducing the workload of prompt information configuration, and reducing the user's impact range and time.
Smart Images

Figure CN120371436A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and particularly to an information display method, device, medium and product. Background Art
[0002] With the development of computer technology, more and more work contents need to be assisted by computers. To meet the computer usage needs of users, back-end developers and operators need to continuously optimize and improve related functions.
[0003] However, in actual development and operation and maintenance, some unexpected problems will inevitably occur, resulting in users being unable to use normally. Especially in the case where an online problem involves multiple different users, if one user cannot operate normally, it will have a direct impact on other subsequent users, and the impact range is too large. Therefore, in order to eliminate the impact in a timely manner, if the problem is relatively simple, it can be upgraded in the background by developers and operators. If the problem is relatively complex, it is necessary to guide the user to eliminate the problem or bypass the problem and perform a downgrade process on the problem. Summary of the Invention
[0004] The present disclosure provides an information display method, device, medium and product.
[0005] According to a first aspect of the present disclosure, an information display method is provided. The method specifically includes: in response to a trigger operation on any control on the page, traversing the page code content corresponding to the page; the page code content contains attribute elements of all controls on the page; based on a problem set, determining whether there is an error attribute element that causes a page response problem in the page code content; if there is an error attribute element, finding a prompt message corresponding to the error attribute element from the problem set; and displaying the prompt message on the page.
[0006] Based on the above content, it can be seen that when triggering any control on the page, all the page code content in the page will be traversed. The page code content contains attribute elements of all controls on the current page. Some of these attribute elements are error attribute elements that cause page response problems. When displaying a prompt message for a page response problem, the prompt message is not for the control with a problem, but for the corresponding problem of the attribute element of the control. It is not necessary to write problem-related prompt messages for each control in the code. Only by establishing a problem set and then traversing the existing problem attribute elements from the problem set can the display of the prompt message be realized.
[0007] In addition, since there are many controls on the page, and at least some of the property elements are often the same among multiple controls. The method of establishing a problem set using property elements in this solution does not require separately configuring the same prompt information for multiple controls with the same property elements, avoiding duplicate configuration work, effectively improving the problem configuration efficiency, and reducing the workload of prompt information configuration.
[0008] In at least one embodiment of the present disclosure, in response to a trigger operation on any control on the page, traverse the page code content corresponding to the page, including: in response to a trigger operation on any control on the page, determine the page code content of the user's operation on the page; wherein, the page includes a plurality of different controls, and at least some of the property elements are configured the same in the page code content of the plurality of different controls; traverse the property elements of the plurality of different controls in the page code content.
[0009] In at least one embodiment of the present disclosure, to determine whether there is an error property element in the page code content that causes a page response problem, including: determining the control identifiers of all controls included in the page code content; sequentially traversing the property elements corresponding to all control identifiers; determining whether the property element is configured as an error property element in the problem set.
[0010] In at least one embodiment of the present disclosure, to determine whether there is an error property element in the page code content that causes a page response problem, including: determining the control identifiers of all controls included in the page code content; sequentially traversing the property elements corresponding to all control identifiers; determining whether there is a combination of multiple property elements of the same control in the page code content that is the same as the combination of preset problem property elements in the problem set; or determining whether there is a combination of multiple property elements of multiple associated controls in the page code content that is the same as the combination of preset problem property elements in the problem set.
[0011] In at least one embodiment of the present disclosure, before traversing the page code content corresponding to the page, it further includes: receiving the page response problem feedback by the user; when the page response problem occurs, determining the property element whose state has changed as the error property element; obtaining the prompt information for guiding the user to take a degradation measure for the page response problem; establishing a problem set including the corresponding relationship between the error property element and the prompt information.
[0012] In at least one embodiment of the present disclosure, after determining whether there is an error property element in the page code content that causes a page response problem, it further includes: if there is no error property element and the page has a page response problem; then sending the triggered control and the property element whose state has changed to the client device so that the client device can generate prompt information according to the property element whose state has changed.
[0013] According to at least one embodiment of the present disclosure, the prompt information includes: prompt information for the user to manually solve the problem, or prompt information for the user to bypass the problem.
[0014] According to a second aspect of the present disclosure, there is provided an electronic device, including: a memory that stores execution instructions; and a processor that executes the execution instructions stored in the memory, such that the processor executes the method described in the first aspect of any one of the embodiments of the present disclosure.
[0015] According to a third aspect of the present disclosure, there is provided a readable storage medium in which execution instructions are stored, and when the execution instructions are executed by a processor, they are used to implement the method described in the first aspect of any one of the embodiments of the present disclosure.
[0016] According to a fourth aspect of the present disclosure, there is provided a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method described in the first aspect of any one of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings illustrate exemplary embodiments of the present disclosure and, together with the description thereof, are used to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are included in this specification and form a part of this specification.
[0018] Figure 1 It is a schematic flowchart of a method for information display provided for the present disclosure.
[0019] Figure 2 It is a schematic diagram of a page display illustrated for the present disclosure.
[0020] Figure 3 It is a schematic diagram of the content of a page code provided for the present disclosure.
[0021] Figure 4 It is a schematic flowchart of an information display process illustrated for the present disclosure.
[0022] Figure 5 It is a schematic block diagram of the structure of an information display device according to an embodiment of the present disclosure.
[0023] Figure 6 It is a schematic block diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] The present disclosure will be further described in detail below with reference to the accompanying drawings and examples. It can be understood that the specific examples described herein are only for explaining the relevant content and do not limit the present disclosure. Additionally, it should be noted that for ease of description, only parts related to the present disclosure are shown in the drawings.
[0025] It should be noted that, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other. The technical solutions of the present disclosure will be described in detail below with reference to the drawings and in combination with the embodiments.
[0026] In the online page application scenario, due to user operation problems or defects in code writing, etc., page response errors may occur when users operate. In this case, some may cause other users associated with this problem to also have page response problems, with a relatively large scope of influence. If the page response problem is relatively easy to solve in a timely manner, the system can be upgraded by the back-end staff. If the page response problem is relatively complex and the back-end staff cannot solve it simply and quickly, it is necessary to perform problem degradation as soon as possible to reduce the scope of influence and the impact time of the page response problem. Therefore, there is an urgent need for a solution that can simply and efficiently display relevant degradation measures for page response problems.
[0027] For ease of description and to make the technical solutions of the specific embodiments of the present disclosure easier to understand, before describing the information display method implemented in the present disclosure, the technical terms involved in the specific embodiments of the present disclosure are explained as follows.
[0028] Attribute element: The display content in the currently displayed page and the display status of each display content are all implemented through the page code content. In other words, the page code content refers to the relevant code for controlling the current display page status. For example, the code related to the function, color, and status of the controls on the page can all be referred to as the attribute elements of the controls. The attribute elements that cause page response anomalies are called error attribute elements.
[0029] Figure 1 It is a flowchart of an information display method provided by the present disclosure. As Figure 1 shown, the method includes steps 101 to 104. Among them, this method can be executed by an electronic device such as a server (local server or cloud server).
[0030] Specifically, Figure 1 the method shown includes: Step 101: In response to a trigger operation on any control on the page, traverse the page code content corresponding to the page; the page code content contains the attribute elements of all controls on the page.
[0031] In practical applications, a page contains multiple controls. During the operation process, the user will select one of the controls as the trigger control according to their actual needs. When the user triggers it, a corresponding response result will be obtained. For example, if the control triggered by the user is the control for adding new members, and the response is normal, a dialog box for showing the addition of new members will be displayed. However, if there is a problem with the page response, it may jump to another page or open other irrelevant dialog boxes.
[0032] Each page has its own page code, which is used to control the functions related to page display and the functions related to operations. In the page, there are controls for implementing various different functions. The attribute elements of each control are within the page code content.
[0033] It should be noted that although the functions of different controls are different in the same page. However, these controls may have the same attribute elements. For example, each control is set with a color control for indicating the selection state of the control, that is, when the control is selected, the background of the control becomes green, and when the control is not selected, the background of the control is white. The control color mentioned here is the same attribute element that multiple controls possess simultaneously.
[0034] Such as Figure 2 is the schematic diagram of page display illustrated in this disclosure. As Figure 2 can be seen, there are many controls in the page, and the implementation of the function of each control requires the support of the page code. That is, each control has its own attribute elements in the page code. If there is an error in the attribute elements, it will cause an error in the page response function related to that control.
[0035] Step 102: Based on the problem set, determine whether there are error attribute elements in the page code content that cause page response problems.
[0036] The problem set mentioned here can be understood as a set of problems collected in advance for the possible problems of this page. This problem set is generated for the attribute elements, rather than for the controls. In this way, the obtained problem set is more accurate because some controls may have multiple attribute elements, and not every attribute element of the control has problems. If a problem set is established for the controls, it will lead to inaccurate problem positioning, and correspondingly, it may not be possible to give accurate prompt information. Therefore, the solution of this disclosure uses the problem set to determine whether there are error attribute elements in the page code content, and the problem positioning is more accurate.
[0037] It should be noted that the error attribute element is also an attribute element of the control. Since under certain conditions, this attribute element causes the page response to be incorrect, it is thus called the error attribute element. Moreover, the error caused by this error attribute element cannot be simply and quickly resolved. Or rather, if it is resolved immediately, it will affect the normal use of the user. If it is not resolved, there are other ways to guide the user to solve it by themselves or bypass the problem.
[0038] Step 103: If an error attribute element appears, find the corresponding prompt information for the error attribute element from the problem set.
[0039] After judgment, if the error attribute element is included in the page code content, that is, the error attribute element is found from the problem set, it is considered that the page may have a problem of abnormal response.
[0040] It should be noted that the abnormal response mentioned here can be understood as the abnormal response of the page display, the abnormal response of the established function of the control, or no response at all after the user triggers the control.
[0041] In this problem set, not only the error attribute elements are stored, but also the corresponding prompt information for the error attribute elements is stored. The user can temporarily solve the problem of abnormal response according to the content prompted by the prompt information, or bypass the problem by manual operation.
[0042] For example, after clicking on the control and there is no response, a prompt message "Change the browser" pops up. At least because the response content of the control is not compatible with the current browser, it is necessary to change to an earlier version of the browser to continue using.
[0043] Step 104: Display the prompt information on the page.
[0044] In practical applications, when displaying the prompt information, the prompt information can be displayed on the control or at other positions on the page. In order to better attract the user's attention, when displaying the prompt information, it can be prompted with a more prominent effect. For example, the prompt information is displayed in a highlighted font style.
[0045] In the above manner, when any control on the page is triggered, all the page code content in the page will be traversed. The page code content contains the property elements of all the controls on the current page. Some of these property elements are error property elements that can cause page response problems. When presenting a prompt message for a page response problem, the prompt message is not presented for the control with the problem, but for the property element of the control corresponding to the problem. There is no need to write prompt messages related to problems for each control in the code. Only by establishing a problem set and then traversing to the property elements with problems from the problem set can the presentation of the prompt message be achieved.
[0046] In addition, since there are many controls on the page and at least some of the property elements are often the same among multiple controls. The solution of establishing a problem set using property elements does not require separately configuring the same prompt message for multiple controls with the same property elements, avoiding duplicate configuration work, effectively improving the problem configuration efficiency, and reducing the workload of prompt message configuration.
[0047] In one or more embodiments of the present disclosure, in response to a trigger operation on any control on the page, traversing the page code content corresponding to the page includes: in response to a trigger operation on any control on the page, determining the page code content of the page where the user operates; wherein, the page includes a plurality of different controls, and at least some of the property elements of the plurality of different controls are configured in the page code content; traversing the property elements of the plurality of different controls in the page code content.
[0048] In practical applications, when a user operates online, they often jump or switch between multiple different pages. Therefore, when a user triggers a control, it is necessary to first determine the page where the user is currently operating and the page code content of that page.
[0049] Specifically, it is necessary to bind corresponding event listeners on the page (it can also be to bind corresponding event listeners to some controls on the page that are prone to response problems). These events can be control operation types such as click, hover, input, etc., depending on the type of the control and the required functions. When the control is triggered, an event handler function will be called. This function is responsible for handling the trigger event. In an optional solution, inside the event handler function, a scripting language such as JavaScript can be used to parse the page code content of the current page. This page code content is the in-memory representation of the page structure, which allows the script to dynamically access and update the page content. Furthermore, all the controls on the page can be identified, including buttons, input boxes, dropdown lists, etc. These controls are usually defined by specific HTML tags and attributes.
[0050] For each control in the page, its property elements need to be extracted. These properties may include id, class, name, value, etc., depending on the type and purpose of the control. When traversing, an optional traversal logic is to access the property elements of each control one by one. That is, the page controls form a tree structure, and each control is a node in the tree structure, traversing each node one by one. This can be done through loop structures (such as for loop, while loop) or array methods (such as forEach).
[0051] In an optional solution, to improve the traversal speed, during the traversal process, the property elements of different controls can also be compared to identify controls with the same property values. For example, after finding a certain error property element, the controls with the same error property element will be traversed, and there is no need to traverse other property elements, which can effectively improve the traversal speed.
[0052] Such as Figure 3 is a schematic diagram of the page code content provided by the present disclosure. As can be seen from Figure 3 it, there are multiple controls in the page. Among them, both Control 1 and Control 2 have property elements that change the control color to "green". However, in actual operation, the control does not display as green but as "red". Therefore, if the "red" property element appears in the page code content, it represents an error property element.
[0053] By the above method, during traversal, the property elements in the page code content are traversed instead of the controls. This method will not affect the page code and does not require adding prompt information to the page code. Only by maintaining the problem set can the required prompt effect be achieved.
[0054] In one or more embodiments of the present disclosure, determining whether there are error property elements in the page code content that cause page response problems based on the problem set includes: determining the control identifiers of all controls included in the page code content; sequentially traversing the property elements corresponding to all control identifiers; and determining whether the property elements are configured as error property elements in the problem set.
[0055] In practical applications, it is first necessary to parse the page code content. This is usually done through web scraping tools or browser development tools. In the parsed page code content, each control is assigned a unique identifier (ID). The purpose of the control identifier is to be able to uniquely reference these controls in subsequent steps.
[0056] Traverse all the property elements corresponding to the control identifiers in sequence. For each control, extract all its HTML property elements. These property elements may include id, class, type, name, value, href, src, etc., depending on the control type and the design of the web developer.
[0057] As described above, define in advance a set of problems containing error property elements. This set may be based on a series of known non-security vulnerabilities, best practice violations, or specific business requirements. For example, it may include cases where an unacceptable property name is entered during user operations, insecure configurations of specific property values, etc. Traverse the property elements of the control, that is, match each property element of all controls in the page with the error property elements in the set of problems.
[0058] If a property element of a certain control matches an error property element in the set of problems, mark that control as having a problem with page response error. Record all the controls with detected errors and their error property elements for further finding the corresponding prompt information based on the search results of the error property elements.
[0059] Through the above solution, when judging whether there are error property elements in the property elements of the page code content, traversal can be carried out based on the control identifiers. That is, build all the control identifiers in the page into a tree structure, and then traverse the property elements in each node according to the tree structure in sequence, which can ensure that no controls and property elements are missed and achieve a comprehensive and thorough traversal. It should be noted that during traversal, match the property elements corresponding to each control node with the error property elements in the set of problems. If a match is found, it means that there is indeed content with page response error in the page, and prompt information needs to be provided to the user to guide the user to temporarily solve the page response problem.
[0060] In one or more embodiments of the present disclosure, determining whether there are error property elements in the page code content that cause page response problems includes: determining the control identifiers of all controls included in the page code content; traversing all the property elements corresponding to the control identifiers in sequence. Judging whether there is a combination of multiple property elements of the same control in the page code content that is the same as the combination of preset problem property elements in the set of problems; or judging whether there is a combination of multiple property elements of multiple related controls in the page code content that is the same as the combination of preset problem property elements in the set of problems.
[0061] In practical applications, the causes of some page response problems are relatively complex, and multiple conditions may need to occur simultaneously to cause such problems. In the case where multiple causes are superimposed to cause problems, it is often multiple different property elements in the same control, or multiple property elements of multiple related controls that are superimposed to cause a certain page response problem. The related controls mentioned here can be understood as multiple controls that jointly complete a task. For example, the file addition control and the file submission control in a file review task can be understood as related controls.
[0062] It should be noted that in order to implement the judgment of the combination problem of multiple property elements, corresponding multiple property element combinations also need to be added to the problem set. For example, the combination of property element 1 of control 1, property element 3 of control 2, and property element 2 of control 4 will cause an error in the page font display. Therefore, here, property element 1, property element 2, and property element 3 can be combined and stored in the problem set.
[0063] When traversing the combination problem of multiple property elements, the page code content of the current page can be traversed by using the property element combinations that already exist in the problem set. This traversal method does not require aimlessly combining multiple property elements in the page code content, but makes targeted selections and combinations according to the property element combinations in the problem set, which can effectively improve the traversal efficiency of the combined property elements.
[0064] In addition, through the above solution, complex problems caused by non-single controls or single property elements can be discovered, effectively improving the ability to discover page response problems. The prompt information for this situation can be to guide the user to modify any one or more property elements to solve the page response problem. Before the background development and operation and maintenance personnel fundamentally solve the problem, this method can be used to achieve rapid problem degradation.
[0065] In one or more embodiments of the present disclosure, before traversing the page code content corresponding to the page, it further includes: receiving the page response problem feedback by the user; when the page response problem occurs, determining the property elements whose states have changed as error property elements; obtaining the prompt information for guiding the user to take degradation measures for the page response problem; establishing a problem set containing the corresponding relationship between the error property elements and the prompt information.
[0066] The prompt information of the degradation measures mentioned here can be understood as follows: when the background developers and operation and maintenance personnel have not found a solution for the time being, or although there is a solution, but comprehensive system upgrade is required to solve the problem, which has a greater impact on users, the prompt information can be used to guide users to manually close the problem or ignore the problem. As a temporary emergency measure. However, it should be noted that the page response problem does not affect the safe use of users. If there are problems that affect the safety of users, this disclosed technical solution is not applicable, and the background developers or operation and maintenance personnel should solve them immediately.
[0067] In actual applications, the initial page response problems are all reported by users. After finding problems during use, users will report the problems to customer service personnel. The system systematically receives and records the specific descriptions of users' page response problems, including the scenarios where problems occur, operation steps, the differences between the expected behaviors and the actual behaviors, etc. These information are the basis for subsequent analysis.
[0068] In order to detect page response problems in a timely manner, each trigger operation of the user will traverse all the attribute elements of the page code content. In this way, there is no need to modify the page code content, and only the attribute elements in the code content need to be detected, that is, the background developers and operation and maintenance personnel can add or delete problems and prompt information in the problem set according to needs. By means of DOM monitoring or log comparison, check the log files of the application program, system monitoring data, and user operation records to determine which attribute elements' states (such as control states, data values, interaction logics, character types, etc.) have changed when the page response problem occurs, and then these attribute elements can be used as potential error attribute elements.
[0069] In order to more accurately lock the page response problem, professional technicians are still needed to further diagnose the problem and identify whether the response problem is caused by the change of the attribute elements of which control, or is caused by the change of the combination of which attribute elements, or other reasons lead to the page response problem and the change of the attribute element states (the page response problem is not caused by the attribute element).
[0070] After analyzing the problematic attribute elements or the combination of attribute elements, further, technicians also need to analyze how to solve the problem. If it cannot be solved immediately, it is necessary to provide a temporary degradation solution for the problem, and use this temporary degradation solution as prompt information, and use the attribute element that causes the page response problem as an error attribute element. It is also possible that it is not caused by a certain attribute element, but other code logics, but the state of the attribute element will change when the page response problem occurs. In this case, the attribute element can still be used as an error attribute element.
[0071] It should be noted that when formulating temporary downgrading measures, it is necessary to consider that users can implement operations in an easy-to-understand manner. Because the technical levels of actual users vary widely, and some may not even have any software development experience. So that after seeing the prompt information, users can smoothly execute the problem downgrading measures according to the prompt information.
[0072] After finding the error attribute element with problems through the above content and formulating downgrading measures for the response problem, it can be further added to the problem set according to the corresponding relationship. For example, it can be added to the problem set in the form of key-value pairs.
[0073] Based on the above content, effective management of problems is achieved by establishing a problem set. In this problem set, the error attribute element and the corresponding prompt information are stored in the form of key-value pairs. So that when conducting problem troubleshooting and traversing later, the problem can be locked by traversing the attribute elements, and then the prompt information can be accurately provided. The management of this problem set does not require modifying the page code content and will not have any impact on the page and user usage.
[0074] In one or more embodiments of the present disclosure, after determining whether there is an error attribute element that causes a page response problem in the page code content, it further includes: if there is no error attribute element and the page has a page response problem; then send the triggered control and the attribute element whose state has changed to the user device, so that the user device can generate prompt information based on the attribute element whose state has changed.
[0075] In actual applications, after the user triggers a control and the page has a page response problem, the staff needs to troubleshoot the problem in a timely manner. One relatively fast troubleshooting method is to check which attribute elements have changed and which controls have been triggered when the page response error occurs. Through research and analysis by technical personnel, the attribute element that causes the page response error is accurately found. It can effectively improve the problem troubleshooting efficiency. After finding the error attribute element with problems, it is also necessary to find the prompt information for temporarily downgrading this problem. Furthermore, the error attribute element and the prompt information for downgrading are added to the problem set in real time. By maintaining the problem set, it is possible to provide prompt information to guide users to temporarily solve the problem at the first time when the problem is discovered, reducing the adverse impact of the problem on users.
[0076] Based on the above, the content in the problem set can be modified in real time as needed. For example, when a new problem is discovered, after locking the attribute element that causes the problem, the error attribute element can be further added to the problem set, and the corresponding prompt information can be added to the problem set. Since the content of the problem set is added or deleted without modifying the page code content, it will not have any adverse effects on the normal use of users. Therefore, the problem set can be modified in real time as needed after the problem is discovered.
[0077] In one or more embodiments of the present disclosure, the prompt information mentioned here includes: prompt information for users to manually solve problems, or prompt information for users to bypass problems.
[0078] In practical applications, users can add prompt information for problems as needed. For example, if the solution is relatively simple, prompt information for guiding users to manually solve the problem can be added to the problem set. If the problem has little impact on subsequent operations or has no impact on other users, the prompt information can be used to guide users to temporarily bypass the problem.
[0079] For ease of understanding, the following will illustrate the information display method through specific embodiments. As Figure 4 is a schematic diagram of the information display process exemplified in the present disclosure. As can be seen from Figure 4 In step 401, an online page response problem occurs, and the technical personnel locate the attribute element that causes the problem: when an online page response problem occurs (for example, a user feedbacks a page response problem to the customer service), the technical personnel first use means such as log analysis and performance monitoring tools to locate the specific page code and the attribute element that causes the problem. The technical personnel need to record in detail the scenario where the problem occurs, the trigger conditions, and the specific information of the attribute elements related to the problem (such as element ID, class name, attribute name, etc.).
[0080] In step 402, configure specific attribute elements and prompt information in the background problem set: the technical personnel log in to the background management system and enter the problem set configuration module. Add a new entry in the problem set, including specific attribute element information (such as element selector, attribute name, etc.) and relevant prompt information. The prompt information should be concise and clear, guiding users on how to temporarily close or bypass the problem, and providing contact information for technical support at the same time.
[0081] In step 403, the monitoring tool pulls the problem set configuration from the background: the monitoring tool starts automatically when the user accesses the page and pulls the latest problem set configuration from the background management system. The monitoring tool caches the configuration information locally for quick access during page initialization and subsequent operations.
[0082] Step 404, the monitoring tool starts to monitor the change of property elements when initializing the page: After the page is loaded, the monitoring tool starts to initialize and sets the monitoring of all property elements in the page. The monitoring tool captures the changes of property elements in real time through DOM operations or event monitoring mechanisms.
[0083] Step 405, the user's operation on the page triggers the monitoring tool: Whenever the user performs an operation on the page (such as clicking, inputting, scrolling, etc.), it will trigger the change of page property elements. After the monitoring tool captures these changes, it starts to execute the traversal and inspection process.
[0084] Step 406, the monitoring tool traverses the page property elements and checks for problems: The monitoring tool traverses all property elements in the page and uses the names or IDs of the property elements in the problem set for matching. If it is found that a certain property element matches the error property element in the problem set, it is determined that the user is operating the page function that causes online problems.
[0085] Step 407, pop-up prompt for the user: Once it is determined that the user is operating the problem page function, the monitoring tool immediately shows a pop-up prompt to the user according to the prompt information in the problem set configured in the background. The pop-up prompt should include a clear problem description, a temporary solution (such as closing a specific function, using an alternative path, etc.) and technical support contact information. The user can take corresponding actions according to the prompt information to bypass or temporarily solve the online problem.
[0086] Step 408, record the user's operation and problem feedback: While showing the pop-up prompt, the monitoring tool records the user's operation behavior and related problem feedback. These data can be used for subsequent problem analysis and optimization to help technicians better understand the problems and needs of users in actual use.
[0087] Step 409, continuously monitor and update the problem set: Technicians should regularly monitor the response of the online page and update the problem set according to user feedback and data analysis results. For the problems that have been solved, remove the relevant entries from the problem set; for the newly emerged problems, add new entries and prompt information in a timely manner. Through the above steps, it can ensure the timely discovery, location and solution of online page response problems, and at the same time provide effective user guidance and support. As a temporary degradation measure before fundamentally solving the problem, it can effectively provide the user experience and gain more time for the subsequent staff to completely solve the problem.
[0088] When triggering any control on a page, it will traverse all the page code content in the triggered page. The page code content contains the property elements of all the controls on the current page. Some of these property elements are error property elements that can cause page response problems. When displaying a prompt message for a page response problem, the prompt message is not for the control with a problem, but for the property element of that control to display the corresponding problem prompt message. There is no need to write problem-related prompt messages for each control in the code. Just establish a problem set, and then traverse the property elements with problems from the problem set to achieve the display of prompt messages.
[0089] In addition, since there are many controls on the page, and there are often at least some identical property elements among multiple controls. The method of establishing a problem set using property elements in this solution does not require separately configuring the same prompt message for multiple controls with the same property elements, avoiding repetitive configuration work, effectively improving the problem configuration efficiency, and reducing the workload of prompt message configuration.
[0090] Based on any of the above embodiments, the present disclosure also provides an information display device. Figure 5 It is a structural schematic block diagram of an information display device according to an embodiment of the present disclosure. As Figure 5 shown, the information display method device includes: a traversing module 51, configured to traverse the page code content corresponding to the page in response to a triggering operation on any control on the page; the page code content contains the property elements of all the controls on the page. A judging module 52, configured to judge whether there are error property elements that cause page response problems in the page code content based on the problem set. A searching module 53, configured to, if there are error property elements, find the prompt message corresponding to the error property element from the problem set. A displaying module 54, configured to display the prompt message on the page.
[0091] The traversing module 51 is configured to determine the page code content of the user-operated page in response to a triggering operation on any control on the page; wherein, the page includes multiple different controls, and at least some identical property elements are configured for the multiple different controls in the page code content; traverse the property elements of the multiple different controls in the page code content.
[0092] The judging module 52 is configured to determine the control identifiers of all the controls included in the page code content; sequentially traverse the property elements corresponding to all the control identifiers; judge whether the property element is configured as an error property element in the problem set.
[0093] A determination module 52, configured to determine the control identifiers of all controls included in the page code content; sequentially traverse the attribute elements corresponding to all control identifiers; determine whether a combination of multiple attribute elements of the same control appears in the page code content and is the same as the combination of preset problem attribute elements in the problem set; or determine whether a combination of multiple attribute elements of multiple related controls appears in the page code content and is the same as the combination of preset problem attribute elements in the problem set.
[0094] Optionally, it further includes a set establishment module 55, configured to receive the page response problems feedback by the user; when a page response problem occurs, determine the attribute elements whose states have changed as error attribute elements; obtain the prompt information for guiding the user to take downgrading measures for the page response problem; establish a problem set including the corresponding relationship between the error attribute elements and the prompt information.
[0095] The set establishment module 55 is further configured to, if no error attribute elements appear and the page has a page response problem, send the triggered control and the attribute elements whose states have changed to the user device, so that the user device generates prompt information according to the attribute elements whose states have changed.
[0096] Optionally, the prompt information displayed by the display module 54 includes: the prompt information for the user to manually solve the problem, and / or the prompt information for the user to bypass the problem.
[0097] For the implementation processes of the functions and effects of each module in the above device, please refer to the implementation processes of the corresponding steps in the above method for details, and will not be elaborated here.
[0098] The execution subject of the information display method in the specific implementation manner of the present disclosure may be an electronic device such as a server (including a local server or a cloud server).
[0099] Therefore, based on any one of the above embodiments, the present disclosure further provides an electronic device, which can execute the information display method of any one of the above embodiments described in the present disclosure.
[0100] Figure 6 It is a structural schematic block diagram of an electronic device according to an embodiment of the present disclosure.
[0101] The hardware structure of the electronic device 1000 can be implemented by using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the specific application of the hardware and the overall design constraints. The bus 1100 connects various circuits including one or more processors 1200, a memory 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripheral devices, voltage regulators, power management circuits, external antennas, etc.
[0102] The bus 1100 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one connection line is used in this figure, but it does not mean that there is only one bus or one type of bus.
[0103] The present disclosure also provides a readable storage medium storing a computer program, which when executed by a processor is used to implement the above method. The "readable storage medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples of the readable storage medium include the following: an electrical connection part (electronic device) having one or more wirings, a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.
[0104] The present disclosure also provides a computer program product. The method of the present disclosure can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed, the processes or functions of the present disclosure are executed in whole or in part.
[0105] The computer program or instructions can be stored in a readable storage medium, or transmitted from one readable storage medium to another. For example, the computer program or instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired or wireless manner. The readable storage medium can be any accessible available medium or a data storage device such as a server or data center integrating one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it can also be an optical medium, such as a digital video disc; or it can be a semiconductor medium, such as a solid state drive. The computer-readable storage medium can be a volatile or non-volatile storage medium, or can include both volatile and non-volatile types of storage media.
[0106] Those skilled in the art should understand that the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure can take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0107] The present disclosure is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present disclosure. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing method devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing method devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0108] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing method device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing method device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0110] In the description of this specification, the description referring to terms such as "one embodiment / way", "some embodiments / ways", "example", "specific example", or "some examples", etc. means that the specific features, structures, or characteristics described in connection with that embodiment / way or example are included in at least one embodiment / way or example of the present disclosure. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment / way or example. Moreover, the specific features, structures, or characteristics described can be combined in a suitable manner in any one or more embodiments / ways or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments / ways or examples described in this specification and the features of different embodiments / ways or examples.
[0111] In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present disclosure, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0112] Those skilled in the art should understand that the above embodiments are merely for clearly explaining the present disclosure and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications can be made on the basis of the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. An information display method, characterized in that The method includes: In response to a trigger operation on any control in the page, traverse the page code content corresponding to the page; the page code content contains the attribute elements of all controls in the page; Based on the problem set, determine whether there are error attribute elements in the page code content that cause page response problems; If the error attribute elements appear, find the prompt information corresponding to the error attribute elements from the problem set; Display the prompt information in the page.
2. The method according to claim 1, characterized in that, The traversing the page code content corresponding to the page in response to a trigger operation on any control in the page includes: In response to a trigger operation on any control in the page, determine the page code content of the user's operation page; wherein, the page includes a plurality of different controls, and at least some of the same attribute elements are configured in the page code content for the plurality of different controls; Traverse the attribute elements of the plurality of different controls in the page code content.
3. The method according to claim 1, wherein The determining whether there are error attribute elements in the page code content that cause page response problems based on the problem set includes: Determine the control identifiers of all controls included in the page code content; Traverse the attribute elements corresponding to all the control identifiers in sequence; Judge whether the attribute element is configured as the error attribute element in the problem set.
4. The method according to claim 1, wherein The determining whether there are error attribute elements in the page code content that cause page response problems based on the problem set includes: Determine the control identifiers of all controls included in the page code content; Traverse the attribute elements corresponding to all the control identifiers in sequence; Judge whether there is a combination of multiple attribute elements of the same control in the page code content that is the same as the combination of preset problem attribute elements in the problem set; or, Judge whether there is a combination of multiple attribute elements of multiple associated controls in the page code content that is the same as the combination of preset problem attribute elements in the problem set.
5. The method according to claim 1, wherein Before traversing the page code content corresponding to the page, it further includes: Receive the page response problem feedback by the user; When the page response problem occurs, determine the attribute element whose state has changed as the error attribute element; Obtain the prompt information for guiding the user to take a degradation measure for the page response problem; Establish the problem set including the corresponding relationship between the error attribute element and the prompt information.
6. The method according to claim 5, characterized in that, After determining whether there are error attribute elements in the page code content that cause page response problems based on the problem set, it further includes: If the error attribute elements do not appear, and the page has the page response problem; Then send the triggered control and the attribute element whose state has changed to the user device, so that the user device generates the prompt information according to the attribute element whose state has changed.
7. The method according to claim 1, characterized in that, The prompt information includes: prompt information for the user to manually solve the problem, or prompt information for the user to bypass the problem.
8. An electronic device, characterized in that, Includes: A memory that stores execution instructions; And A processor that executes execution instructions stored in the memory, such that the processor executes the method according to any one of claims 1 to 7.
9. A readable storage medium, characterized in that, Execution instructions are stored in the readable storage medium, and when the execution instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 7.