Method, device, computer equipment and storage medium for obtaining abnormal page information

By responding to the target parameter transfer operation in the browser, turning on the web page information printing function and printing page-related information, the problem of difficulty in obtaining information when web page displays abnormalities is solved, and the effect of quickly solving abnormalities and improving user experience is achieved.

CN114925309BActive Publication Date: 2025-05-06GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210503029.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2025-05-06
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

When a user uses a browser to view a web page, when the web page displays abnormally, technicians cannot quickly obtain information related to the page, making it difficult to quickly resolve the abnormal page display problem, affecting the user experience.

Method used

During the web page display process, in response to the target parameter transfer operation, the target parameters used to control the web page information printing function are obtained, and whether to enable the web page information printing function, and print page-related information of the web page after opening, including page display abnormal information.

Benefits of technology

It realizes that page exception information can be quickly obtained when web page displays exceptions, reducing the time to solve page display exception problems and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114925309B_ABST
    Figure CN114925309B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, computer equipment and storage medium for obtaining page abnormality information. The method includes: in the process of displaying a web page, in response to a target parameter transmission operation for the web page, obtaining the target parameter for controlling the web page information printing function transmitted in the target parameter transmission operation; determining whether it is necessary to enable the web page information printing function based on the target parameter; if so, enabling the web page information printing function; based on the web page information printing function, printing the page-related information of the web page, the page-related information including the page display abnormality information of the web page. When the web page is displayed abnormally, the page-related information of the web page can be printed, and the abnormal information when the web page is displayed can be obtained according to the page-related information of the printed web page, so as to further quickly solve the page display abnormality problem and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of page display technology, and in particular to a method, device, computer equipment and storage medium for obtaining page abnormality information. Background Art

[0002] When a user uses a browser to view a web page, the browser can send a content acquisition request to the server interface corresponding to the web page. The server interface will return data information related to the web page, which may contain some sensitive information (for example, privacy information such as user address and user name). If all page-related information of the web page is printed to the console of the browser developer tool, it will cause information leakage problems, and it will also cause problems such as web page freezes due to excessive printing of information. Therefore, when using a browser to view a web page, the web page information printing function of the console will be disabled. However, when an abnormality occurs in the display of a web page, since the technician cannot obtain the page-related information printed by the web page information printing function, it takes more time to obtain the abnormal information when the page is displayed, and the abnormal page display problem cannot be quickly resolved, affecting the user experience. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, computer equipment and storage medium for obtaining page exception information, which can obtain exception information when a web page is displayed based on page-related information of a printed web page, and further quickly resolve page display exception issues.

[0004] The present application provides a method for obtaining page abnormality information, including:

[0005] In the process of displaying the web page, in response to a target parameter transmission operation for the web page, obtaining a target parameter for controlling a web page information printing function transmitted in the target parameter transmission operation;

[0006] Determining whether to enable the web page information printing function based on the target parameter;

[0007] If yes, start the web page information printing function;

[0008] Based on the web page information printing function, page related information of the web page is printed, and the page related information includes page display abnormality information of the web page.

[0009] Accordingly, the embodiment of the present application further provides a device for obtaining page abnormality information, including:

[0010] an acquisition unit, configured to, in response to a target parameter transfer operation for the web page during the display process of the web page, acquire a target parameter for controlling a web page information printing function transferred in the target parameter transfer operation;

[0011] A determination unit, configured to determine whether the webpage information printing function needs to be enabled based on the target parameter;

[0012] An enabling unit, used for enabling the web page information printing function if yes;

[0013] A printing unit is used to print page-related information of the web page based on the web page information printing function, and the page-related information includes page display abnormality information of the web page.

[0014] Optionally, the display process of the web page includes a web page loading stage;

[0015] The acquisition unit is also used for:

[0016] Determine the URL address of the web page;

[0017] A URL parameter transmission operation for the web page is performed based on the URL address, and the target parameter for controlling the web page information printing function is obtained from the parameter transmitted by the URL address.

[0018] Optionally, the acquisition unit is further used for:

[0019] If the web page display is abnormal, determining a preset parameter for controlling the start of the web page information printing function;

[0020] Execute a URL parameter passing operation for the web page based on the URL address, and add the preset parameter to the parameters passed by the URL address;

[0021] Acquire the preset parameter from the parameter transmitted by the URL address as the target parameter for controlling the web page information printing function;

[0022] The determining unit is further configured to:

[0023] Based on the target parameters, it is determined that the web page information printing function needs to be enabled.

[0024] Optionally, the display process of the web page includes a post-loading stage of the web page;

[0025] The acquisition unit is also used for:

[0026] In response to a display instruction for a console function of the web page, display an operation interface corresponding to the console function;

[0027] In response to a target parameter transfer instruction input in the operation interface for the web page information printing function, the input target parameter is acquired.

[0028] Optionally, the determining unit is further configured to:

[0029] Passing the target parameter to a global function for controlling the web page information printing function switch;

[0030] The global function is used to determine whether the target parameter is a parameter for enabling the web page information printing function.

[0031] Optionally, the web page includes a console function control;

[0032] The acquisition unit is also used for:

[0033] generating a display instruction in response to a triggering operation on the console function control;

[0034] According to the display instruction, the operation interface corresponding to the console function is displayed.

[0035] Optionally, the device is also used for:

[0036] If the web page of the web user terminal is displayed abnormally, page indication information of the web page that displays abnormally is obtained, and the web page is loaded in the terminal based on the page indication information, wherein the console function control is displayed in the loaded web page.

[0037] Optionally, the acquisition unit is further used for:

[0038] During the web page loading process, obtaining a global function object for controlling the opening of the web page information printing function;

[0039] Save the global function object to a preset variable and set the global function object to be empty;

[0040] The opening unit is also used for:

[0041] The preset variable is assigned to the global function object to enable the web page information printing function.

[0042] Similarly, an embodiment of the present application also provides a computer device, including:

[0043] Memory for storing computer programs;

[0044] A processor is used to execute any step of the method for obtaining page exception information.

[0045] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the page exception information acquisition methods are implemented.

[0046] The embodiments of the present application provide a method, apparatus, computer equipment and storage medium for obtaining page exception information. During the display process of a web page, if the web page displays abnormally, the technician can perform a target parameter passing operation for the web page, and turn on the web page information printing function by passing the target parameter that can control the activation of the web page information printing function, so that the page-related information of the web page can be printed when the web page displays abnormally, and the abnormal information when the web page is displayed can be obtained based on the page-related information of the printed web page, so as to further quickly solve the page display abnormality problem and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0048] Figure 1 is a system schematic diagram of a device for obtaining abnormal page information provided by an embodiment of the present application;

[0049] Figure 2 It is a flowchart of a method for obtaining abnormal page information provided by an embodiment of the present application;

[0050] Figure 3 It is a schematic diagram of the operation interface of the console function provided in the embodiment of the present application;

[0051] Figure 4 It is another flowchart schematic diagram of the method for obtaining page abnormality information provided by an embodiment of the present application;

[0052] Figure 5 It is a structural diagram of a device for obtaining abnormal page information provided in an embodiment of the present application;

[0053] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0055] The embodiment of the present application provides a method, device, computer equipment and storage medium for obtaining page abnormal information. Specifically, the method for obtaining page abnormal information in the embodiment of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (Personal Computer, PC), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal can also include a client, which can be a game application client, a front-end browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution network services, and basic cloud computing services such as big data and artificial intelligence platforms.

[0056] For example, when the page exception information acquisition method is run on a terminal, the terminal device stores a browser program and is used to present a graphical user interface of the browser. The terminal device is used to interact with the technician through the graphical user interface, for example, by downloading and installing the browser program through the terminal device and running it. The terminal device may provide the graphical user interface to the technician in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, and the touch display screen is used to present the graphical user interface and receive the operation instructions generated by the technician acting on the graphical user interface.

[0057] See also Figure 1 , Figure 1A system diagram of a device for acquiring page abnormal information provided by an embodiment of the present application. The system may include at least one terminal 101 operated by a technician and at least one terminal 102 operated by a user. The terminal 102 operated by a user may be connected to the terminal 101 operated by a technician via a network. For example, the network may be a wireless network or a wired network. The wireless network may be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. The terminal 101 operated by a technician is used to obtain the target parameter for controlling the web page information printing function transmitted in the target parameter transmission operation in response to the target parameter transmission operation for the web page during the display process of the web page; determine whether the web page information printing function needs to be turned on based on the target parameter; if so, turn on the web page information printing function; based on the web page information printing function, print the page related information of the web page, and the page related information includes the page display abnormal information of the web page. The terminal 102 operated by the user is used for the user to view the web page in the browser.

[0058] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0059] This embodiment will be described from the perspective of a method for obtaining page exception information. The method for obtaining page exception information can be specifically integrated in a terminal device, which can include a smart phone, a laptop, a tablet computer, a personal computer, and other devices.

[0060] The embodiment of the present application provides a method for obtaining page abnormality information, which can be executed by a processor of a terminal, such as Figure 2 As shown, the specific process of the method for obtaining page abnormal information mainly includes steps 201 to 204, which are described in detail as follows:

[0061] Step 201: During the display process of a web page, in response to a target parameter transfer operation for the web page, a target parameter for controlling a web page information printing function transferred in the target parameter transfer operation is obtained.

[0062] In the embodiment of the present application, a web page is a file organized in HTML format on the World Wide Web. When information is queried through the World Wide Web, it appears in the form of an information page, which may include graphics, text, sound, video, etc. The display of a web page refers to the information included in the web page being displayed in a browser. The display process of a web page includes a page loading stage and a display completion stage after the page is loaded.

[0063] In one embodiment of the present application, when a user uses a browser to view a web page, the web page may display abnormally. When the web page displays abnormally, the technician can perform a target parameter transfer operation on the web page that displays abnormally. Among them, the web page display abnormality can be divided into two types: abnormality occurs during the web page loading phase and abnormality occurs after the web page is loaded. For example, the abnormality occurs during the web page loading phase, which may be that the content in the web page is not fully displayed, the content in the web page is displayed disorderly, etc. The abnormality occurs after the web page is loaded, which may be that the content in the web page is displayed normally, the web page does not respond after the user performs an operation in the web page, or the web page responds disorderly according to the user's operation.

[0064] In the embodiment of the present application, the way in which the technician learns that the web page browsed by the user is abnormal is not limited and can be flexibly set according to the actual situation. For example, when the web page browsed by the user is abnormal, the user can feedback the abnormality of the web page to the technician through the page abnormality upload path, so that the technician knows that the web page is abnormal. For another example, the technician can set up an abnormal monitoring program to monitor the display of the web page in the browser. When the web page is abnormal, the abnormal control program can detect it and send the abnormal detection result to the technician, so that the technician knows that the web page display is abnormal, and further enable the web page information printing function.

[0065] In an embodiment of the present application, when the web page does not display abnormalities, if the technician needs to view page-related information of the web page, the technician can also perform a target parameter transfer operation for the web page, turn on the web page information printing function, and print page-related information.

[0066] In the embodiment of the present application, the display process of the web page includes the web page loading stage and the web page post-loading stage. The target parameter transmission operations performed in the web page loading stage and the web page post-loading stage are different. For example, in the web page loading stage, the target parameter for controlling the web page information printing function can be transmitted by using the URL transmission method. In the web page post-loading stage, the target parameter for controlling the web page information printing function can be transmitted through the browser console.

[0067] In one embodiment of the present application, when it is determined that a display abnormality occurs on a web page during the web page loading phase, and a target parameter passing operation is performed by means of a URL parameter passing method, the "response to the target parameter passing operation on the web page, obtaining the target parameter for controlling the web page information printing function passed in the target parameter passing operation" in the above step 201 may be:

[0068] Determine the URL address of the web page;

[0069] A URL parameter transmission operation for the web page is performed based on the URL address, and the target parameter for controlling the web page information printing function is obtained from the parameter transmitted by the URL address.

[0070] In the embodiment of the present application, URL (uniform resource locator) is the location information used to indicate the address of a web page. URL is composed of a string of characters, which can be letters, numbers and special symbols. URL is usually written in the following format: <scheme>: <scheme description part>, for example, https: / / www.baidu.com / ?tn=44004473_35_oem_dg.

[0071] In one embodiment of the present application, the target parameter to be transmitted may be added to the URL, thereby realizing the ERL parameter transmission operation. Specifically, the above step of "performing the URL parameter transmission operation for the web page based on the URL address, and obtaining the target parameter for controlling the web page information printing function from the parameter transmitted by the URL address" may be:

[0072] If the web page display is abnormal, determining a preset parameter for controlling the start of the web page information printing function;

[0073] Execute a URL parameter passing operation for the web page based on the URL address, and add the preset parameter to the parameters passed by the URL address;

[0074] The preset parameter is obtained from the parameter transmitted by the URL address as the target parameter for controlling the web page information printing function.

[0075] In the embodiment of the present application, the preset parameter is a preset parameter that can control the opening of the web page information printing function. The specific value of the preset parameter may not be limited. For example, the preset parameter may be 1. If the URL address is https: / / www.baidu.com / ?tn=44004473_35_oem_dg, adding the preset parameter to the URL address may be https: / / www.baidu.com / ?tn=44004473_35_oem_dg#1.

[0076] In an embodiment of the present application, after the preset parameters are added to the parameters transmitted by the URL address, the web page is reloaded based on the URL address after adding the target parameters, and the terminal obtains the URL address after the preset parameters are added. First, it is determined from the parameters transmitted by the URL address whether there are preset parameters. If so, it is determined to enable the web page information printing function.

[0077] In one embodiment of the present application, when a page display exception occurs in the post-loading stage of the web page, parameters can be passed through the browser console. Specifically, in the above step 201, "in response to the target parameter passing operation for the web page, obtaining the target parameter passed in the target parameter passing operation for controlling the web page information printing function" can be:

[0078] In response to a display instruction for a console function of the web page, display an operation interface corresponding to the console function;

[0079] In response to a target parameter transfer instruction input in the operation interface for the web page information printing function, the input target parameter is acquired.

[0080] In the embodiment of the present application, the console is mainly used to display various information generated during the web page loading process. The browser has an operation interface for operating the console function, which is used to input relevant instructions for the console function. For example, Figure 3 In the operation interface diagram of the console function shown, a global function carrying a target parameter can be input in the operation interface corresponding to the console function (ie, the operation interface corresponding to the Console object), that is, if the target parameter is 1, it can be enabledConsole(1).

[0081] In the embodiment of the present application, the web page may include a console function control. In this case, the operation interface may be triggered by the console function control. Specifically, the above step of "displaying the operation interface corresponding to the console function in response to the display instruction for the console function of the web page" may be:

[0082] generating a display instruction in response to a triggering operation on the console function control;

[0083] According to the display instruction, the operation interface corresponding to the console function is displayed.

[0084] In the embodiment of the present application, the shape and position of the console function control in the browser interface are not restricted and can be flexibly set according to actual conditions.

[0085] In one embodiment of the present application, when it is determined that a web page display is abnormal, a console function control can be automatically generated in the browser interface. Specifically, if the web page display of the web user terminal is abnormal, the page indication information of the web page with the abnormal display is obtained, and the web page is loaded in the terminal based on the page indication information, wherein the console function control is displayed in the loaded web page.

[0086] Step 202: Determine whether to enable the web page information printing function based on the target parameter.

[0087] In the embodiment of the present application, when the parameters are transmitted through the URL during the web page loading stage, at this time, "determine whether the web page information printing function needs to be enabled based on the target parameter" in step 202 can be: determine whether the web page information printing function needs to be enabled based on the target parameter. For example, first determine that the parameter that can enable the web page information printing function is a preset parameter. After the target parameter is added to the parameter transmitted by the URL address, the web page is reloaded based on the URL address after the target parameter is added. The terminal obtains the URL address after the target parameter is added. First, determine whether the added target parameter is a preset parameter from the parameters transmitted by the URL address. If so, determine to enable the web page information printing function. If the added target parameter is not a preset parameter, or no parameter is added, determine to keep the web page information printing function closed.

[0088] In one embodiment of the present application, when parameters are transmitted through the operation interface of the console function in the post-web page loading stage, the above step 202 "determining whether to enable the web page information printing function based on the target parameters" may be:

[0089] Passing the target parameter to a global function for controlling the web page information printing function switch;

[0090] The global function is used to determine whether the target parameter is a parameter for enabling the web page information printing function.

[0091] For example, the global function is set to enabledConsole, and the terminal obtains whether the target parameter carried by the global function enabledConsole is a preset parameter that can control the web page information printing function. If so, the web page information printing function is turned on. If not, or the global function enabledConsole does not carry a parameter, it is determined to keep the web page information printing function turned off.

[0092] Step 203: If yes, enable the web page information printing function.

[0093] In an embodiment of the present application, the global function object that controls the activation of the web page information printing function can be backed up in advance, and then the global function object that controls the activation of the web page information printing function can be set to empty, thereby disabling the web page information printing function. When the web page information printing function is to be activated, the backed-up global function object is used to activate the web page information printing function. Specifically, before the above step 201 "responding to the target parameter passing operation for the web page, obtaining the target parameter passed in the target parameter passing operation for controlling the web page information printing function", it is necessary to obtain the global function object that controls the activation of the web page information printing function during the web page loading process; save the global function object to a preset variable, and set the global function object to empty.

[0094] At this time, the above step 203 "enabling the web page information printing function" includes:

[0095] The preset variable is assigned to the global function object to enable the web page information printing function.

[0096] Step 204: based on the web page information printing function, print the page related information of the web page, wherein the page related information includes page display abnormality information of the web page.

[0097] In the embodiment of the present application, after printing the page-related information based on the web page information printing function, the technician can view the page-related information in the graphical user interface of the browser, and determine the page display abnormal information based on the abnormal identification (for example, error identification 405) from the page-related information, thereby further locating the abnormal position of the web page display. This reduces the user impact time caused by the abnormal problem, and also reduces the time cost risk caused by blindly searching for the abnormal position.

[0098] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0099] The method for obtaining page exception information provided in the embodiment of the present application, during the display process of a web page, if the web page displays abnormally, the technician can perform a target parameter passing operation for the web page, and turn on the web page information printing function by passing the target parameter that can control the activation of the web page information printing function, so that the page-related information of the web page can be printed when the web page displays abnormally, and the abnormal information when the web page is displayed is obtained based on the page-related information of the printed web page, so as to further quickly solve the page display abnormality problem and improve the user experience.

[0100] See also Figure 4 , Figure 4Another flow chart of the method for obtaining abnormal page information provided by the embodiment of the present application. The specific flow of the method can be as follows:

[0101] Step 401: Obtain page exception indication information.

[0102] For example, when a user uses a browser to view a web page, the web page may display abnormally. When the web page displays abnormally, the technician can obtain page abnormality indication information to identify the abnormal web page.

[0103] Step 402: During the web page loading phase, for the URL parameter transmission operation of the web page, the target parameter for controlling the web page information printing function is obtained from the parameter transmitted by the URL address.

[0104] For example, the URL address of the web page is first determined; if the web page is displayed abnormally, a preset parameter for controlling the opening of the web page information printing function is determined; based on the URL address, a URL parameter passing operation is performed on the web page, and the preset parameter is added to the parameter passed by the URL address; the preset parameter is obtained from the parameter passed by the URL address as the target parameter for controlling the web page information printing function.

[0105] Step 403: Determine whether to enable the web page information printing function based on the target parameters.

[0106] Step 404: After the web page is loaded, a target parameter transfer operation is performed through the operation interface of the console function to obtain the target parameter for controlling the web page information printing function that is transferred in the target parameter transfer operation.

[0107] For example, in response to a display instruction for the console function of the web page, an operation interface corresponding to the console function is displayed; in response to a target parameter transfer instruction input for the web page information printing function in the operation interface, the input target parameter is acquired.

[0108] Step 405: determine, through a global function for controlling the switch of the web page information printing function, that the target parameter is a parameter for turning on the web page information printing function.

[0109] For example, the target parameter is passed to a global function for controlling the switch of the web page information printing function; and the global function is used to determine whether the target parameter is a parameter for turning on the web page information printing function.

[0110] Step 406: Enable the web page information printing function.

[0111] In addition, before obtaining the page exception indication information, during the web page loading process, obtain the global function object that controls the activation of the web page information printing function; save the global function object to a preset variable, set the global function object to empty, and when the web page information printing function is to be activated, assign the preset variable to the global function object.

[0112] Step 407: based on the web page information printing function, print the page related information of the web page, wherein the page related information includes page display abnormality information of the web page.

[0113] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0114] The method for obtaining page exception information provided in the embodiment of the present application, during the display process of a web page, if the web page displays abnormally, the technician can perform a target parameter passing operation for the web page, and turn on the web page information printing function by passing the target parameter that can control the activation of the web page information printing function, so that the page-related information of the web page can be printed when the web page displays abnormally, and the abnormal information when the web page is displayed is obtained based on the page-related information of the printed web page, so as to further quickly solve the page display abnormality problem and improve the user experience.

[0115] In order to better implement the method for obtaining page abnormality information in the embodiment of the present application, the embodiment of the present application also provides a device for obtaining page abnormality information. Figure 5 , Figure 5 The schematic diagram of the structure of the apparatus for obtaining abnormal page information provided by the embodiment of the present application is as follows: The apparatus for obtaining abnormal page information may include an obtaining unit 501 , a determining unit 502 , an opening unit 503 and a printing unit 504 .

[0116] The acquisition unit 501 is used to, in response to a target parameter transfer operation on the web page during the display process of the web page, acquire the target parameter for controlling the web page information printing function transferred in the target parameter transfer operation;

[0117] A determination unit 502 is used to determine whether the web page information printing function needs to be enabled based on the target parameter;

[0118] An opening unit 503 is used to open the web page information printing function;

[0119] The printing unit 504 is used to print the page-related information of the web page based on the web page information printing function, where the page-related information includes page display abnormality information of the web page.

[0120] Optionally, the display process of the web page includes a web page loading stage;

[0121] The acquisition unit 501 is further used for:

[0122] Determine the URL address of the web page;

[0123] A URL parameter transmission operation for the web page is performed based on the URL address, and the target parameter for controlling the web page information printing function is obtained from the parameter transmitted by the URL address.

[0124] Optionally, the acquiring unit 501 is further configured to:

[0125] If the web page display is abnormal, determining a preset parameter for controlling the start of the web page information printing function;

[0126] Execute a URL parameter passing operation for the web page based on the URL address, and add the preset parameter to the parameters passed by the URL address;

[0127] Acquire the preset parameter from the parameter transmitted by the URL address as the target parameter for controlling the web page information printing function;

[0128] The determining unit 502 is further configured to:

[0129] Based on the target parameters, it is determined that the web page information printing function needs to be enabled.

[0130] Optionally, the display process of the web page includes a post-loading stage of the web page;

[0131] The acquisition unit 501 is further used for:

[0132] In response to a display instruction for a console function of the web page, display an operation interface corresponding to the console function;

[0133] In response to a target parameter transfer instruction input in the operation interface for the web page information printing function, the input target parameter is acquired.

[0134] Optionally, the determining unit 502 is further configured to:

[0135] Passing the target parameter to a global function for controlling the web page information printing function switch;

[0136] The global function is used to determine whether the target parameter is a parameter for enabling the web page information printing function.

[0137] Optionally, the web page includes a console function control;

[0138] The acquisition unit 501 is further used for:

[0139] generating a display instruction in response to a triggering operation on the console function control;

[0140] According to the display instruction, the operation interface corresponding to the console function is displayed.

[0141] Optionally, the device is also used for:

[0142] If the web page of the web user terminal is displayed abnormally, page indication information of the web page that displays abnormally is obtained, and the web page is loaded in the terminal based on the page indication information, wherein the console function control is displayed in the loaded web page.

[0143] Optionally, the acquiring unit 501 is further configured to:

[0144] During the web page loading process, obtaining a global function object for controlling the opening of the web page information printing function;

[0145] Save the global function object to a preset variable and set the global function object to be empty;

[0146] The opening unit 503 is also used for:

[0147] The preset variable is assigned to the global function object to enable the web page information printing function.

[0148] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0149] The apparatus for acquiring page abnormality information provided in the embodiment of the present application, in the process of displaying a web page, acquires the target parameter for controlling the web page information printing function transmitted in the target parameter transmission operation in response to the target parameter transmission operation for the web page through the acquisition unit 501, then determines whether it is necessary to enable the web page information printing function based on the target parameter through the determination unit 502, then, if it is determined that the web page information printing function needs to be enabled through the enabling unit 503, the web page information printing function is enabled, and finally, the page related information of the web page is printed based on the web page information printing function through the printing unit 504, the page related information includes the page display abnormality information of the web page. The embodiment of the present application can print the page related information of the web page when the web page is displayed abnormally, and obtain the abnormal information when the web page is displayed according to the page related information of the printed web page, so as to further quickly solve the page display abnormality problem and improve the user experience.

[0150] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer, a personal digital assistant, or other terminal device. Figure 6 As shown, Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0151] The processor 601 is the control center of the computer device 600. It uses various interfaces and lines to connect the various parts of the entire computer device 600, executes various functions of the computer device 600 and processes data by running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, thereby monitoring the computer device 600 as a whole.

[0152] In the embodiment of the present application, the processor 601 in the computer device 600 will load instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 will run the application programs stored in the memory 602 to implement various functions:

[0153] In the process of displaying the web page, in response to a target parameter transmission operation for the web page, obtaining a target parameter for controlling a web page information printing function transmitted in the target parameter transmission operation;

[0154] Determining whether to enable the web page information printing function based on the target parameter;

[0155] If yes, start the web page information printing function;

[0156] Based on the web page information printing function, page related information of the web page is printed, and the page related information includes page display abnormality information of the web page.

[0157] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0158] Optional, such as Figure 6As shown, the computer device 600 further includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art can understand that Figure 6 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0159] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, which may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel may be used to collect the user's touch operation on or near it (such as the user cashing in the operation of any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to realize the input function.

[0160] In an embodiment of the present application, the processor 601 determines that the web page browsed by the user is displayed abnormally. According to the target parameter passing operation performed by the technician for the web page with the abnormal display, the processor 601 obtains the target parameter passed in the target parameter passing operation. The processor 601 further compares the target parameter with the parameter that can control the activation of the web page information printing function to determine whether to activate the web page information printing function. If the processor 601 determines that the target parameter is the same as the parameter that controls the activation of the web page information printing function, the processor 601 activates the web page information printing function and prints the page-related information of the web page.

[0161] The radio frequency circuit 604 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.

[0162] The audio circuit 605 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and then the audio data is output to the processor 601 for processing, and then sent to another computer device through the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earplug jack to provide communication between an external headset and the computer device.

[0163] The input unit 606 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0164] The power supply 607 is used to supply power to various components of the computer device 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0165] although Figure 6 Not shown, the computer device 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0166] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0167] From the above, it can be seen that in the computer device provided by this embodiment, during the display process of a web page, if the web page displays abnormally, the technician can perform a target parameter passing operation for the web page, and turn on the web page information printing function by passing the target parameters that can control the activation of the web page information printing function, so that the page-related information of the web page can be printed when the web page displays abnormally, and the abnormal information when the web page is displayed can be obtained based on the page-related information of the printed web page, so as to further quickly solve the problem of abnormal page display and improve the user experience.

[0168] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0169] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any of the page exception information acquisition methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0170] In the process of displaying the web page, in response to a target parameter transmission operation for the web page, obtaining a target parameter for controlling a web page information printing function transmitted in the target parameter transmission operation;

[0171] Determining whether to enable the web page information printing function based on the target parameter;

[0172] If yes, start the web page information printing function;

[0173] Based on the web page information printing function, page related information of the web page is printed, and the page related information includes page display abnormality information of the web page.

[0174] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0175] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0176] Since the computer program stored in the storage medium can execute the steps in any one of the page exception information acquisition methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the page exception information acquisition methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0177] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0178] The above is a detailed introduction to a method, device, computer equipment and storage medium for obtaining page exception information provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the technical scheme and core ideas of the present invention. Ordinary technicians in this field should understand that they can still modify the technical schemes recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical scheme deviate from the scope of the technical schemes of the embodiments of the present invention.

Claims

1. A method for obtaining page abnormality information, characterized in that: include: In a process of displaying a web page, in response to a target parameter transfer operation for the web page, obtaining a target parameter for controlling a web page information printing function transferred in the target parameter transfer operation, wherein the process of displaying the web page includes a web page loading phase and a web page post-loading phase; Determining whether to enable the web page information printing function based on the target parameter; If yes, start the web page information printing function; Based on the web page information printing function, print the page related information of the web page, the page related information including the page display abnormality information of the web page; The step of obtaining, in response to a target parameter transfer operation for the web page, a target parameter for controlling a web page information printing function that is transferred in the target parameter transfer operation comprises: During the web page loading stage, determining the URL address of the web page; if the web page is displayed abnormally, determining the preset parameters for controlling the opening of the web page information printing function; performing the URL parameter passing operation for the web page based on the URL address, adding the preset parameters to the parameters passed by the URL address; obtaining the preset parameters from the parameters passed by the URL address as the target parameters for controlling the web page information printing function; In the post-loading stage of the web page, in response to a display instruction for the console function of the web page, an operation interface corresponding to the console function is displayed; in response to a target parameter transfer instruction input in the operation interface for the web page information printing function, the input target parameter is acquired; In the post-web page loading stage, determining whether the web page information printing function needs to be enabled based on the target parameter includes: passing the target parameter to a global function for controlling the web page information printing function switch; and judging through the global function whether the target parameter is a parameter for enabling the web page information printing function.

2. The method according to claim 1, characterized in that: The web page includes a console function control; The step of displaying an operation interface corresponding to the console function in response to a display instruction for the console function of the web page comprises: generating a display instruction in response to a triggering operation on the console function control; According to the display instruction, the operation interface corresponding to the console function is displayed.

3. The method according to claim 2, characterized in that The method further comprises: If the web page of the web user terminal is displayed abnormally, page indication information of the web page that displays abnormally is obtained, and the web page is loaded in the terminal based on the page indication information, wherein the console function control is displayed in the loaded web page.

4. The method according to claim 1, characterized in that: Before the target parameter for controlling the web page information printing function transmitted in the target parameter transmission operation is obtained in response to the target parameter transmission operation, the method further includes: During the web page loading process, obtaining a global function object for controlling the opening of the web page information printing function; Save the global function object to a preset variable and set the global function object to be empty; The enabling of the web page information printing function includes: The preset variable is assigned to the global function object to enable the web page information printing function.

5. A device for obtaining abnormal page information, characterized in that: include: an acquisition unit, configured to, in response to a target parameter transfer operation for the web page, acquire a target parameter for controlling a web page information printing function transferred in the target parameter transfer operation during a web page display process, wherein the web page display process includes a web page loading phase and a web page post-loading phase; A determination unit, configured to determine whether the webpage information printing function needs to be enabled based on the target parameter; An enabling unit, used for enabling the web page information printing function if yes; A printing unit, configured to print page-related information of the web page based on the web page information printing function, wherein the page-related information includes page display abnormality information of the web page; During the web page loading stage, determining the URL address of the web page; if the web page is displayed abnormally, determining the preset parameters for controlling the opening of the web page information printing function; performing the URL parameter passing operation for the web page based on the URL address, adding the preset parameters to the parameters passed by the URL address; obtaining the preset parameters from the parameters passed by the URL address as the target parameters for controlling the web page information printing function; In the post-loading stage of the web page, in response to a display instruction for the console function of the web page, an operation interface corresponding to the console function is displayed; in response to a target parameter transfer instruction input in the operation interface for the web page information printing function, the input target parameter is acquired; In the post-web page loading stage, determining whether the web page information printing function needs to be enabled based on the target parameter includes: passing the target parameter to a global function for controlling the web page information printing function switch; and judging through the global function whether the target parameter is a parameter for enabling the web page information printing function.

6. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps in the method for obtaining page exception information as claimed in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for obtaining page exception information as claimed in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method and device for monitoring exception in page script file

    CN105354126A

  • Page anomaly detection method and device, equipment and storage medium

    CN112130944A