Method, device and electronic device for opening H5 page
By repairing the static resource file during the H5 page opening process, the problem of page failure caused by static resource file errors is solved, and the function of repairing is realized without entering the page again, improving the user experience.
Patent Information
- Application Number
- CN202110076274.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-20
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-01-20
Smart Images

Figure CN112732363B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method, device and electronic device for opening an H5 page. Background Art
[0002] When opening a web page, such as an H5 page, you need to first download static resource files such as js and css to the electronic device terminal, and then use js resources to request network data and use css resources to layout the page.
[0003] When opening an H5 page, errors may occur in the js, css and other resource files downloaded by the H5 page. The erroneous resources will cause the H5 page to fail to open. Currently, errors in js, css and other resources can only be fixed by hot fixes, but the premise of hot fixes is that the user needs to open and enter the H5 page again. This time, the H5 page cannot be opened normally, and the hot fix process is complicated and takes a long time.
[0004] Application Contents
[0005] The purpose of the embodiments of the present application is to provide a method, device and electronic device for opening an H5 page, which can solve the problem in the prior art that when an abnormality occurs when opening a static resource file of an H5 page, the hot repair relied on needs to open and enter the H5 page again.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for opening an H5 page, the method comprising:
[0008] receiving a first input;
[0009] In response to the first input, download a first static resource file;
[0010] When there is no abnormality in the first static resource file, opening the H5 page according to the first static resource file;
[0011] When an exception occurs in the first static resource file, the first static resource file is repaired to obtain a second static resource file;
[0012] According to the second static resource file, open the H5 page.
[0013] In a second aspect, an embodiment of the present application provides a device for opening an H5 page, the device comprising:
[0014] A first receiving module, configured to receive a first input;
[0015] A response module, configured to download a first static resource file in response to the first input;
[0016] A first opening module, configured to open the H5 page according to the first static resource file when there is no abnormality in the first static resource file;
[0017] A repair module, used for repairing the first static resource file to obtain a second static resource file when an abnormality exists in the first static resource file;
[0018] The second opening module is used to open the H5 page according to the second static resource file.
[0019] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0021] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0022] In the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of static file errors, the error files are repaired first, which can ensure that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair static resource file anomalies in hot repair is solved. The occurrence of user contact with white screen page events is reduced, the user's subsequent operations are guaranteed, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the steps of the method for opening an H5 page in an embodiment of the present application;
[0024] Figure 2 It is a schematic diagram of the principle of secondary packaging resources in an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of a device for opening an H5 page in an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0027] Figure 5 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0030] The following is a detailed description of the method for opening an H5 page provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0031] like Figure 1 As shown, the embodiment of the present application provides a method for opening an H5 page, including:
[0032] Step 101, receiving a first input;
[0033] Step 102, in response to the first input, downloading a first static resource file;
[0034] Step 103: when there is no abnormality in the first static resource file, open the H5 page according to the first static resource file;
[0035] Step 104: When an exception occurs in the first static resource file corresponding to the H5 page, the first static resource file is repaired to obtain a second static resource file;
[0036] Step 105: Open the H5 page according to the second static resource file.
[0037] It should be noted that the first static resource file includes resource files such as js and css. When the first static resource file corresponding to the H5 page is abnormal, the first static resource file can be automatically repaired in the background without the user reopening the H5 page, and the H5 page is opened regardless of whether the repair is successful.
[0038] In the method for opening the H5 page of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of an error in a static file, the error file is repaired first, so that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair the abnormality of the static resource file in hot repair is solved. The occurrence of user contact with the white screen page event is reduced, the user's subsequent operation is guaranteed, and the user experience is improved.
[0039] Optionally, receiving the first input includes:
[0040] Receive input for opening the H5 page; or,
[0041] Receive an input for opening an application corresponding to the H5 page.
[0042] Optionally, when the first input is an input for opening an H5 page, static resource files such as js and css required for opening the H5 page are downloaded, and it is determined whether there is an abnormality in the first static resource file.
[0043] In the method for opening the H5 page of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of an error in a static file, the error file is repaired first, so that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair the abnormality of the static resource file in hot repair is solved. The occurrence of user contact with the white screen page event is reduced, the user's subsequent operation is guaranteed, and the user experience is improved.
[0044] Optionally, when the first input is to open the application corresponding to the H5 page, all static resource files such as js and css in the application are downloaded and tested. If there are errors in the static resource files, the errors in the static resource files are repaired to generate static resource files that can be used normally, thereby ensuring that the H5 page is opened normally and no secondary packaging is required during the process of opening the H5 page.
[0045] In the method for opening the H5 page of the embodiment of the present application, a static resource file is tested when the application corresponding to the H5 page is opened, and an error repair is performed when an abnormality occurs in the static resource file, thereby ensuring that the H5 page is opened normally and that no secondary packaging is required during the opening process.
[0046] Optionally, repairing the first static resource file includes:
[0047] Identify the abnormal type of the first static resource file;
[0048] According to the abnormal type of the first static resource file, the first static resource file is repackaged to generate a second static resource file.
[0049] Optionally, for anomalies of the first static resource file of a type that can be analyzed through the log, secondary packaging is directly performed in the background to generate a second static resource file for opening the H5 page.
[0050] In the method for opening the H5 page of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H5 page are repackaged. In the case of static file errors, the error files are repaired first, which can ensure that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair static resource file anomalies in hot repair is solved. The occurrence of user contact with white screen page events is reduced, the user's subsequent operations are guaranteed, and the user experience is improved.
[0051] Optionally, the exception type of the first static resource file includes at least one of the following:
[0052] The first static resource file uses an incorrect symbol, the first static resource file is an incorrect loop call, the first static resource file has an incorrect memory leak, and the first static resource file has an encoding format error.
[0053] Optionally, for the exception type in which the first static resource file uses an erroneous symbol, the static resource file is repaired by modifying the corresponding erroneous symbol.
[0054] Optionally, for the exception type of the first static resource file being an erroneous loop call, the static resource file is repaired by changing the loop call method.
[0055] Optionally, if the first static resource file is of an abnormal type in which an erroneous memory leak occurs, the static resource file is repaired by modifying the memory leak.
[0056] Optionally, the first static resource file has an abnormal type of encoding format error, and the static resource file is repaired by changing the encoding format, for example, changing the gbk format file using utf8 file encoding to GB2312 encoding format.
[0057] Optionally, the first static resource file also has an exception of an unrecognizable type.
[0058] In the method for opening the H5 page of the embodiment of the present application, by identifying the type of errors in static resource files such as js and css that occur during the opening of the H page, different methods are used to repair different types of exceptions. It can ensure that the H5 page currently opened by the user can be opened normally, and solve the problem of having to enter the page twice to repair the static resource file exception in hot repair. It reduces the occurrence of users contacting white screen pages, ensures the user's subsequent operations, and improves the user experience.
[0059] Optionally, the second packaging of the first static resource file includes:
[0060] Get the exception rule set;
[0061] Matching the exception type in the exception rule set and performing secondary packaging;
[0062] If the data corresponding to the exception type does not exist in the exception rule set, a secondary packaging is performed to add global exception capture;
[0063] The secondary packaging with global exception capture includes: ignoring abnormal data in the first static resource and performing secondary packaging on normal data in the first static resource file.
[0064] In the method for opening the H5 page of the embodiment of the present application, by identifying the type of errors of static resource files such as js and css that appear during the opening of the H page, different methods are used to repair different types of exceptions. For exceptions of unrecognizable types, global exception capture is started, the exception is ignored first, and secondary packaging is performed for normal data. It can ensure that the H5 page currently opened by the user can be opened normally, reducing the occurrence of user contact with white screen page events, ensuring the user's subsequent operations, and improving the user experience.
[0065] It should be noted that the principle of secondary packaging is as follows Figure 2 As shown, the static resource files are packaged twice to generate new static resource files.
[0066] Hardware requirements for secondary packaging: electronic device integrated module packaging machine (webpack) environment (this environment can be integrated through the system's built-in integration, or it can be actively completed by obtaining public network resources through the application); at the same time, by downloading the mobile debugging plug-in (vconsole) to the electronic device, build the operating environment of the js file.
[0067] First, analyze the static resource exception types:
[0068] For example, common exceptions include encoding format errors, uncaught type errors (Uncaught TypeError), and uncaught sort errors (Uncaught RangeError).
[0069] When the exception is an encoding format error, the js file may not run on different electronic devices. For example, the encoding format is changed from GB2312 to UTF-8.
[0070] When user tries to access an undefined variable, it always returns undefined and user cannot get or set any undefined property. In this case, "Uncaught Type Error: Cannot setproperty" message will be thrown.
[0071] When a user opens an H5 page and calls a non-terminating recursive function, an "UncaughtRangeError" message will be thrown.
[0072] For the above three common exceptions, the corresponding exception information is matched in the exception rule set and secondary packaging is performed.
[0073] Optionally, the method for opening the H5 page further includes:
[0074] If there is no data corresponding to the exception type in the exception rule set, the exception type is sent to the server;
[0075] Receiving the updated exception rule set sent by the server;
[0076] The second static resource file is repackaged according to the updated exception rule set. For the exception that does not match the corresponding exception information in the exception rule set, the exception is ignored and the H5 page is opened. The exception resource file is sent to the file provider through the server. After the file provider repairs the resource file, it is re-sent to the server, and the exception rule set is updated to ensure the normal opening of the H5 page next time.
[0077] In the method for opening the H5 page of the embodiment of the present application, the errors of static resource files such as js and css that occur during the opening of the H page are repaired through secondary packaging. For static resources that fail to be secondary packaged, the exception is ignored first, and the H5 page is opened. Restore is performed through the file provider. There is no need to wait for the repaired resources to be republished online, avoiding a complicated repair process and lengthy repair time.
[0078] It should be noted that the execution subject of the method for opening an H5 page provided in the embodiment of the present application may be an H5 page opening device, or a control module in the H5 page opening device for executing the method for opening an H5 page. In the embodiment of the present application, the method for opening an H5 page provided in the embodiment of the present application is described by taking the method for opening an H5 page performed by the H5 page opening device as an example.
[0079] like Figure 3 As shown, the embodiment of the present application also provides a device 300 for opening an H5 page, including:
[0080] A first receiving module 301, configured to receive a first input;
[0081] A response module 302, configured to download a first static resource file in response to the first input;
[0082] A first opening module 303 is used to open the H5 page according to the first static resource file when there is no abnormality in the first static resource file;
[0083] A repair module 304 is used to repair the first static resource file corresponding to the H5 page to obtain a second static resource file when an abnormality exists in the first static resource file corresponding to the H5 page;
[0084] The second opening module 305 is used to open the H5 page according to the second static resource file.
[0085] Optionally, the repair module is further used to:
[0086] Identify the abnormal type of the first static resource file;
[0087] According to the abnormal type of the first static resource file, the first static resource file is repackaged to generate a second static resource file.
[0088] Optionally, the repair module is further used to:
[0089] Get the exception rule set;
[0090] Matching the exception type in the exception rule set and performing secondary packaging;
[0091] If the data corresponding to the exception type does not exist in the exception rule set, a secondary packaging is performed to add global exception capture;
[0092] The secondary packaging with global exception capture includes: ignoring abnormal data in the first static resource and performing secondary packaging on normal data in the first static resource file.
[0093] Optionally, the H5 page opening device further includes:
[0094] A sending module, configured to send the exception type to a server if data corresponding to the exception type does not exist in the exception rule set;
[0095] A second receiving module, configured to receive the updated exception rule set sent by the server;
[0096] The packaging module is used to repackage the second static resource file according to the updated exception rule set.
[0097] The opening device of the H5 page in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0098] The device for opening the H5 page in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0099] The H5 page opening device provided in the embodiment of the present application can achieve Figure 1 In the method embodiment, the various processes implemented by the opening device of the H5 page are not described here to avoid repetition.
[0100] In the H5 page opening device of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of static file errors, the error files are repaired first, which can ensure that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair static resource file anomalies in hot repair is solved. The occurrence of user contact with white screen page events is reduced, the user's subsequent operations are guaranteed, and the user experience is improved.
[0101] Optional, such as Figure 4 As shown, an embodiment of the present application further provides an electronic device 400, including a processor 410, a memory 409, and a program or instruction stored in the memory 409 and executable on the processor 410. When the program or instruction is executed by the processor 410, each process of the above-mentioned H5 page opening method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0102] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0103] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0104] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
[0105] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0106] Wherein, the radio frequency unit 501 is used to receive a first input;
[0107] The processor 510 is configured to download a first static resource file in response to the first input;
[0108] When there is no abnormality in the first static resource file, opening the H5 page according to the first static resource file;
[0109] When an exception occurs in the first static resource file, the first static resource file is repaired to obtain a second static resource file;
[0110] According to the second static resource file, open the H5 page.
[0111] In the electronic device of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of static file errors, the error files are repaired first, which can ensure that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair static resource file anomalies in hot repair is solved. The occurrence of user contact with white screen page events is reduced, the user's subsequent operations are guaranteed, and the user experience is improved.
[0112] Optionally, the radio frequency unit 501 is further configured to receive an input for opening the H5 page; or,
[0113] Receive an input for opening an application corresponding to the H5 page;
[0114] The processor 510 is further configured to identify an abnormal type of the first static resource file;
[0115] According to the abnormal type of the first static resource file, the first static resource file is repackaged to generate a second static resource file;
[0116] In the electronic device of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired. In the case of static file errors, the error files are repaired first, which can ensure that the H5 page currently opened by the user can be opened normally. The problem of having to enter the page twice to repair static resource file anomalies in hot repair is solved. The occurrence of user contact with white screen page events is reduced, the user's subsequent operations are guaranteed, and the user experience is improved.
[0117] The processor 510 is further configured to obtain an exception rule set;
[0118] Matching the exception type in the exception rule set and performing secondary packaging;
[0119] If the data corresponding to the exception type does not exist in the exception rule set, a secondary packaging is performed to add global exception capture;
[0120] The secondary packaging with global exception capture includes: ignoring abnormal data in the first static resource and performing secondary packaging on normal data in the first static resource file.
[0121] In the electronic device of the embodiment of the present application, by identifying the type of errors of static resource files such as js and css that appear during the opening of the H page, different methods are used to repair different types of exceptions. For exceptions of unrecognizable types, global exception capture is started, the exception is ignored first, and secondary packaging is performed. It can ensure that the H5 page currently opened by the user can be opened normally, reducing the occurrence of user contact with white screen page events, ensuring the user's subsequent operations, and improving the user experience.
[0122] The processor 510 is further configured to send the exception type to the server if there is no data corresponding to the exception type in the exception rule set;
[0123] Receiving the updated exception rule set sent by the server;
[0124] The second static resource file is repackaged according to the updated exception rule set.
[0125] In the electronic device of the embodiment of the present application, errors in static resource files such as js and css that occur during the opening of the H page are repaired through secondary packaging. For static resources that fail to be secondary packaged, the exception is ignored first, and the H5 page is opened. Restore is performed through the file provider. There is no need to wait for the repaired resources to be republished online, avoiding complex repair processes and lengthy repair time.
[0126] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned H5 page opening method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0127] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0128] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned H5 page opening method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0129] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0130] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0132] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for opening an H5 page, characterized in that: include: receiving a first input; In response to the first input, download a first static resource file; When there is no abnormality in the first static resource file, opening the H5 page according to the first static resource file; When an exception occurs in the first static resource file, the first static resource file is repaired to obtain a second static resource file; According to the second static resource file, open the H5 page; The repairing of the first static resource file includes: Identify the abnormal type of the first static resource file; According to the abnormal type of the first static resource file, the first static resource file is repackaged to generate a second static resource file; The second packaging of the first static resource file includes: Get the exception rule set; Matching the exception type in the exception rule set and performing secondary packaging; If the data corresponding to the exception type does not exist in the exception rule set, a secondary packaging is performed to add global exception capture; The secondary packaging with global exception capture includes: ignoring abnormal data in the first static resource and performing secondary packaging on normal data in the first static resource file.
2. The method for opening an H5 page according to claim 1, characterized in that: The abnormal type of the first static resource file includes at least one of the following: The first static resource file uses an incorrect symbol, the first static resource file is an incorrect loop call, the first static resource file has an incorrect memory leak, and the first static resource file has an encoding format error.
3. The method for opening an H5 page according to claim 1, characterized in that: The method further comprises: If there is no data corresponding to the exception type in the exception rule set, sending the exception type to the server; Receiving the updated exception rule set sent by the server; The second static resource file is repackaged according to the updated exception rule set.
4. A device for opening an H5 page, characterized in that: include: A first receiving module, configured to receive a first input; A response module, configured to download a first static resource file in response to the first input; A first opening module, configured to open an H5 page according to the first static resource file when there is no abnormality in the first static resource file; A repair module, used for repairing the first static resource file to obtain a second static resource file when an abnormality exists in the first static resource file; A second opening module, used to open the H5 page according to the second static resource file; The repair module is further used for: Identify the abnormal type of the first static resource file; According to the abnormal type of the first static resource file, the first static resource file is repackaged to generate a second static resource file; The repair module is further used for: Get the exception rule set; Matching the exception type in the exception rule set and performing secondary packaging; If the data corresponding to the exception type does not exist in the exception rule set, a secondary packaging is performed to add global exception capture; The secondary packaging with global exception capture includes: ignoring abnormal data in the first static resource and performing secondary packaging on normal data in the first static resource file.
5. The device for opening an H5 page according to claim 4, characterized in that: The device further comprises: A sending module, configured to send the exception type to a server if data corresponding to the exception type does not exist in the exception rule set; A second receiving module, configured to receive the updated exception rule set sent by the server; The packaging module is used to repackage the second static resource file according to the updated exception rule set.
6. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the method for opening an H5 page as described in any one of claims 1 to 3 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for opening an H5 page as described in any one of claims 1 to 3 are implemented.
