CN112596708A - Webpage generating method and device, computer equipment and storage medium - Google Patents
Webpage generating method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112596708A CN112596708A CN202011486457.XA CN202011486457A CN112596708A CN 112596708 A CN112596708 A CN 112596708A CN 202011486457 A CN202011486457 A CN 202011486457A CN 112596708 A CN112596708 A CN 112596708A
- Authority
- CN
- China
- Prior art keywords
- data
- database
- basic database
- information
- webpage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000009877 rendering Methods 0.000 claims abstract description 106
- 230000004048 modification Effects 0.000 claims description 31
- 238000012986 modification Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 26
- 238000012827 research and development Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 230000002829 reductive effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Abstract
The present application relates to the field of research and development management of web page configuration, and in particular, to a method and an apparatus for generating a web page, a computer device, and a storage medium. The method comprises the steps of obtaining a page creating request, and searching a basic database corresponding to the page creating request; acquiring a data module in a basic database and modifiable data information corresponding to the basic database; according to the data module and the modifiable data information, carrying out database configuration in a basic database; and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, and generating and feeding back webpage generation data, wherein the webpage generation data are used for generating the webpage through dynamic rendering at a request end corresponding to the webpage creation request. When different modifiable data requirements are met, different database configurations are needed in the basic database, and the processing efficiency of processing similar business data from different sources to generate corresponding webpage pages can be effectively improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a web page, a computer device, and a storage medium.
Background
With the development of computer technology and software technology, the technology of developing web page technology is becoming different day by day, and page rendering is an important component of front-end web page development, and page rendering refers to the steps of constructing a rendering tree by a browser, performing position calculation, style calculation and the like on each element, and then rendering a page according to the rendering tree. And generating a visual front-end webpage.
When similar service data of different sources are processed to be published to a front-end page, different web pages are required to be generated for processing aiming at different service data, and if each source generates a page of the source, the workload is large, and the processing efficiency is influenced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for generating a web page, which can improve page generation efficiency.
A method of web page generation, the method comprising:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in the basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in the basic database;
and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back page generation data to the request terminal, wherein the page generation data is used for generating the webpage at the request terminal through dynamic rendering.
In one embodiment, the acquiring the data module in the basic database and the modifiable data information corresponding to the basic database includes:
reading a corresponding data table in the basic database through a preset data interface;
determining a data module in the basic database based on the data of the data table;
and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
In one embodiment, the dynamically rendering and configuring a preset original webpage according to a basic database configured by a database, and generating and feeding back page generation data includes:
acquiring a data processing mode of modifiable data corresponding to the modifiable data information;
searching a rendering mode according to the data processing mode;
dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and the rendering mode, and generating page generation data;
and feeding back the page generation data.
In one embodiment, the dynamically rendering and configuring a preset original webpage according to a basic database configured by a database and the rendering manner, and generating page generation data includes:
acquiring page layout information corresponding to each content display plug-in unit in the to-be-generated webpage in the preset original webpage;
according to a basic database after database configuration and the rendering mode, dynamically rendering and configuring the attribute information of the content display plug-in to generate plug-in configuration information;
and acquiring page generation data according to the page layout information and the plug-in configuration information.
In one embodiment, the dynamically rendering and configuring the attribute information of the content display plug-in according to the basic database after the database configuration and the rendering manner, and generating the plug-in configuration information includes:
generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration;
and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification modes according to the rendering modes.
In one embodiment, after the dynamically rendering and configuring the preset original webpage according to the basic database configured by the database, and generating and feeding back the page generation data, the method further includes:
acquiring data adjustment information fed back by the request terminal according to the webpage generated by the dynamic rendering;
modifying the modifiable data information according to the data adjustment information;
and saving the modified data information after modification.
An apparatus for generating a web page, the apparatus comprising:
the request acquisition module is used for acquiring a page creation request sent by a request terminal and searching a basic database corresponding to the page creation request;
the information acquisition module is used for acquiring the data module in the basic database and the modifiable data information corresponding to the basic database;
the database configuration module is used for configuring a database in the basic database according to the data module and the modifiable data information;
and the page data feedback module is used for performing dynamic rendering configuration on a preset original webpage according to a basic database after the database configuration, generating and feeding back page generation data to the request end, wherein the page generation data is used for generating a webpage at the request end through dynamic rendering.
In one embodiment, the information obtaining module is specifically configured to: reading a corresponding data table in the basic database through a preset data interface; determining a data module in the basic database based on the data of the data table; and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in the basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in the basic database;
and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back page generation data to the request terminal, wherein the page generation data is used for generating the webpage at the request terminal through dynamic rendering.
A computer storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in the basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in the basic database;
and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back page generation data to the request terminal, wherein the page generation data is used for generating the webpage at the request terminal through dynamic rendering.
According to the webpage generating method, the webpage generating device, the computer equipment and the storage medium, in the webpage generating process, the corresponding basic database is searched according to the webpage creating request, then the basic database is configured by acquiring the data module in the basic database and the modifiable data information corresponding to the basic database, and further the webpage is generated through dynamic rendering.
Drawings
FIG. 1 is a diagram of an application scenario of a method for generating a web page in one embodiment;
FIG. 2 is a flowchart illustrating a method for generating a web page in one embodiment;
FIG. 3 is a schematic sub-flow chart of step 203 of FIG. 2 in one embodiment;
FIG. 4 is a schematic sub-flow chart of step 207 of FIG. 2 in one embodiment;
FIG. 5 is a schematic sub-flow chart of step 405 of FIG. 4 in one embodiment;
FIG. 6 is a flowchart of the step of modifying modifiable data information in one embodiment;
FIG. 7 is a block diagram showing the structure of a web page generating apparatus according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The webpage generating method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 communicates with the web page generation server 104 via a network. When a user needs to efficiently generate a corresponding web page through the web page generation server 104, a corresponding page creation request may be submitted to the web page generation server 104 through the terminal 102. The webpage generation server 104 acquires a page creation request sent by the terminal 102, and searches a basic database corresponding to the page creation request; acquiring a data module in a basic database and modifiable data information corresponding to the basic database; according to the data module and the modifiable data information, carrying out database configuration in a basic database; the method comprises the steps of dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating webpage generation data, feeding the webpage generation data back to the terminal 102, and generating a corresponding webpage through dynamic rendering in a browser application of the terminal by the terminal 102 according to the webpage generation data. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the web page generation server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for generating a web page is provided, which is described by taking the method as an example applied to the web page generating server 104 in fig. 1, and includes the following steps:
The page creation request refers to a request for requesting the web page generation server 104 to create a dedicated service web interface, and the basic database refers to a data source used for creating a web page.
Specifically, the webpage generating method in the present application is specifically adapted to drop data in each basic database into a corresponding business webpage by searching each basic database corresponding to the page creation request, so as to perform subsequent business processing. In one embodiment, the page generation method of the present application is specifically used for creating mortgage house data pages in house mortgage loans, and at this time, each basic database may specifically refer to a house information database inside a housing administration. And the service system of the house mortgage calls an interface provided by the administration office in an interface calling mode to obtain the registration data of the administration office and store the data into the service system. The data in the bureau of each city is similar to the data in the required modification field, but the data are different, so the corresponding data can be configured according to the city. The house information data of one city is used as one basic database, and the house information data of another city is used as another basic database, and although the data in different basic databases are partially different, the general contents are similar. Therefore, partial data in the data can be adjusted through the configuration operation of the database of the method, the corresponding webpage is generated through rendering, and a unique page does not need to be generated for one database, so that the efficiency of generating the page is improved.
The data module specifically includes data such as a house area, a cell where a house is located, a floor where the house is located, a house age, and the like, and the modifiable data refers to data type information that can be modified in a web page after a corresponding web page is generated according to existing data in the basic database.
Specifically, after the basic database is found, a data module corresponding to the to-be-generated web page currently existing in the basic database may be further determined, and the data module may be determined according to a data table for storing data in the basic database. While determining which of the data types stored in the underlying database belong to modifiable data. In one embodiment, the modifiable data information may be set by a worker at the terminal 102 according to actual service requirements, and then the set data may be sent to the web page generation server 104. In another embodiment, the modifiable data information corresponding to each basic database may be preset at the web page generation server 104, and when a web page needs to be generated, the information may be directly searched, so as to determine the modifiable data information corresponding to the basic database.
The database configuration is particularly laid down in the subsequent dynamic rendering configuration process of the page, and the purpose of the database configuration is mainly to perform corresponding configuration on corresponding types of data in the database before dynamic rendering so as to enable the corresponding configuration to be in line with corresponding component configuration for data processing in the dynamic rendering configuration process, and further, when a basic database is newly added, development of the corresponding service webpage can be performed only by adjusting a data module and modifying the setting of the data through the database configuration. Therefore, the development time of new database access is reduced, and the development efficiency is improved.
And step 207, performing dynamic rendering configuration on a preset original webpage according to the basic database after the database configuration, generating and feeding back page generation data to the request end, wherein the page generation data is used for generating the webpage at the request end through dynamic rendering.
The preset original webpage page is similar to a common webpage template and comprises a part of initial setting information, and the webpage rendering configuration is a process for configuring webpage generation data. The page rendering refers to a process of drawing a corresponding webpage on a browser page by a processing core of the webpage browser according to corresponding webpage generation data.
Specifically, after the database configuration is performed, the page generation data required for creating the webpage suitable for the service can be directly generated by performing dynamic rendering configuration according to the basic database data after the database configuration. The application provides a set of unified data processing mode, and dynamic rendering is carried out to the page, and the data processing page that different city house administration needs is generated automatically. The expansibility of the system is improved, and different service scene requirements are met.
According to the webpage generating method, the basic database corresponding to the webpage creating request is searched by acquiring the webpage creating request; acquiring a data module in a basic database and modifiable data information corresponding to the basic database; according to the data module and the modifiable data information, carrying out database configuration in a basic database; and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, and generating and feeding back webpage generation data, wherein the webpage generation data are used for generating the webpage through dynamic rendering at a request end corresponding to the webpage creation request. According to the method and the device, in the generation process of the webpage, the corresponding basic database is searched according to the page creation request, then the basic database is configured by acquiring the data module in the basic database and the modifiable data information corresponding to the basic database, and then the webpage is generated through dynamic rendering.
In one embodiment, shown in FIG. 3, step 203 comprises:
The preset data interface is a corresponding data interface connected with the basic database, and can be linked to a data table of the basic database from the interface and acquire various basic data for generating a webpage from the data table. The data tables may correspond to data modules, and the web page generation server 104 may rate the corresponding data modules based on the data tables in the base database and determine various items of data within the data modules based on the data in the data tables. And the data type identification instruction is an instruction for distinguishing between modifiable data and unavailable data. Specifically, prior to web page creation, the page creation requester may specify which data in the underlying database is modifiable data and which data is non-modifiable read-only data. And the instruction for specifying the data type is a data type identification instruction. The instruction may be specifically included in a page creation request sent by a request end, or may be a pre-stored instruction, and after the data table in the corresponding basic database is read through a preset data interface, the instruction may be executed to determine modifiable data and non-modifiable data. In a specific embodiment, the webpage page generation method of the present application is specifically used for creating a mortgage house data page in a house mortgage loan, and at this time, the modifiable data corresponds to a mortgage field of a house, and specifically may include mortgage information, a mortgage address, a building area, a mortgage value, a service validity period, a creditor date, and the like.
Specifically, in the process of determining the data module, after the basic database is determined, the preset data interface corresponding to the basic database may be searched correspondingly, the preset data interface is linked to the data table in the basic database, and the data module corresponding to the basic database is determined by reading data of the data table. Meanwhile, a corresponding data type identification instruction can be obtained, and modifiable data information in the basic database can be determined according to the data type identification instruction. In a specific embodiment, because the data in each basic database of the solution pair are approximately similar and have only small differences, the template of the data module can be established in advance, and then the template is adjusted correspondingly according to the data in the data table, thereby improving the determination efficiency of the data module. In this embodiment, the data table in the corresponding basic database is read through the preset data interface, so as to determine the corresponding data module, and meanwhile, the modifiable data information is determined through the data type identification instruction, so that the basic data acquisition and setting efficiency in the webpage generation process can be effectively improved. And further improve the webpage generation efficiency.
In one embodiment, as shown in FIG. 4, step 207 comprises:
And step 403, searching a rendering mode according to the data processing mode.
And 405, dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and a rendering mode, and generating page generation data.
The data processing mode specifically refers to a modification mode for modifying modifiable data information, such as directly filling new data for modification, and providing a corresponding modification control to improve data modification efficiency. And different data processing modes correspond to different rendering modes, so that the rendering mode can be searched according to the data processing mode. And then, dynamically rendering and configuring a preset original webpage according to the basic database after the database is configured and the rendering mode, so as to generate page generation data.
Specifically, different types of modifiable data information correspond to different data processing modes, for example, different methods such as inputting pull-down date may be required to be provided by the page to modify the data information related to the date data. Therefore, for each type of modified data, a corresponding data processing mode needs to be acquired, so that a rendering mode corresponding to the data processing mode is searched. Then, based on the data in the basic database and the determined rendering mode, corresponding dynamic rendering configuration is performed to generate corresponding page generation data at the web page generation server 104. In the present embodiment, the data processing manner of the modifiable data is determined by the modifiable data information. Then, the webpage rendering mode is inquired, and then the corresponding webpage rendering is carried out, so that the effectiveness of webpage rendering configuration can be effectively ensured. The generation efficiency of the webpage is improved.
In one embodiment, as shown in fig. 5, step 405 specifically includes:
And step 504, dynamically rendering and configuring the attribute information of the content display plug-in according to the basic database after the database configuration and the rendering mode, and generating plug-in configuration information.
The content display plug-in is a plug-in for displaying webpage content, and data in the basic database can be displayed on the webpage through the content display plug-in. The page layout information refers to the form in which the content display plug-ins are correspondingly placed on the preset original webpage. The content display plug-ins can be correspondingly configured through dynamic rendering configuration, so that the content display plug-ins can show the display effect required to be achieved.
Specifically, the preset original webpage page includes initial content display plug-ins and page layout information corresponding to the plug-ins. When generating webpage generation data, the association relationship between each item of data in the basic database and each content display plug-in the preset original webpage needs to be established, then the attribute information of the content display plug-in can be dynamically rendered and configured according to the association relationship and the rendering mode corresponding to each item of data, plug-in configuration information is generated, and after the page layout information and the plug-in configuration information are obtained, the corresponding page generation data can be directly obtained. The page generation data may be used to render on a browser of the terminal 102, directly generate and display a web page configured based on the page layout information and the plug-in configuration information, and import various data in the basic database into the web page. In this embodiment, the webpage generation data is acquired based on the page layout information and the plug-in configuration information, so that it can be effectively ensured that the corresponding webpage can be effectively generated on the terminal 102, and the generation efficiency of the webpage is improved.
In one embodiment, step 504 specifically includes: and generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration, and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification mode according to the rendering mode.
The modification attribute specifically comprises modifiable and non-modifiable, and the configuration information of the plug-in corresponding to the modifiable and non-modifiable is different, for the data of the modifiable type, the plug-in can be configured to configure a corresponding modification plug-in for modifying the webpage content, and for the data of the non-modifiable type, the data can be displayed by adopting a content display frame of a read-only type. Specifically, the plug-in configuration information to be set in the content display plug-in the web page includes content information to be displayed, whether the content information can be modified, and by which method the content information can be modified. In this embodiment, the purpose of modifying the whole complete webpage page is achieved by modifying the content display plug-ins in the preset original webpage page. The generation efficiency of the webpage can be effectively improved.
As shown in fig. 6, in one embodiment, after step 506, the method further includes:
The data adjustment information specifically refers to data obtained by modifying data information in a webpage generated by the user on the terminal 104 according to the page generation data. Specifically, after the browser of the terminal 102 dynamically renders and generates the web page according to the page generation data, the staff member on the side of the terminal 102 may modify the corresponding content based on the generated web page, where the generated web page includes part of the read-only data and part of the modifiable data, and the modification is to modify the part of modifiable data. After the modification is completed, the web page generation server 104 may obtain data adjustment information fed back by the terminal 102 according to the web page generated by dynamic rendering, modify the modifiable data information based on the data adjustment information, and store the modifiable data information, so that a corresponding modification trace is retained. In this embodiment, by obtaining the data adjustment information of the request end, modifying and storing the modifiable data information, the trace of modification of the data by the terminal 102 can be effectively reserved.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a web page generation apparatus including:
the request obtaining module 702 is configured to obtain a page creation request sent by a request end, and search a basic database corresponding to the page creation request.
The information obtaining module 704 is configured to obtain the data module in the basic database and the modifiable data information corresponding to the basic database.
The database configuration module 706 is configured to perform database configuration in the basic database according to the data module and the modifiable data information.
A page data feedback module 708, configured to read a data table in a corresponding basic database through a preset data interface; determining a data module in a basic database based on the data of the data table; and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
In one embodiment, the information obtaining module 704 is specifically configured to: reading a data table in a corresponding basic database through a preset data interface; determining a data module and various data in the data module based on the data of the data table; and acquiring a data type identification instruction, and determining modifiable data information in the basic database according to the data type identification instruction.
In one embodiment, the page data feedback module 708 is specifically configured to: acquiring a data processing mode of modifiable data corresponding to the modifiable data information; searching a rendering mode according to the data processing mode; dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and a rendering mode, and generating page generation data; the feedback page generates data.
In one embodiment, the page data feedback module 708 is further configured to: acquiring page layout information corresponding to each content display plug-in unit in a to-be-generated webpage in a preset original webpage; dynamically rendering and configuring the attribute information of the content display plug-in according to the basic database and the rendering mode after the database configuration to generate plug-in configuration information; and acquiring page generation data according to the page layout information and the plug-in configuration information.
In one embodiment, the page data feedback module 708 is further configured to: and generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration, and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification mode according to the rendering mode.
In one embodiment, the data modification module is further included to: acquiring data adjustment information fed back by a request terminal according to a webpage generated by dynamic rendering; modifying the modifiable data information according to the data adjustment information; and saving the modified data information after modification.
For specific limitations of the web page generation apparatus, reference may be made to the above limitations of the web page generation method, which is not described herein again. The modules in the web page generating device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing webpage page generation data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a web page generation method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in a basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in a basic database;
dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back webpage generation data to a request end, wherein the webpage generation data are used for generating a webpage page at the request end through dynamic rendering
In one embodiment, the processor, when executing the computer program, further performs the steps of: reading a data table in a corresponding basic database through a preset data interface; determining a data module in a basic database based on the data of the data table; and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a data processing mode of modifiable data corresponding to the modifiable data information; searching a rendering mode according to the data processing mode; dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and a rendering mode, and generating page generation data; the feedback page generates data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring page layout information corresponding to each content display plug-in unit in a to-be-generated webpage in a preset original webpage; dynamically rendering and configuring the attribute information of the content display plug-in according to the basic database and the rendering mode after the database configuration to generate plug-in configuration information; and acquiring page generation data according to the page layout information and the plug-in configuration information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration, and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification mode according to the rendering mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring data adjustment information fed back by a request terminal according to a webpage generated by dynamic rendering; modifying the modifiable data information according to the data adjustment information; and saving the modified data information after modification.
In one embodiment, a computer storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in a basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in a basic database;
dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back webpage generation data to a request end, wherein the webpage generation data are used for generating a webpage page at the request end through dynamic rendering
In one embodiment, the computer program when executed by the processor further performs the steps of: reading a data table in a corresponding basic database through a preset data interface; determining a data module in a basic database based on the data of the data table; and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a data processing mode of modifiable data corresponding to the modifiable data information; searching a rendering mode according to the data processing mode; dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and a rendering mode, and generating page generation data; the feedback page generates data.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring page layout information corresponding to each content display plug-in unit in a to-be-generated webpage in a preset original webpage; dynamically rendering and configuring the attribute information of the content display plug-in according to the basic database and the rendering mode after the database configuration to generate plug-in configuration information; and acquiring page generation data according to the page layout information and the plug-in configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: and generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration, and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification mode according to the rendering mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring data adjustment information fed back by a request terminal according to a webpage generated by dynamic rendering; modifying the modifiable data information according to the data adjustment information; and saving the modified data information after modification.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of web page generation, the method comprising:
acquiring a page creation request sent by a request terminal, and searching a basic database corresponding to the page creation request;
acquiring a data module in the basic database and modifiable data information corresponding to the basic database;
according to the data module and the modifiable data information, carrying out database configuration in the basic database;
and dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured, generating and feeding back page generation data to the request terminal, wherein the page generation data is used for generating the webpage at the request terminal through dynamic rendering.
2. The method of claim 1, wherein the obtaining the data modules in the base database and the modifiable data information corresponding to the base database comprises:
reading a corresponding data table in the basic database through a preset data interface;
determining a data module in the basic database based on the data of the data table;
and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
3. The method according to claim 1, wherein the dynamic rendering configuration is performed on the preset original webpage according to the configured basic database of the database, and the generating and feeding back the page generation data comprises:
acquiring a data processing mode of modifiable data corresponding to the modifiable data information;
searching a rendering mode according to the data processing mode;
dynamically rendering and configuring a preset original webpage according to a basic database after the database is configured and the rendering mode, and generating page generation data;
and feeding back the page generation data.
4. The method according to claim 3, wherein the dynamically rendering and configuring the preset original webpage according to the configured basic database and the rendering mode, and generating the page generation data comprises:
acquiring page layout information corresponding to each content display plug-in unit in the to-be-generated webpage in the preset original webpage;
according to a basic database after database configuration and the rendering mode, dynamically rendering and configuring the attribute information of the content display plug-in to generate plug-in configuration information;
and acquiring page generation data according to the page layout information and the plug-in configuration information.
5. The method according to claim 4, wherein the dynamically rendering and configuring the attribute information of the content presentation plug-in according to the configured basic database and the rendering manner of the database, and generating plug-in configuration information comprises:
generating plug-in configuration information corresponding to the display information in the content display plug-in according to the basic database after the database configuration;
and generating modification attributes in the content display plug-in and plug-in configuration information corresponding to the modification modes according to the rendering modes.
6. The method according to claim 1, wherein after dynamically rendering and configuring the preset original webpage according to the configured basic database of the database, and generating and feeding back the page generation data, the method further comprises:
acquiring data adjustment information fed back by the request terminal according to the webpage generated by the dynamic rendering;
modifying the modifiable data information according to the data adjustment information;
and saving the modified data information after modification.
7. An apparatus for generating a web page, the apparatus comprising:
the request acquisition module is used for acquiring a page creation request sent by a request terminal and searching a basic database corresponding to the page creation request;
the information acquisition module is used for acquiring the data module in the basic database and the modifiable data information corresponding to the basic database;
the database configuration module is used for configuring a database in the basic database according to the data module and the modifiable data information;
and the page data feedback module is used for performing dynamic rendering configuration on a preset original webpage according to a basic database after the database configuration, generating and feeding back page generation data to the request end, wherein the page generation data is used for generating a webpage at the request end through dynamic rendering.
8. The apparatus of claim 7, wherein the information acquisition module is specifically configured to: reading a corresponding data table in the basic database through a preset data interface; determining a data module in the basic database based on the data of the data table; and acquiring a data type identification instruction, traversing the data table according to the data type identification instruction, and determining modifiable data information in the basic database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011486457.XA CN112596708A (en) | 2020-12-16 | 2020-12-16 | Webpage generating method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011486457.XA CN112596708A (en) | 2020-12-16 | 2020-12-16 | Webpage generating method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112596708A true CN112596708A (en) | 2021-04-02 |
Family
ID=75196303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011486457.XA Pending CN112596708A (en) | 2020-12-16 | 2020-12-16 | Webpage generating method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112596708A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112926010A (en) * | 2021-04-09 | 2021-06-08 | 上海臣星软件技术有限公司 | Web page generation method and device, electronic equipment and computer storage medium |
CN113138763A (en) * | 2021-04-14 | 2021-07-20 | 招商银行股份有限公司 | Page construction method, device, equipment and computer readable storage medium |
CN113609246A (en) * | 2021-08-04 | 2021-11-05 | 上海犇众信息技术有限公司 | Webpage similarity detection method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160267110A1 (en) * | 2015-03-11 | 2016-09-15 | Siemens Product Lifecycle Management Software Inc. | System and method for providing access to data records |
CN108846087A (en) * | 2018-06-12 | 2018-11-20 | 恒生电子股份有限公司 | A kind of page rendering method, apparatus, terminal and server |
CN109582313A (en) * | 2018-12-14 | 2019-04-05 | 广东亿迅科技有限公司 | Business interface dynamic construction method, device, computer equipment and storage medium |
CN112035207A (en) * | 2020-09-02 | 2020-12-04 | 中国银行股份有限公司 | Page menu dynamic loading method and device based on database |
-
2020
- 2020-12-16 CN CN202011486457.XA patent/CN112596708A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160267110A1 (en) * | 2015-03-11 | 2016-09-15 | Siemens Product Lifecycle Management Software Inc. | System and method for providing access to data records |
CN108846087A (en) * | 2018-06-12 | 2018-11-20 | 恒生电子股份有限公司 | A kind of page rendering method, apparatus, terminal and server |
CN109582313A (en) * | 2018-12-14 | 2019-04-05 | 广东亿迅科技有限公司 | Business interface dynamic construction method, device, computer equipment and storage medium |
CN112035207A (en) * | 2020-09-02 | 2020-12-04 | 中国银行股份有限公司 | Page menu dynamic loading method and device based on database |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112926010A (en) * | 2021-04-09 | 2021-06-08 | 上海臣星软件技术有限公司 | Web page generation method and device, electronic equipment and computer storage medium |
CN113138763A (en) * | 2021-04-14 | 2021-07-20 | 招商银行股份有限公司 | Page construction method, device, equipment and computer readable storage medium |
CN113609246A (en) * | 2021-08-04 | 2021-11-05 | 上海犇众信息技术有限公司 | Webpage similarity detection method and system |
CN113609246B (en) * | 2021-08-04 | 2024-04-12 | 奇安盘古(上海)信息技术有限公司 | Webpage similarity detection method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112596708A (en) | Webpage generating method and device, computer equipment and storage medium | |
CN111143462B (en) | Method, apparatus, computer device and storage medium for data export | |
CN109558448B (en) | Data processing method, data processing device, computer equipment and storage medium | |
WO2020151333A1 (en) | Page loading method, apparatus, computer device and storage medium | |
CN111563368A (en) | Report generation method and device, computer equipment and storage medium | |
CN108874924B (en) | Method and device for creating search service and computer-readable storage medium | |
CN108388515B (en) | Test data generation method, device, equipment and computer readable storage medium | |
CN108664582B (en) | Enterprise relation query method and device, computer equipment and storage medium | |
CN111061475A (en) | Software code generation method and device, computer equipment and storage medium | |
CN108595681B (en) | Method, device and system for displaying form | |
WO2020258650A1 (en) | Page information display method and apparatus, computer device, and storage medium | |
CN111739136B (en) | Rendering method, computer device, and storage medium | |
CN111309991B (en) | Query statement generation method and device and data query method and system | |
CN112231379A (en) | API (application program interface) auditing method, device, equipment and storage medium based on micro-service architecture | |
CN113076731A (en) | Report file generation method and device, computer equipment and storage medium | |
CN111552903A (en) | Page generation method and device based on HTML (Hypertext markup language) template and computer equipment | |
CN110727777A (en) | Knowledge graph management method and device, computer equipment and storage medium | |
CN112416350A (en) | View page construction method and device, computer equipment and storage medium | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN110321529B (en) | Frame text display method and device, computer equipment and storage medium | |
CN110647350A (en) | Interface document generation method and device, computer equipment and storage medium | |
CN112015378A (en) | Skeleton screen page generation method and device, computer equipment and storage medium | |
WO2022099913A1 (en) | Interface configuration method and apparatus, and device and medium | |
CN109711809B (en) | Merchant attribute setting method and device, computer equipment and storage medium | |
US9779387B2 (en) | Business-to-business document user interface and integration design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |