Page generation method and device, electronic equipment and program product
A technology for generating devices and pages, applied in the computer field, can solve problems such as unfavorable maintenance, increased complexity of executable code, inconsistent coding style and coding level of developers, etc., and achieves easy follow-up management, low code complexity, and uniform code style Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] figure 2 is a schematic flowchart of a method for generating a page provided by this application. Among them, such as figure 2 As shown, the page generation method includes:
[0069] Step 201. Responding to a page browsing request triggered by a user, obtain the page source code of the page requested by the page browsing request; wherein, the page source code includes an environment field and a component field.
[0070] Step 202. Determine the translation environment of the page source code according to the environment field in the page source code.
[0071] Step 203 , based on the translation environment, perform translation processing on the component fields in the page source code to obtain the page executable code.
[0072] Step 204: Perform a process of mounting a rendering instance on the page executable code to generate a page corresponding to the page source code.
[0073] In the embodiment of the present application, the page source code involved in the p...
Embodiment 2
[0091] Corresponding to the page generation method of the above embodiment, image 3 A schematic structural diagram of a page generation device provided in the embodiment of the present application, such as image 3 As shown, the page generation device includes: a code acquisition module 310 , a translation module 320 and a page generation module 330 .
[0092] The code obtaining module 310 is used to respond to the page browsing request triggered by the user, and obtain the page source code of the page requested by the page browsing request; wherein, the page source code includes an environment field and a component field;
[0093] The translation module 320 is used to determine the translation environment of the page source code according to the environment field in the page source code; based on the translation environment, the component fields in the page source code are translated to obtain the page executable code;
[0094] The page generation module 330 is configured to ...
Embodiment 3
[0110] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the embodiment of the present invention also provides an electronic device 500, including: a memory 501, a processor 502, and a computer program.
[0111] Wherein, the computer program is stored in the memory 501 and is configured to be executed by the processor 502 to implement the page generation method provided by any embodiment of the present invention. Relevant descriptions can be understood by referring to the relevant descriptions and effects corresponding to the steps in the accompanying drawings, and details are not repeated here.
[0112] Wherein, in this embodiment, the memory 501 and the processor 502 are connected through a bus.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


