[go: up one dir, main page]

CN115268912B - Page generation methods, apparatus, devices and storage media - Google Patents

Page generation methods, apparatus, devices and storage media

Info

Publication number
CN115268912B
CN115268912B CN202210924003.9A CN202210924003A CN115268912B CN 115268912 B CN115268912 B CN 115268912B CN 202210924003 A CN202210924003 A CN 202210924003A CN 115268912 B CN115268912 B CN 115268912B
Authority
CN
China
Prior art keywords
page
page information
terminal
target
request
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.)
Active
Application number
CN202210924003.9A
Other languages
Chinese (zh)
Other versions
CN115268912A (en
Inventor
郭吉宏
康勇
陈灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ninestar Technology Joint Stock Co ltd
Original Assignee
Beijing Ninestar Technology Joint Stock Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Ninestar Technology Joint Stock Co ltd filed Critical Beijing Ninestar Technology Joint Stock Co ltd
Priority to CN202210924003.9A priority Critical patent/CN115268912B/en
Publication of CN115268912A publication Critical patent/CN115268912A/en
Application granted granted Critical
Publication of CN115268912B publication Critical patent/CN115268912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供一种页面生成方法、装置、设备及存储介质。页面生成方法包括:接收来自终端的页面绘制请求,页面绘制请求用于请求目标页面的前端页面信息;在已存储的页面信息中,读取与页面绘制请求对应的前端页面信息;向终端发送前端页面信息,以供终端进行目标页面的绘制;接收来自终端的页面数据请求,页面数据请求用于请求目标页面的后端页面信息;在页面信息中,读取与页面数据请求对应的后端页面信息;向终端发送后端页面信息,以供终端进行目标页面的生成。本申请能够提高页面开发的效率。

This application provides a page generation method, apparatus, device, and storage medium. The page generation method includes: receiving a page drawing request from a terminal, the page drawing request being used to request front-end page information of a target page; reading the front-end page information corresponding to the page drawing request from stored page information; sending the front-end page information to the terminal for the terminal to draw the target page; receiving a page data request from the terminal, the page data request being used to request back-end page information of the target page; reading the back-end page information corresponding to the page data request from the page information; and sending the back-end page information to the terminal for the terminal to generate the target page. This application can improve the efficiency of page development.

Description

Page generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a page.
Background
With the popularization of internet technology, browser/Server (B/S) mode has been advanced into people' S daily lives. The mode takes the browser request and the server responds to the operating mode. Based on the internet, users can access information such as text, data, pictures, animations, video on demand and sound in the server through the browser.
In the related art, in order to facilitate the development of pages in the B/S mode, a developer is assisted in drawing pages by a page designer provided by the intelligent development platform. Specifically, in the page designer, a developer draws a page by dragging a control which can be contained in the page and is provided by the page designer, and then, background logic is developed according to the page. In this way, the page is developed, each page needs to develop the background logic separately, and therefore the page development efficiency is low.
Disclosure of Invention
The application provides a page generation method, a device, equipment and a storage medium, which can improve the efficiency of page development.
The application provides a page generation method, which comprises the steps of receiving a page drawing request from a terminal, wherein the page drawing request is used for requesting front-end page information of a target page, reading the front-end page information corresponding to the page drawing request in the stored page information, sending the front-end page information to the terminal for the terminal to draw the target page, receiving a page data request from the terminal, wherein the page data request is used for requesting back-end page information of the target page, reading the back-end page information corresponding to the page data request in the page information, and sending the back-end page information to the terminal for the terminal to generate the target page.
Optionally, the front-end page information is in a non-hypertext markup language format, and the method comprises the steps of adjusting the format of the front-end page information to a hypertext markup language format to obtain hypertext markup language data, and sending the hypertext markup language data to the terminal.
Optionally, before receiving the page drawing request from the terminal, the method further comprises the steps of analyzing a configuration file to obtain cache data when the terminal is started, wherein the configuration file comprises page information, and loading the cache data into a cache.
Optionally, analyzing the configuration file to obtain the cache data includes analyzing page information in the configuration file to be a JAVA object to obtain the cache data.
Optionally, before the configuration file is parsed to obtain the cache data during starting, the method further comprises the steps of obtaining and storing the configuration file, wherein the configuration file is of a query list type and/or a paging list type, the configuration file of the query list type is used for generating a target page of the list page type, and the configuration file of the paging list type is used for generating a target page of the list page type.
The second aspect of the application provides a page generation method, which comprises the steps of receiving a page generation request from a terminal, wherein the page generation request is used for requesting to generate a target page, reading front-end page information and back-end page information corresponding to the page generation request in stored page information, and sending the front-end page information and the back-end page information to the terminal so as to enable the terminal to generate the target page.
In a third aspect, the present application provides a page generating apparatus, including:
the receiving module is used for receiving a page drawing request from the terminal, wherein the page drawing request is used for requesting a front-end page information surface of a target page, and receiving a page data request from the terminal, and the page data request is used for requesting back-end page information of the target page;
The reading module is used for reading front-end page information corresponding to the page drawing request from the stored page information and reading back-end page information corresponding to the page data request from the page information;
the terminal comprises a sending module, a target page generation module and a target page generation module, wherein the sending module is used for sending front-end page information to the terminal so as to enable the terminal to draw the target page, and sending back-end page information to the terminal so as to enable the terminal to generate the target page.
In a fourth aspect, the present application provides a page generating apparatus, including:
the receiving module is used for receiving a page generation request from the terminal, wherein the page generation request is used for requesting to generate a target page;
the reading module is used for reading front-end page information and back-end page information corresponding to the page generation request from the stored page information;
and the sending module is used for sending the front-end page information and the back-end page information to the terminal so as to enable the terminal to generate the target page.
In a fifth aspect, the present application provides an electronic device comprising a memory, a processor;
A memory for storing executable instructions;
A processor configured to execute executable instructions to implement the page generation method of the first or second aspect.
In a sixth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the page generation method of the first or second aspect when executed by a processor.
In a seventh aspect, the present application provides a computer program product comprising a computer program which when executed implements the page generation method of the first or second aspect.
The page generation method, the device, the equipment and the storage medium provided by the application have the advantages that the page information is stored in the server, the page information comprises front-end page information and back-end page information, the back-end page information comprises the corresponding relation between the front-end page information and the back-end page information, therefore, when a target page based on a B/S mode is generated, a user interacts with the terminal to enable the terminal (or called a client) to send a page drawing request to the server, the server responds to the page drawing request, the front-end page information corresponding to the page drawing request is read from the stored page information to obtain the front-end page information, the server responds to the page data request, the back-end page information corresponding to the page data request is read from the stored page information to obtain the back-end page information, and then the target page is generated based on the obtained front-end page information and the back-end page information. The application can automatically render the front-end page with uniform structure and style without repeated development of the front-end page, and in addition, the development of background logic codes and database interaction codes for each function in the page is not needed, thereby saving labor cost and improving the development efficiency of the page.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram showing interaction between a browser and a server in a B/S mode in the related art;
FIG. 2 is a schematic diagram of a page designer in an intelligent development platform in the related art;
FIG. 3 is an exemplary diagram of a page drawn by a page designer in the related art;
FIG. 4 is a flowchart of a page generating method according to an embodiment of the present application;
FIG. 5 is a flowchart of a page generation method according to another embodiment of the present application;
Fig. 6 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a page generating apparatus according to another embodiment of the present application;
FIG. 8 is a schematic diagram of a server according to an embodiment of the present application;
Fig. 9 is a block diagram illustrating an apparatus for implementing a page generation method according to an exemplary embodiment.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The B/S (Browser/Server) mode is a network structure mode, and the mode concentrates the core part of system function realization on the Server, thereby simplifying the development, maintenance and use of the system. Only one browser, such as Chrome, safari, microsoft Edge, netscape Navigator or Internet Explorer, is installed on the terminal, and a database, such as SQL SERVER, oracle or MYSQL, is installed on the server. The browser performs data interaction with the database through the server.
FIG. 1 is a schematic diagram of browser-server interaction in B/S mode. As shown in fig. 1, when a user accesses a database, after submitting an operation of accessing the database on the browser 11 of the terminal, the browser 11 sends a request, typically an http request, to the server 12, and correspondingly, the server 12 receives the request and responds to the request to obtain data corresponding to the request and sends the data to the browser 11. Server technology such as JSP (Java SERVER PAGES ) or the like may be used when the server 12 processes the request. The database stores data requested by the user, such as web page files, pictures, sounds, etc. When data transmitted to the browser is generally in HTML (hypertext markup language) format, the browser finally displays the data by interpreting and executing the HTML file.
The development of the page in the B/S mode is generally divided into the development of the front-end page, i.e. the page seen by the user when in use, and the development of the background logic for monitoring the change of the front-end page and responding to the operation on the front-end page. When the pages are developed in a traditional mode, each page needs to be drawn independently, and after drawing is completed, each page needs to be matched with the configuration of background logic. Such tedious and inefficient development work can be a significant waste of labor costs.
Thus, in the related art, tools have emerged to assist developers in completing front-end page production, such as page designers in intelligent development platforms as shown in FIG. 2. The developer designs the content needed by the target page in the page designer through controls such as 'new addition', 'save', 'list selection', 'column diagram', and the like, the 'parameter name', 'parameter value', 'parameter description' in fig. 2 appears as a header in the last formed page, and the lower data such as 'name_' helps to form the table content. By way of example, the page drawn through fig. 2 is shown in fig. 3. However, when using similar tools, specialized deployment of the tools is required and the deployment and maintenance costs are high. In addition, by using the method to develop the page, all background logic corresponding to the front-end page needs to be independently developed, so that the labor cost is high and the development efficiency is low. The generation efficiency of the front page is also limited by the tool used and the modified pages cannot be replicated in batches.
In order to solve the above problems, the present application provides a method, an apparatus, a device, and a storage medium for generating a page, where the page information includes front-end page information capable of drawing a page and back-end page information capable of generating background logic by caching the page information in a server, so that after receiving a page request (including, for example, a page drawing request and a page data request, or a page generation request) from a terminal, a target page is automatically generated based on the page generation logic provided by the present application, thereby improving the development efficiency of the page and reducing the development cost of the page.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 4 is a flowchart of a page generating method according to an embodiment of the present application. Referring to fig. 4, the page generation method includes:
s401, receiving a page drawing request from a terminal.
The page drawing request is used for requesting front page information of the target page. The target page may be a web page, for example.
When the user wants to obtain the target page, the user inputs a target page request on the browser of the terminal, and the terminal sends a page drawing request to the server based on the request.
S402, reading front-end page information corresponding to the page drawing request from the stored page information.
The page information is already cached in the server before the server receives the page draw request. Specifically, the page information may include, but is not limited to, front-end page information, back-end page information, and the back-end page information may include, but is not limited to, a correspondence between the front-end page information and the back-end page information.
And after the server receives the page drawing request, reading front-end page information from the cache.
S403, sending front-end page information to the terminal so that the terminal can draw the target page.
Correspondingly, the terminal receives the front-end page information and draws the target page according to the front-end page information.
It should be noted that the target page obtained at this time only satisfies the requirement of the target page in appearance, but cannot be used. To obtain a complete usable page, background logic configuration is also required for the drawn target page. Therefore, the terminal also requests back-end page information for configuring the back-end logic of the target page from the server. Specifically, the terminal sends a page data request to the server, wherein the page data request is used for requesting back-end page information of the target page. The back-end page information contains background logic corresponding to the drawn target page.
S404, receiving a page data request from the terminal.
S405, the back-end page information corresponding to the page data request is read in the page information.
And after receiving the page data request, the server reads back-end page information from the cache of the server. Optionally, the read back-end page information can be subjected to logical operations such as adding, deleting, checking and the like.
S406, sending back-end page information to the terminal so that the terminal can generate a target page.
Correspondingly, the terminal receives the back-end page information, binds the obtained back-end page information and front-end page information according to the corresponding relation between the back-end page information and the front-end page information contained in the back-end page information, and generates a target page.
The page generation method provided by the embodiment of the application has the advantages that the page information is stored in the server, the page information comprises front-end page information and back-end page information, the back-end page information comprises the corresponding relation between the front-end page information and the back-end page information, therefore, when a target page based on a B/S mode is generated, a user interacts with the terminal to enable the terminal to send a page drawing request to the server, the server responds to the page drawing request, reads the front-end page information corresponding to the page drawing request from the stored page information to obtain the front-end page information, sends a page data request to the server, reads the back-end page information corresponding to the page data request from the stored page information to obtain the back-end page information, and then generates the target page based on the obtained front-end page information and the back-end page information. The application can automatically render the front-end page with uniform structure and style without repeated development of the front-end page, and in addition, the development of background logic codes and database interaction codes for each function in the page is not needed, thereby saving labor cost and improving the development efficiency of the page.
On the basis, after the terminal receives the back-end page information, the back-end page information is stored in the terminal in the form of a document. Thus, in some embodiments, the target page that has been generated may also be modified. Specifically, some function buttons such as save, delete, import, export and submit approval exist on the generated target page. The background logic of the function buttons is dynamically generated according to page information, and code development of the background logic is not needed. The function buttons can be used for adding, deleting or modifying the back-end page information stored in the terminal, and when the addition, deletion or modification of the back-end page information is completed, the modification of the corresponding target page is automatically completed, namely, the background logic processing and the interaction with the database in the server are automatically completed. The development work of background logic codes and database interaction codes is not needed for each function, and the labor cost is saved.
In some embodiments, the front-end page information is in a non-hypertext markup language format. In this case, step S403 includes adjusting the format of the front-end page information to a HTML format to obtain HTML data, and transmitting the HTML data to the terminal.
Hypertext markup language, also known as HTML, is a markup language. It may be descriptive of text, graphics, animation, sound, forms, links, etc. In this embodiment, the original format of the front-end page information may be a JAVA object, which cannot be directly used to draw the target page. Therefore, the front page information in the JAVA object format is parsed into the front page information in the HTML format, and then the server can read the front page information in the HTML format to draw the target page.
Optionally, before receiving the page drawing request from the terminal, generating page information, wherein the page information generating process includes that, when starting, a configuration file is analyzed to obtain cache data, the configuration file includes the page information, and the cache data is loaded into a cache.
A configuration file may provide a unified page configuration scheme for pages of similar structure, and the configuration file may be generated using various formats, such as XML, excel, YML, TXT. The configuration files in the formats are generated independently of a designated editor or platform, and are supported to be configured on various text editors. For example, the text editor used in generating the XML formatted configuration file may be a Notepad, VSCode, IDEA, or notepad++. The cost of deployment and maintenance of the development platform is saved.
In some embodiments, parsing the configuration file to obtain cached data includes parsing page information in the configuration file into JAVA objects to obtain cached data. When the system is started, the configuration files in the formats are loaded into a system cache in a Java mode through JAXB (Java Architecture for XML Binding) technology, namely the configuration files are analyzed into Java objects to be cached in a server.
The JAXB can serialize a JAVA object into XML and reverse operation, parse XML into JAVA object.
Optionally, before the configuration file is parsed to obtain the cached data at the time of starting, the method further comprises the step of obtaining and storing the configuration file. The configuration file is of a query list type and/or a paging list type, the configuration file of the query list type is used for generating a target page of the list page type, and the configuration file of the paging list type is used for generating a target page of the list page type.
The configuration files can be XML-format files, and the configuration files in the XML format are generally divided into two types, namely a query list type and a paging list type, wherein the configuration files in the query list type are used for generating a target page in the list page type, and the target page in the list page type refers to a target page capable of detecting a plurality of pieces of data at one time. The target page of the list page type generally includes a query area and a list data area when displayed. The configuration file of the form type is used for generating a target page of the form page type, and the target page of the form page type refers to a target page for displaying one piece of data. Generally, two types of files, namely a query list and a paging list, exist in the configuration file at the same time.
For example, the following table 1 is an exemplary table of a query list type configuration file provided in this embodiment, and element nodes in table 1, for example, "pages", may also be called tags, where the element nodes cover all functions of a target page, for example, a table tag in a page is used to define a relationship between a page and a database, and a title in a page is used to make a page. In addition, the functionality can be dynamically extended by defining new element nodes.
Table 1 example table of profiles for query list types
Table 2 below is an exemplary table of the configuration file of the page list type provided in this embodiment. Similar to Table 1, the element nodes in Table 2, e.g., "pages", may also be referred to as tags, cover all functions of the target page, e.g., table tags in pages are used to define page-to-database relationships and titles in pages are used to make pages. In addition, the functionality can be dynamically extended by defining new element nodes. The labels can be divided into form labels and list labels, the labels in table 2 are form labels, the labels in table 1 are list labels, and the labels form a target page. Illustratively, the query area is comprised of form tags and the list data area is comprised of list tags. The intersection of the partial tags may be found to exist in both table 1 and table 2.
Table 2 example configuration file table of paging list type
Fig. 5 is a flowchart of a page generating method according to another embodiment of the present application. As shown in fig. 5, the page generation method includes:
s501, receiving a page generation request from a terminal.
And when the terminal needs to generate the target page, sending a page generation request to a server. The page generation request is for requesting generation of a target page.
S502, reading front-end page information and back-end page information corresponding to the page generation request from the stored page information.
The page information is stored in the server before receiving the page generation request from the terminal, and the page information comprises front-end page information for drawing the target page and back-end page information of background logic for generating the target page. In addition, in some embodiments, the back-end page information further includes a correspondence between the front-end page information and the back-end page information, where the correspondence between the front-end page information and the back-end page information enables the background logic to bind with the drawn target page.
S503, sending front end page information and back end page information to the terminal for the terminal to generate a target page.
In some embodiments, the front page information needs to be converted to HTML format to be readable by the terminal and rendered into the target page. And the back-end page information can form a document and is stored in the terminal, and the back-end page information and the drawn target page can be bound to generate a complete target page.
It can be understood that the specific generation process of the page information in the page generation method shown in fig. 4 is also applicable to the page generation method shown in fig. 5, and will not be described herein.
According to the page generation method, since the page information is stored in the server, the page information comprises front-end page information and back-end page information, and the back-end page information comprises a corresponding relation between the front-end page information and the back-end page information. Therefore, when the terminal wants to generate the target page, the page generation request can be directly transmitted to obtain the page information, and then the target page is generated based on the obtained page information. By developing the page by the method, the development efficiency of the page can be improved.
In summary, the present application has at least the following advantages:
1. a unified page configuration scheme is provided for the target pages with similar structures;
2. The configuration on the common text editor is supported without depending on a designated editor or platform in the process of generating the target page, so that the cost of deployment and maintenance of a development platform is saved;
3. And when the program runs, automatically generating a target page with uniform structure and style according to the configuration file. Repeated page development work is not required.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present application. The embodiment of the application provides a page generation device. As shown in fig. 6, the page generating apparatus 60 includes a receiving module 601, a reading module 602, and a transmitting module 603. Wherein:
The receiving module 601 is configured to receive a page drawing request from a terminal, where the page drawing request is used to request front-end page information of a target page, and receive a page data request from the terminal, where the page data request is used to request back-end page information of the target page.
The reading module 602 is configured to read front-end page information corresponding to a page drawing request from stored page information, and read back-end page information corresponding to a page data request from the page information.
The sending module 603 is configured to send front-end page information to the terminal for the terminal to draw a target page, and send back-end page information to the terminal for the terminal to generate the target page.
Optionally, the front-end page information is in a non-hypertext markup language format, and the sending module 803 is specifically configured to adjust the format of the front-end page information to a hypertext markup language format to obtain hypertext markup language data, and send the hypertext markup language data to the terminal.
Optionally, the receiving module 601 is further configured to parse a configuration file to obtain cache data when starting, where the configuration file includes page information, and load the cache data into the cache.
Optionally, the receiving module 601 parses the configuration file to obtain the cached data, and is specifically configured to parse the page information in the configuration file into a JAVA object to obtain the cached data.
In some embodiments, the receiving module 601 is further configured to obtain and store a configuration file, where the configuration file is a query list type and/or a paging list type, the configuration file of the query list type is used to generate a target page of the list page type, and the configuration file of the paging list type is used to generate a target page of the list page type.
Fig. 7 is a schematic structural diagram of a page generating apparatus according to another embodiment of the present application. As shown in fig. 7, the page generating apparatus 70 includes a receiving module 701, a reading module 702, and a transmitting module 703. Wherein:
The receiving module 701 is configured to receive a page generation request from a terminal, where the page generation request is used to request generation of a target page.
The reading module 702 is configured to read front-end page information and back-end page information corresponding to the page generation request from the stored page information.
And the sending module 703 is configured to send the front-end page information and the back-end page information to the terminal, so that the terminal can generate the target page.
It should be noted that, the page generating apparatus provided in the embodiment of the present application may be used to execute the corresponding page generating method embodiment, and its implementation principle and technical effects are similar, and will not be described again.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. The modules can be realized in the form of software which is called by the processing element, in the form of hardware, in the form of software which is called by the processing element, and in the form of hardware. For example, the processing module may be a processing element that is set up separately, may be implemented in a chip of the above-mentioned apparatus, or may be stored in a memory of the above-mentioned apparatus in the form of program codes, and the functions of the above-mentioned processing module may be called and executed by a processing element of the above-mentioned apparatus. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
For example, the modules above may be one or more integrated circuits configured to implement the methods above, such as one or more Application SPECIFIC INTEGRATED Circuits (ASICs), or one or more microprocessors (DIGITAL SIGNAL processors, DSPs), or one or more field programmable gate arrays (field programmable GATE ARRAY, FPGAs), or the like. For another example, when a module above is implemented in the form of processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (central processing unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk STATE DISK (SSD)), among others.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 8, the electronic device 80 includes a memory 801 and a processor 802. Wherein the memory 801 is for storing executable instructions and the processor 802 is configured to execute the executable instructions to implement the page generation method described above.
Fig. 9 is a block diagram illustrating an apparatus for implementing a page generation method according to an exemplary embodiment. For example, the apparatus 90 may be provided as a server. Referring to fig. 9, apparatus 90 includes a processing component 901 that further includes one or more processors and memory resources represented by memory 902 for storing instructions, such as applications, executable by processing component 901. The application program stored in the memory 902 may include one or more modules each corresponding to a set of instructions. Further, the processing component 901 is configured to execute instructions to perform the page generation method described above.
The apparatus 90 may further comprise a power supply component 903 configured to perform power management of the apparatus 90, a wired or wireless network interface 904 configured to connect the apparatus 90 to a network, and an input output (I/O) interface 905. The device 90 may operate based on an operating system stored in the memory 902, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions which are used for realizing the page generation method when being executed by a processor.
The computer readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. Computer readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an Application SPECIFIC INTEGRATED Circuits (ASIC). Of course, the processor and the readable storage medium may reside as discrete components in a sensing device for a perception hole.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program realizes the page generation method when being executed by a processor.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the various method embodiments described above may be implemented by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs the steps comprising the method embodiments described above, and the storage medium described above includes various media capable of storing program code, such as ROM, RAM, magnetic or optical disk.
Finally, it should be noted that the foregoing embodiments are merely for illustrating the technical solutions of the present disclosure, and not for limiting the same, and although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified or some or all of the technical features may be equivalently replaced, and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (9)

1.一种页面生成方法,其特征在于,包括:1. A page generation method, characterized in that it includes: 获取并存储配置文件,所述配置文件为查询列表类型和/或分页表单类型,所述查询列表类型的配置文件用于生成列表页面类型的目标页面,所述分页表单类型的配置文件用于生成表单页面类型的目标页面;所述配置文件自动生成统一结构和样式的目标页面;Acquire and store configuration files, wherein the configuration files are of query list type and/or pagination form type, the configuration files of query list type are used to generate target pages of list page type, and the configuration files of pagination form type are used to generate target pages of form page type; the configuration files automatically generate target pages with a uniform structure and style. 页面信息的生成过程为:在启动时,解析配置文件得到缓存数据,所述配置文件包括页面信息;加载所述缓存数据至缓存中;The process of generating page information is as follows: at startup, the configuration file is parsed to obtain cached data, the configuration file including page information; the cached data is then loaded into the cache. 接收来自终端的页面绘制请求,所述页面绘制请求用于请求目标页面的前端页面信息;Receive a page rendering request from the terminal, the page rendering request being used to request front-end page information of the target page; 在已存储的页面信息中,读取与所述页面绘制请求对应的前端页面信息;其中,所述页面信息包括前端页面信息与后端页面信息,所述后端页面信息用于定义目标页面的后台交互逻辑;From the stored page information, read the front-end page information corresponding to the page rendering request; wherein, the page information includes front-end page information and back-end page information, and the back-end page information is used to define the back-end interaction logic of the target page; 向所述终端发送所述前端页面信息,以供所述终端进行所述目标页面的绘制;The front-end page information is sent to the terminal so that the terminal can render the target page; 接收来自所述终端的页面数据请求,所述页面数据请求用于请求所述目标页面的后端页面信息;Receive a page data request from the terminal, the page data request being used to request backend page information of the target page; 在所述页面信息中,读取与所述页面数据请求对应的后端页面信息;The page information is read from the backend page information corresponding to the page data request; 向所述终端发送所述后端页面信息,以供所述终端进行所述目标页面的生成;其中,所述后端页面信息以文档的形式存储在终端中;The backend page information is sent to the terminal so that the terminal can generate the target page; wherein the backend page information is stored in the terminal in the form of a document; 通过目标页面的功能按钮对存储在终端中的后端页面信息进行增加、删除或修改;无需为每个功能进行后台逻辑代码和数据库交互代码的开发工作。Users can add, delete, or modify backend page information stored in the terminal using function buttons on the target page; there is no need to develop backend logic code and database interaction code for each function. 2.根据权利要求1所述的页面生成方法,其特征在于,所述前端页面信息为非超文本标记语言格式,所述向所述终端发送所述前端页面信息,包括:2. The page generation method according to claim 1, wherein the front-end page information is in a non-Hypertext Markup Language format, and the step of sending the front-end page information to the terminal includes: 调整所述前端页面信息的格式为超文本标记语言格式,得到超文本标记语言数据;Adjust the format of the front-end page information to Hypertext Markup Language (HTML) format to obtain Hypertext Markup Language data; 向所述终端发送所述超文本标记语言数据。The Hypertext Markup Language data is sent to the terminal. 3.根据权利要求1所述的页面生成方法,其特征在于,所述解析配置文件得到缓存数据,包括:3. The page generation method according to claim 1, characterized in that, the step of parsing the configuration file to obtain cached data includes: 将所述配置文件中的页面信息解析为JAVA对象,得到所述缓存数据。The page information in the configuration file is parsed into a Java object to obtain the cached data. 4.根据权利要求1所述的页面生成方法,其特征在于,所述在启动时,解析配置文件得到缓存数据之前,还包括:4. The page generation method according to claim 1, characterized in that, before parsing the configuration file to obtain cached data at startup, it further includes: 获取并存储所述配置文件,所述配置文件为查询列表类型和/或分页表单类型,所述查询列表类的配置文件用于生成列表页面类型的目标页面,所述分页表单类型的配置文件用于生成表单页面类型的目标页面。Obtain and store the configuration file, which is of query list type and/or pagination form type. The configuration file of the query list type is used to generate the target page of list page type, and the configuration file of the pagination form type is used to generate the target page of form page type. 5.一种页面生成方法,其特征在于,包括:5. A page generation method, characterized in that it includes: 获取并存储配置文件,所述配置文件为查询列表类型和/或分页表单类型,所述查询列表类型的配置文件用于生成列表页面类型的目标页面,所述分页表单类型的配置文件用于生成表单页面类型的目标页面;所述配置文件自动生成统一结构和样式的目标页面;Acquire and store configuration files, wherein the configuration files are of query list type and/or pagination form type, the configuration files of query list type are used to generate target pages of list page type, and the configuration files of pagination form type are used to generate target pages of form page type; the configuration files automatically generate target pages with a uniform structure and style. 页面信息的生成过程为:在启动时,解析配置文件得到缓存数据,所述配置文件包括页面信息;加载所述缓存数据至缓存中;The process of generating page information is as follows: at startup, the configuration file is parsed to obtain cached data, the configuration file including page information; the cached data is then loaded into the cache. 接收来自终端的页面生成请求,所述页面生成请求用于请求生成目标页面;Receive a page generation request from the terminal, the page generation request being used to request the generation of a target page; 在已存储的页面信息中,读取与所述页面生成请求对应的前端页面信息与后端页面信息;所述后端页面信息用于定义目标页面的后台交互逻辑;From the stored page information, read the front-end page information and back-end page information corresponding to the page generation request; the back-end page information is used to define the back-end interaction logic of the target page; 向所述终端发送所述前端页面信息与所述后端页面信息,以供所述终端进行所述目标页面的生成,所述后端页面信息以文档的形式存储在终端中,以使所述终端通过目标页面的功能按钮对存储在终端中的后端页面信息进行增加、删除或修改;无需为每个功能进行后台逻辑代码和数据库交互代码的开发工作。The front-end page information and the back-end page information are sent to the terminal so that the terminal can generate the target page. The back-end page information is stored in the terminal in the form of a document, so that the terminal can add, delete or modify the back-end page information stored in the terminal through the function buttons of the target page; there is no need to develop back-end logic code and database interaction code for each function. 6.一种页面生成装置,其特征在于,所述页面生成装置包括:6. A page generation apparatus, characterized in that the page generation apparatus comprises: 接收模块,用于获取并存储配置文件,所述配置文件为查询列表类型和/或分页表单类型,所述查询列表类型的配置文件用于生成列表页面类型的目标页面,所述分页表单类型的配置文件用于生成表单页面类型的目标页面;所述配置文件自动生成统一结构和样式的目标页面;页面信息的生成过程为:在启动时,解析配置文件得到缓存数据,所述配置文件包括页面信息;加载所述缓存数据至缓存中;接收来自终端的页面绘制请求,所述页面绘制请求用于请求目标页面的前端页面信息,以及,用于接收来自所述终端的页面数据请求,所述页面数据请求用于请求所述目标页面的后端页面信息;A receiving module is used to acquire and store a configuration file, wherein the configuration file is of query list type and/or pagination form type. The configuration file of query list type is used to generate a target page of list page type, and the configuration file of pagination form type is used to generate a target page of form page type. The configuration file automatically generates a target page with a unified structure and style. The page information generation process is as follows: at startup, the configuration file is parsed to obtain cached data, wherein the configuration file includes page information; the cached data is loaded into the cache; a page rendering request is received from the terminal, wherein the page rendering request is used to request the front-end page information of the target page; and a page data request is received from the terminal, wherein the page data request is used to request the back-end page information of the target page. 读取模块,用于在已存储的页面信息中,读取与所述页面绘制请求对应的前端页面信息,以及,用于在所述页面信息中,读取与所述页面数据请求对应的后端页面信息,所述后端页面信息用于定义目标页面的后台交互逻辑;其中,所述页面信息包括前端页面信息与后端页面信息;The reading module is used to read front-end page information corresponding to the page rendering request from the stored page information, and to read back-end page information corresponding to the page data request from the page information, wherein the back-end page information is used to define the back-end interaction logic of the target page; wherein the page information includes front-end page information and back-end page information. 发送模块,用于向所述终端发送所述前端页面信息,以供所述终端进行所述目标页面的绘制,以及,用于向所述终端发送所述后端页面信息,以供所述终端进行所述目标页面的生成;其中,所述后端页面信息以文档的形式存储在终端中;The sending module is configured to send the front-end page information to the terminal for the terminal to render the target page, and to send the back-end page information to the terminal for the terminal to generate the target page; wherein the back-end page information is stored in the terminal in the form of a document; 通过目标页面的功能按钮对存储在终端中的后端页面信息进行增加、删除或修改;无需为每个功能进行后台逻辑代码和数据库交互代码的开发工作。Users can add, delete, or modify backend page information stored in the terminal using function buttons on the target page; there is no need to develop backend logic code and database interaction code for each function. 7.一种页面生成装置,其特征在于,所述页面生成装置,包括:7. A page generation apparatus, characterized in that the page generation apparatus comprises: 接收模块,用于获取并存储配置文件,所述配置文件为查询列表类型和/或分页表单类型,所述查询列表类型的配置文件用于生成列表页面类型的目标页面,所述分页表单类型的配置文件用于生成表单页面类型的目标页面;所述配置文件自动生成统一结构和样式的目标页面;接收来自终端的页面生成请求,所述页面生成请求用于请求生成目标页面;页面信息的生成过程为:在启动时,解析配置文件得到缓存数据,所述配置文件包括页面信息;加载所述缓存数据至缓存中;A receiving module is used to acquire and store a configuration file, which is of the query list type and/or pagination form type. The configuration file of the query list type is used to generate a target page of the list page type, and the configuration file of the pagination form type is used to generate a target page of the form page type. The configuration file automatically generates a target page with a uniform structure and style. The module receives a page generation request from the terminal, which is used to request the generation of the target page. The page information generation process is as follows: at startup, the configuration file is parsed to obtain cached data, which includes page information; the cached data is loaded into the cache. 读取模块,用于在已存储的页面信息中,读取与所述页面生成请求对应的前端页面信息与后端页面信息;所述后端页面信息用于定义目标页面的后台交互逻辑;The reading module is used to read the front-end page information and back-end page information corresponding to the page generation request from the stored page information; the back-end page information is used to define the back-end interaction logic of the target page. 发送模块,用于向所述终端发送所述前端页面信息与所述后端页面信息,以供所述终端进行所述目标页面的生成,所述后端页面信息以文档的形式存储在终端中,以使所述终端通过目标页面的功能按钮对存储在终端中的后端页面信息进行增加、删除或修改;无需为每个功能进行后台逻辑代码和数据库交互代码的开发工作。The sending module is used to send the front-end page information and the back-end page information to the terminal so that the terminal can generate the target page. The back-end page information is stored in the terminal in the form of a document, so that the terminal can add, delete or modify the back-end page information stored in the terminal through the function buttons of the target page; there is no need to develop back-end logic code and database interaction code for each function. 8.一种电子设备,其特征在于,包括:存储器,处理器;8. An electronic device, characterized in that it comprises: a memory and a processor; 所述存储器,用于存储可执行指令;The memory is used to store executable instructions; 所述处理器,被配置为执行所述可执行指令,以实现如权利要求1至5中任一项所述的页面生成方法。The processor is configured to execute the executable instructions to implement the page generation method as described in any one of claims 1 to 5. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至5中任一项所述的页面生成方法。9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the page generation method as described in any one of claims 1 to 5.
CN202210924003.9A 2022-08-02 2022-08-02 Page generation methods, apparatus, devices and storage media Active CN115268912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210924003.9A CN115268912B (en) 2022-08-02 2022-08-02 Page generation methods, apparatus, devices and storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210924003.9A CN115268912B (en) 2022-08-02 2022-08-02 Page generation methods, apparatus, devices and storage media

Publications (2)

Publication Number Publication Date
CN115268912A CN115268912A (en) 2022-11-01
CN115268912B true CN115268912B (en) 2026-01-16

Family

ID=83747686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210924003.9A Active CN115268912B (en) 2022-08-02 2022-08-02 Page generation methods, apparatus, devices and storage media

Country Status (1)

Country Link
CN (1) CN115268912B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904377A (en) * 2022-12-02 2023-04-04 平安银行股份有限公司 Front-end page control method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795195A (en) * 2019-10-31 2020-02-14 百度在线网络技术(北京)有限公司 Web page rendering method, device, electronic device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614568B (en) * 2018-12-07 2023-04-14 微梦创科网络科技(中国)有限公司 A page generation method and device
CN109871500A (en) * 2019-01-24 2019-06-11 平安科技(深圳)有限公司 Page loading method, apparatus, computer device and storage medium
CN110716783A (en) * 2019-10-10 2020-01-21 秒针信息技术有限公司 Front-end page generation and deployment method and device, storage medium and equipment
CN111752559B (en) * 2019-11-07 2024-02-06 北京沃东天骏信息技术有限公司 Front-end and back-end separation system, method, device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795195A (en) * 2019-10-31 2020-02-14 百度在线网络技术(北京)有限公司 Web page rendering method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN115268912A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US6470349B1 (en) Server-side scripting language and programming tool
CN102521230B (en) For the result type that data with good conditionsi show
KR101623223B1 (en) Multiple parallel user experiences provided by a single set of internet hosting machines
US7765464B2 (en) Method and system for dynamically assembling presentations of web pages
CN109614085B (en) Function realizing method, device, computer equipment and storage medium
JP5009293B2 (en) Web page rendering priority mechanism
US20240296350A1 (en) Computed values for knowledge graph
US11687613B2 (en) Generating lossless static object models of dynamic webpages
CN115617338A (en) A method, device, and readable storage medium for quickly generating business pages
US20080120596A1 (en) Cross domain presence of web user interface and logic
CN115268912B (en) Page generation methods, apparatus, devices and storage media
Al-Shaikh et al. Evaluating IndexedDB performance on web browsers
US7865481B2 (en) Changing documents to include changes made to schemas
CN113448649B (en) A server and method for loading home page data based on Redis
CN110058849A (en) Generation method, device, computer equipment and the storage medium of flow chart
CN118193567B (en) Method, device, equipment and medium for generating query statements and querying business data
WO2010147453A1 (en) System and method for designing a gui for an application program
CN115495421B (en) A method, apparatus, electronic device, and medium for data formatting
US7668929B1 (en) Abstracting links to electronic resources in a network environment
CN111563363B (en) Method for generating and analyzing document content of hypertext markup language
CN114329152A (en) Browser engine-based application generation method, apparatus, device and medium
CN114968917A (en) Method and device for rapidly importing file data
CN118916561B (en) A visual method for realizing static page
CN118034652B (en) A method for automatically generating service codes
CN107357897A (en) A kind of method, apparatus and computer-readable storage medium for realizing user access control

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
GR01 Patent grant
GR01 Patent grant