Page display method and device, electronic equipment and storage medium
A technology of electronic equipment and display devices, applied in the computer field, can solve the problem of low efficiency of page display and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 It is a schematic diagram of the page presentation process provided by the embodiment of the present invention, and the process includes the following steps:
[0034] S101: Intercept a page access request, and acquire a first HTML page according to address information included in the page access request.
[0035] In web development, there are various ways to write the front page such as JSP, HTML, FreeMarker, etc. However, these solutions have some disadvantages in web development.
[0036] In the JSP development method, a large number of existing business logic codes will be written in the page during the development process, making the content of the page messy, and it becomes very difficult in the later modification and maintenance process. When a JSP page is executed, it is first converted into a java file (Servlet) and then compiled into a bytecode file, so that the error message actually points to the converted java file (Servlet), not the JSP itself, s...
Embodiment 2
[0053] In order to be able to display the page, on the basis of the above embodiments, in the embodiment of the present invention, the HTML parser can be Jsoup, if the HTML parser is Jsoup, the HTML parser is used to perform the first HTML page Analyzing, obtaining the first page information of the first HTML page includes:
[0054] Using the application program interface API of Jsoup, the first page information of the first HTML page is parsed into a Jsoup object.
[0055] In the embodiment of the present invention, the HTML parser may be Jsoup, which is a Java HTML parser that can directly parse a certain URL address and HTML text content. It provides a set of very labor-saving API, which can fetch and manipulate data through DOM, CSS and operation methods similar to JQuery.
[0056] In order to obtain the first page information of the first HTML page, in the embodiment of the present invention, an HTML parser is used to parse the first HTML page to obtain the first page in...
Embodiment 3
[0075] figure 2 A structural schematic diagram of a page display device provided by an embodiment of the present invention, the device includes:
[0076] The interception module 201 is configured to intercept the page access request, and obtain the first HTML page according to the address information contained in the page access request;
[0077] The analysis module 202 is configured to use an HTML parser to analyze the first HTML page, and obtain the first page information of the first HTML page;
[0078] A modification module 203, configured to modify the first page information according to the received modification instruction to obtain the second page information;
[0079] The display module 204 is configured to use the HTML parser to convert the second page information into a second HTML page and display it.
[0080] Further, the parsing module 202 is specifically configured to use Jsoup application program interface API to parse the first page information of the first...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


