CN104572035B - The dynamic creation method and dynamic generating system of web page code - Google Patents

The dynamic creation method and dynamic generating system of web page code Download PDF

Info

Publication number
CN104572035B
CN104572035B CN201310472697.8A CN201310472697A CN104572035B CN 104572035 B CN104572035 B CN 104572035B CN 201310472697 A CN201310472697 A CN 201310472697A CN 104572035 B CN104572035 B CN 104572035B
Authority
CN
China
Prior art keywords
parameter
webpage
web page
configurationization
server end
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.)
Expired - Fee Related
Application number
CN201310472697.8A
Other languages
Chinese (zh)
Other versions
CN104572035A (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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310472697.8A priority Critical patent/CN104572035B/en
Publication of CN104572035A publication Critical patent/CN104572035A/en
Application granted granted Critical
Publication of CN104572035B publication Critical patent/CN104572035B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of dynamic creation method of web page code, including:According to all elements for generating webpage, predefined in server end and store corresponding configurationization parameter;According to the characteristic information of webpage to be generated, required configuration parameter is selected, and selected configuration parameter is assembled into preset format by the server end;By the configuration parameter retrieval client of preset format, and parsing operation is carried out using corresponding mode, to obtain the code of the webpage to be generated.The invention also provides the dynamic generating system of corresponding web page code.Pass through technical scheme, it can be based on configurationization parameter, flexibly, it is dynamically generated web page code, contribute to the individual demand for meeting different user, and the operation respectively based on server end and client, contribute to the computing load of reduction server end, and improve work efficiency and stability.

Description

The dynamic creation method and dynamic generating system of web page code
Technical field
The present invention relates to technical field of software development, in particular to a kind of dynamic creation method of web page code and A kind of dynamic generating system of web page code.
Background technology
With the development of Web technologies, and the popularization of various intelligent terminals, the individual demand of user becomes abnormal rich It is rich.For same Web application systems, often different users has different demands.Meanwhile even if demand is identical One group of client is it is also possible that with different terminals, this code revision for allowing for Web application systems becomes abnormal with release maintenance It is difficult.
Therefore, for identical Web application systems, caused by the difference for how reducing individual demand and terminal device Development difficulty, improves the recycling rate of waterused of exploitation code, becomes a technical problem to be solved urgently.
The content of the invention
The present invention is based on the above problem, it is proposed that a kind of new technical solution, can be based on configurationization parameter, spirit Live, be dynamically generated web page code, contribute to the individual demand for meeting different user.
In view of this, the present invention proposes a kind of dynamic creation method of web page code, including:According to for generating webpage All elements, predefined in server end and store corresponding configurationization parameter;According to the characteristic information of webpage to be generated, choosing Required configuration parameter is selected, and selected configuration parameter is assembled into preset format by the server end;Will be default The configuration parameter retrieval client of form, and parsing operation is carried out using corresponding mode, to obtain the webpage to be generated Code.
Required all elements when in the technical scheme, for generation webpage, for example may be used on webpage each Kind control, form, button, input frame etc., all previously generate corresponding configurationization parameter so that are really needing to generate webpage When, it is only necessary to made choice from predefined configurationization parameter, and the configuration parameter based on selection, you can net needed for generation The code of page.For difference caused by the individual demand or terminal device of different user, the code of each configurationization parameter Always it may be reused, so as to reduce the repeatability and difficulty of exploitation.
By completing the definition and storage of configurationization parameter, and the spelling to selected configurationization parameter in server end Dress, is conducive to make full use of the powerful operational capability of server end and huge memory space;And by will be to preset format Configuration parameter client executing parse, help to share and reduce the computational load of server end, especially work as user More, the to be generated webpage of quantity it is complicated when, help to obtain more preferable development environment and faster processing speed.
In the above-mentioned technical solutions, it is preferable that further include:The configuration parameter for being stored in the server end is divided Class;And the classification according to belonging to selected configurationization parameter, determine the configuration parameter applied to corresponding preset format Analysis mode.
In the technical scheme, for the corresponding configurationization parameter of element different on webpage, it is necessary to use different sides Formula is parsed;By in advance classifying to configurationization parameter, help quickly to determine required analysis mode, from And improve the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that further include:The configuration parameter of every kind of classification, for generating webpage Upper corresponding page control.
In the technical scheme, based on a kind of more specific embodiment, configurationization parameter can be directed on webpage Corresponding page control, classification processing is carried out to it.
In any of the above-described technical solution, it is preferable that further include:Required web page display data are determined in server end, And the web page display data are assembled into preset format by the server end;By the web page display data retrieval of preset format Client, and parsing operation is carried out using corresponding mode, to improve the code of the webpage to be generated.
In the technical scheme, the frame of webpage is only for forming based on configurationization parameter, the web page code of generation, but i.e. It is the webpage of identical frames, can also deposits difference in terms of content, such as the renewal of web page contents.Therefore, by webpage exhibition The assembly and parsing operation of registration evidence so that further perfect web page code.
It is of course apparent that the frame of webpage can also be only generated, and for the different page controls in the frame, it can pass through Specific web page display data are added and filled thereto again to other modes.
In any of the above-described technical solution, it is preferable that further include:According to the web page display data in the networking to be generated Display location on page, determines associated configuration parameter;And use the associated corresponding parsing side of configuration parameter Formula, performs the web page display data parsing operation.
In the technical scheme, since web page display data are to need finally to fill into the specific control in webpage, Such as the content in form, textbox etc., then for the corresponding configurationization parameter of same control and web page display data, it is necessary to Parsed using identical analysis mode, to ensure the accuracy of analysis result.
In any of the above-described technical solution, it is preferable that further include:Webpage style sheet is generated, is wrapped in the webpage style sheet Information containing the configurationization parameter associated with the characteristic information of the webpage to be generated;Specified for present terminal equipment choosing Webpage style sheet, and according to the information of the configurationization parameter included in the webpage style sheet specified, generate corresponding webpage Code.
In the technical scheme, by generating webpage style sheet so that for identical web page frame, it is not necessary to every time Required configurationization parameter is reselected, and directly webpage style sheet is made choice, is operated so as to help to reduce Complexity, improves the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that further include:The preset format is json forms or xml forms.
In the technical scheme, configurationization parameter can be assemblied into a variety of preset formats, such as json forms or xml lattice Formula etc..Wherein, when using json forms, since its is more generally applicable, simple, and the data volume generated is small, redundancy is few, Help to shorten fetching the time to client, and reduce the difficulty and complexity of resolving, improve the exploitation effect of webpage Rate.
The invention also provides a kind of dynamic generating system of web page code, including server end and client, wherein, institute Stating server end includes:Parameter definition unit, for according to all elements for being used to generate webpage, predefining corresponding configurationization Parameter;Parameter storage unit, for storing the configurationization parameter;Parameter selection unit, for the spy according to webpage to be generated Reference ceases, and selects required configuration parameter;Parameter assembled rigid unit, for selected configuration parameter to be assembled into default lattice Formula;The client includes:Parameter analysis of electrochemical unit, for by the configuration parameter retrieval client of preset format, and using pair The mode answered carries out parsing operation, to obtain the code of the webpage to be generated.
Required all elements when in the technical scheme, for generation webpage, for example may be used on webpage each Kind control, form, button, input frame etc., all previously generate corresponding configurationization parameter so that are really needing to generate webpage When, it is only necessary to made choice from predefined configurationization parameter, and the configuration parameter based on selection, you can net needed for generation The code of page.For difference caused by the individual demand or terminal device of different user, the code of each configurationization parameter Always it may be reused, so as to reduce the repeatability and difficulty of exploitation.
By completing the definition and storage of configurationization parameter, and the spelling to selected configurationization parameter in server end Dress, is conducive to make full use of the powerful operational capability of server end and huge memory space;And by will be to preset format Configuration parameter client executing parse, help to share and reduce the computational load of server end, especially work as user More, the to be generated webpage of quantity it is complicated when, help to obtain more preferable development environment and faster processing speed.
In the above-mentioned technical solutions, it is preferable that the server end further includes:Parameter classifying unit, for being stored in The configuration parameter of the server end is classified;Wherein, the Parameter analysis of electrochemical unit is additionally operable to:According to selected configuration Change the classification belonging to parameter, determine the analysis mode of the configurationization parameter applied to corresponding preset format.
In the technical scheme, for the corresponding configurationization parameter of element different on webpage, it is necessary to use different sides Formula is parsed;By in advance classifying to configurationization parameter, help quickly to determine required analysis mode, from And improve the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that the configuration parameter of every kind of classification, it is corresponding on webpage for generating Page control.
In the technical scheme, based on a kind of more specific embodiment, configurationization parameter can be directed on webpage Corresponding page control, classification processing is carried out to it.
In any of the above-described technical solution, it is preferable that the server end further includes:Data determination unit, for determining Required web page display data, the web page display data are assembled into preset format by the parameter assembled rigid unit;Wherein, The Parameter analysis of electrochemical unit is additionally operable to:By the web page display data retrieval client of preset format, and using corresponding mode into Row parsing operation, to improve the code of the webpage to be generated.
In the technical scheme, the frame of webpage is only for forming based on configurationization parameter, the web page code of generation, but i.e. It is the webpage of identical frames, can also deposits difference in terms of content, such as the renewal of web page contents.Therefore, by webpage exhibition The assembly and parsing operation of registration evidence so that further perfect web page code.
It is of course apparent that the frame of webpage can also be only generated, and for the different page controls in the frame, it can pass through Specific web page display data are added and filled thereto again to other modes.
In any of the above-described technical solution, it is preferable that the Parameter analysis of electrochemical unit is additionally operable to:According to the web page display number According to the display location on the webpage to be generated, associated configuration parameter is determined, and join using associated configurationization The corresponding analysis mode of number, performs the web page display data parsing operation.
In the technical scheme, since web page display data are to need finally to fill into the specific control in webpage, Such as the content in form, textbox etc., then for the corresponding configurationization parameter of same control and web page display data, it is necessary to Parsed using identical analysis mode, to ensure the accuracy of analysis result.
In any of the above-described technical solution, it is preferable that the server end further includes:Style sheet generation unit, for giving birth to Into webpage style sheet, the configuration parameter associated with the characteristic information of the webpage to be generated is included in the webpage style sheet Information;Style sheet selecting unit, for the webpage style sheet specified for present terminal equipment choosing, for according to the finger The information of the configurationization parameter included in fixed webpage style sheet, generates corresponding web page code.
In the technical scheme, by generating webpage style sheet so that for identical web page frame, it is not necessary to every time Required configurationization parameter is reselected, and directly webpage style sheet is made choice, is operated so as to help to reduce Complexity, improves the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that the preset format is json forms or xml forms.
In the technical scheme, configurationization parameter can be assemblied into a variety of preset formats, such as json forms or xml lattice Formula etc..Wherein, when using json forms, since its is more generally applicable, simple, and the data volume generated is small, redundancy is few, Help to shorten fetching the time to client, and reduce the difficulty and complexity of resolving, improve the exploitation effect of webpage Rate.
By above technical scheme, configurationization parameter can be based on, flexibly, is dynamically generated web page code, is contributed to full The individual demand of sufficient different user.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
Brief description of the drawings
Fig. 1 shows the schematic flow diagram of the dynamic creation method of web page code according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of the dynamic generating system of web page code according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of the idiographic flow of dynamic generation web page code according to an embodiment of the invention;
Fig. 4 shows the interface schematic diagram of the webpage of generation according to an embodiment of the invention;
Fig. 5 shows the schematic diagram of the idiographic flow of the definite processing method used according to an embodiment of the invention.
Embodiment
It is to better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Mode is applied the present invention is further described in detail.It should be noted that in the case where there is no conflict, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be implemented using other different from other modes described here, therefore, the present invention is not limited to following public specific real Apply the limitation of example.
Fig. 1 shows the schematic flow diagram of the dynamic creation method of web page code according to an embodiment of the invention.
As shown in Figure 1, the dynamic creation method of web page code according to an embodiment of the invention, including:Step 102, root According to all elements for generating webpage, predefined in server end and store corresponding configurationization parameter;Step 104, according to The characteristic information of webpage to be generated, selects required configuration parameter, and is joined selected configurationization by the server end Number is assembled into preset format;Step 106, by the configuration parameter retrieval client of preset format, and using corresponding mode into Row parsing operation, to obtain the code of the webpage to be generated.
Required all elements when in the technical scheme, for generation webpage, for example may be used on webpage each Kind control, form, button, input frame etc., all previously generate corresponding configurationization parameter so that are really needing to generate webpage When, it is only necessary to made choice from predefined configurationization parameter, and the configuration parameter based on selection, you can net needed for generation The code of page.For difference caused by the individual demand or terminal device of different user, the code of each configurationization parameter Always it may be reused, so as to reduce the repeatability and difficulty of exploitation.
By completing the definition and storage of configurationization parameter, and the spelling to selected configurationization parameter in server end Dress, is conducive to make full use of the powerful operational capability of server end and huge memory space;And by will be to preset format Configuration parameter client executing parse, help to share and reduce the computational load of server end, especially work as user More, the to be generated webpage of quantity it is complicated when, help to obtain more preferable development environment and faster processing speed.
In the above-mentioned technical solutions, it is preferable that further include:The configuration parameter for being stored in the server end is divided Class;And the classification according to belonging to selected configurationization parameter, determine the configuration parameter applied to corresponding preset format Analysis mode.
In the technical scheme, for the corresponding configurationization parameter of element different on webpage, it is necessary to use different sides Formula is parsed;By in advance classifying to configurationization parameter, help quickly to determine required analysis mode, from And improve the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that further include:The configuration parameter of every kind of classification, for generating webpage Upper corresponding page control.
In the technical scheme, based on a kind of more specific embodiment, configurationization parameter can be directed on webpage Corresponding page control, classification processing is carried out to it.
In any of the above-described technical solution, it is preferable that further include:Required web page display data are determined in server end, And the web page display data are assembled into preset format by the server end;By the web page display data retrieval of preset format Client, and parsing operation is carried out using corresponding mode, to improve the code of the webpage to be generated.
In the technical scheme, the frame of webpage is only for forming based on configurationization parameter, the web page code of generation, but i.e. It is the webpage of identical frames, can also deposits difference in terms of content, such as the renewal of web page contents.Therefore, by webpage exhibition The assembly and parsing operation of registration evidence so that further perfect web page code.
It is of course apparent that the frame of webpage can also be only generated, and for the different page controls in the frame, it can pass through Specific web page display data are added and filled thereto again to other modes.
In any of the above-described technical solution, it is preferable that further include:According to the web page display data in the networking to be generated Display location on page, determines associated configuration parameter;And use the associated corresponding parsing side of configuration parameter Formula, performs the web page display data parsing operation.
In the technical scheme, since web page display data are to need finally to fill into the specific control in webpage, Such as the content in form, textbox etc., then for the corresponding configurationization parameter of same control and web page display data, it is necessary to Parsed using identical analysis mode, to ensure the accuracy of analysis result.
In any of the above-described technical solution, it is preferable that further include:Webpage style sheet is generated, is wrapped in the webpage style sheet Information containing the configurationization parameter associated with the characteristic information of the webpage to be generated;Specified for present terminal equipment choosing Webpage style sheet, and according to the information of the configurationization parameter included in the webpage style sheet specified, generate corresponding webpage Code.
In the technical scheme, by generating webpage style sheet so that for identical web page frame, it is not necessary to every time Required configurationization parameter is reselected, and directly webpage style sheet is made choice, is operated so as to help to reduce Complexity, improves the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that further include:The preset format is json forms or xml forms.
In the technical scheme, configurationization parameter can be assemblied into a variety of preset formats, such as json forms or xml lattice Formula etc..Wherein, when using json forms, since its is more generally applicable, simple, and the data volume generated is small, redundancy is few, Help to shorten fetching the time to client, and reduce the difficulty and complexity of resolving, improve the exploitation effect of webpage Rate.
Fig. 2 shows the schematic block diagram of the dynamic generating system of web page code according to an embodiment of the invention.
As shown in Fig. 2, the dynamic generating system 200 of web page code according to an embodiment of the invention, including server end 202 and client 204, wherein, the server end 202 includes:Parameter definition unit 202A, for according to for generating webpage All elements, predefine corresponding configurationization parameter;Parameter storage unit 202B, for storing the configurationization parameter;Ginseng Number selecting unit 202C, for the characteristic information according to webpage to be generated, selects required configuration parameter;Parameter assembled rigid unit 202D, for selected configuration parameter to be assembled into preset format;The client 204 includes:Parameter analysis of electrochemical unit 204A, for by the configuration parameter retrieval client 204 of preset format, and carries out parsing operation using corresponding mode, with Obtain the code of the webpage to be generated.
Required all elements when in the technical scheme, for generation webpage, for example may be used on webpage each Kind control, form, button, input frame etc., all previously generate corresponding configurationization parameter so that are really needing to generate webpage When, it is only necessary to made choice from predefined configurationization parameter, and the configuration parameter based on selection, you can net needed for generation The code of page.For difference caused by the individual demand or terminal device of different user, the code of each configurationization parameter Always it may be reused, so as to reduce the repeatability and difficulty of exploitation.
By completing the definition and storage of configurationization parameter in server end 202, and to selected configuration parameter Assembly, be conducive to make full use of the powerful operational capability of server end 202 and huge memory space;And by will be to pre- If the configuration parameter of form performs parsing in client 204, help to share and reduce the computational load of server end 202, Especially when more, the to be generated webpage of number of users it is complicated when, help to obtain more preferable development environment and faster Processing speed.
In the above-mentioned technical solutions, it is preferable that the server end 202 further includes:Parameter classifying unit 202E, for pair The configuration parameter for being stored in the server end 202 is classified;Wherein, the Parameter analysis of electrochemical unit 204A is additionally operable to:Root According to the classification belonging to selected configurationization parameter, the parsing side for being applied to the configurationization parameter of corresponding preset format is determined Formula.
In the technical scheme, for the corresponding configurationization parameter of element different on webpage, it is necessary to use different sides Formula is parsed;By in advance classifying to configurationization parameter, help quickly to determine required analysis mode, from And improve the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that the configuration parameter of every kind of classification, it is corresponding on webpage for generating Page control.
In the technical scheme, based on a kind of more specific embodiment, configurationization parameter can be directed on webpage Corresponding page control, classification processing is carried out to it.
In any of the above-described technical solution, it is preferable that the server end 202 further includes:Data determination unit 202F, is used It is default to be assembled into the web page display data by the parameter assembled rigid unit 202D in definite required web page display data Form;Wherein, the Parameter analysis of electrochemical unit 204A is additionally operable to:By the web page display data retrieval client 204 of preset format, and Parsing operation is carried out using corresponding mode, to improve the code of the webpage to be generated.
In the technical scheme, the frame of webpage is only for forming based on configurationization parameter, the web page code of generation, but i.e. It is the webpage of identical frames, can also deposits difference in terms of content, such as the renewal of web page contents.Therefore, by webpage exhibition The assembly and parsing operation of registration evidence so that further perfect web page code.
It is of course apparent that the frame of webpage can also be only generated, and for the different page controls in the frame, it can pass through Specific web page display data are added and filled thereto again to other modes.
In any of the above-described technical solution, it is preferable that the Parameter analysis of electrochemical unit 204A is additionally operable to:According to the webpage exhibition Registration determines associated configuration parameter, and use associated configuration according to the display location on the webpage to be generated Change the corresponding analysis mode of parameter, the web page display data are performed with parsing operation.
In the technical scheme, since web page display data are to need finally to fill into the specific control in webpage, Such as the content in form, textbox etc., then for the corresponding configurationization parameter of same control and web page display data, it is necessary to Parsed using identical analysis mode, to ensure the accuracy of analysis result.
In any of the above-described technical solution, it is preferable that the server end 202 further includes:Style sheet generation unit 202G, For generating webpage style sheet, the configuration associated with the characteristic information of the webpage to be generated is included in the webpage style sheet Change the information of parameter;Style sheet selecting unit 202H, for the webpage style sheet specified for present terminal equipment choosing, for According to the information of the configurationization parameter included in the webpage style sheet specified, corresponding web page code is generated.
In the technical scheme, by generating webpage style sheet so that for identical web page frame, it is not necessary to every time Required configurationization parameter is reselected, and directly webpage style sheet is made choice, is operated so as to help to reduce Complexity, improves the formation efficiency of web page code.
In any of the above-described technical solution, it is preferable that the preset format is json forms or xml forms.
In the technical scheme, configurationization parameter can be assemblied into a variety of preset formats, such as json forms or xml lattice Formula etc..Wherein, when using json forms, since its is more generally applicable, simple, and the data volume generated is small, redundancy is few, Help to shorten fetching the time to client 204, and reduce the difficulty and complexity of resolving, improve the exploitation of webpage Efficiency.
Fig. 3 shows the schematic diagram of the idiographic flow of dynamic generation web page code according to an embodiment of the invention.
As shown in figure 3, the idiographic flow of dynamic generation web page code according to an embodiment of the invention includes:
Step 302, in server end, configurationization parameter is defined.
Specifically when referring to for auto-building html files, the element used is likely to require, for example a page includes list Region, editing area, query region, then need to define relevant parameter type.Configurationization parameter can be divided into:Button class parameter, Inquire about class parameter, list class parameter, editor's class parameter, verification class parameter, interface text parameter, other parameters etc..
For the ease of storing and calling, it is also necessary to define the information of configurationization parameter, refer to all kinds of configuration parameters Information is abstracted, and every parameter information is stored in the form of data-base recording in a parameter list.Wherein, parameter list Row field can include:
Parameter ID, parameter variety coding, parameter variety and parameter description, parameter name, parameter value, parameter format, remarks, whether Use, sequence number, spare fields 1, spare fields 2, spare fields 3, spare fields 4, spare fields 5 etc..
Wherein, " parameter variety coding " and " parameter name " is used for the Query Location of parameter;" parameter variety and parameter description " and " remarks " are used only as description explanation;Whether " parameter value ", " parameter format ", " enabling ", " sequence number " and 5 spare fields are then used Carry out the various configuration effects of defined parameters, " parameter format " therein is the configuration core content of parameter list, its value is one String character string, various configurationization effects are defined by everybody numerical value in character string.
More specifically, such as the parameter of an editing type, have with properties:Parameter ID, parameter variety coding, parameter variety and Whether parameter description, parameter name, parameter value, parameter format, remarks, use, sort number and 5 spare attributes.Ginseng therein Number format is the core of parameter, includes following characteristics:Whether hidden during whether read-only when whether hiding when newly-built, is newly-built, modification, Whether read-only, type during modification(Including:Character string, numeral, date, drop-down list, text box, radio box, multiselect frame, password Input frame, file upload, multiselect tree control, single choice tree control etc.), whether must fill out, length check, with the presence or absence of it is special verification, Title width percentage, content width percentage, Database field mark(Whether preserved when creating, changing)Deng.
It should be noted that different types of configurationization parameter, it is also possible to corresponding to identical parameter information.
Step 304A, obtains page presentation data.Specifically refer to, for current target webpage, it is necessary to which obtain will be at this The data being shown on target webpage, i.e. page presentation data.
Step 304B, obtains the configuration parameter needed for the page.Specifically refer to, the different types of page needs different type Configuration parameter, such as one needs the page that list is shown, then needs list class parameter and some other auxiliary parameter, and arrange Table class parameter specifically then has different parameter varieties comprising which parameter information according to different page functions, and each parameter variety can wrap Containing multiple relevant parameter informations.Wherein, the corresponding multiple configurationization parameters of every kind of page function are concentrated, i.e., one ginseng Number cluster, then for required page function, can quickly specify required configuration parameter, help to improve efficiency.
The page presentation data of acquisition are assemblied into the parameter of json forms by step 306A.
Step 306B, the parameter of json forms is assemblied into by the configurationization parameter of acquisition.
It should be noted that step 304A, 304B and step 306A, 306B, are intended merely to respectively illustrate to page presentation The processing procedure of data and configurationization parameter, is not meant to certainly exist the tandem of " A-B ".
Wherein, for the json parameters by the assembly of page presentation data(The parameter of json forms), its json parameter format Example is as follows:
And in step 306B, for the json parameters by the assembly of configurationization parameter, then using an edit page as Example, json parameter formats are as follows:
Step 308, all json parameters in server end generation are all fetched into client, is divided by the way of js Do not parse.Wherein, the type according to corresponding to each json parameters or classification are specifically needed, determines corresponding processing method.
Step 310, specifically, such as the json parameters of drop-down list form, drop-down list parameter assembly side is called Method, parses it;For the json parameters of text frame grid type, text box parameter assembling method is called, it is parsed Deng.
Step 312, using all data parsed in step 310, according to the form of different parameter informations, Yi Jiqi The attributes such as his orderby, paravalue, also have css pattern classifications, can generate various types of page controls, and then spell The html codes of dress generation full page, to generate final Webpage as shown in Figure 4.
Wherein, when by calling corresponding processing method to be parsed to json parameters, can specifically be directed to respectively After each json parameters carry out type identification, corresponding processing method is called from storehouse;Alternatively, it can also use shown in Fig. 5 Mode.
As shown in figure 5, processing step includes:
Step 502, the json parameters of all generations are fetched from server end.
Step 504, the parameter type involved by all json parameters is identified.
Step 506, involved all processing methods are called.
Step 508, for each json parameters, its parameter type is determined.
Step 510, for the type of the json parameters, handled using corresponding processing method.
In above-mentioned steps, by obtaining all processing methods being related to first, for example can first it be placed in caching, so Afterwards when handling each json parameters, it can inquire about and call directly from caching, help to improve efficiency.
Technical scheme is described in detail above in association with attached drawing, it is contemplated that in correlation technique, it is difficult to meet various The individual demand of various kinds and substantial amounts of terminal difference.Therefore, the present invention provides a kind of dynamic creation method of web page code With a kind of dynamic generating system of web page code, configurationization parameter can be based on, flexibly, web page code is dynamically generated, helps In the individual demand for meeting different user.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.

Claims (11)

  1. A kind of 1. dynamic creation method of web page code, it is characterised in that including:
    According to all elements for generating webpage, predefined in server end and store corresponding configurationization parameter;
    According to the characteristic information of webpage to be generated, required configuration parameter is selected, and will be selected by the server end Configurationization parameter is assembled into preset format;
    By the configuration parameter retrieval client of preset format, and parsing operation is carried out using corresponding mode, it is described to obtain The code of webpage to be generated;
    Webpage style sheet is generated, the configuration associated with the characteristic information of the webpage to be generated is included in the webpage style sheet Change the information of parameter;
    The webpage style sheet specified for present terminal equipment choosing, and according to the configuration included in the webpage style sheet specified Change the information of parameter, generate corresponding web page code.
  2. 2. the dynamic creation method of web page code according to claim 1, it is characterised in that further include:
    Classify to the configuration parameter for being stored in the server end;And
    According to the classification belonging to selected configurationization parameter, the solution for being applied to the configurationization parameter of corresponding preset format is determined Analysis mode.
  3. 3. the dynamic creation method of web page code according to claim 2, it is characterised in that further include:
    The configuration parameter of every kind of classification, for generating corresponding page control on webpage.
  4. 4. the dynamic creation method of web page code according to claim 2, it is characterised in that further include:
    Required web page display data are determined in server end, and are assembled into the web page display data by the server end Preset format;
    By the web page display data retrieval client of preset format, and parsing operation is carried out using corresponding mode, to improve State the code of webpage to be generated.
  5. 5. the dynamic creation method of web page code according to claim 4, it is characterised in that further include:
    According to display location of the web page display data on the webpage to be generated, associated configuration parameter is determined; And
    Using the associated corresponding analysis mode of configuration parameter, the web page display data are performed with parsing operation.
  6. 6. the dynamic creation method of web page code according to any one of claim 1 to 5, it is characterised in that further include:
    The preset format is json forms or xml forms.
  7. A kind of 7. dynamic generating system of web page code, it is characterised in that including server end and client, wherein,
    The server end includes:
    Parameter definition unit, for according to all elements for being used to generate webpage, predefining corresponding configurationization parameter;
    Parameter storage unit, for storing the configurationization parameter;
    Parameter selection unit, for the characteristic information according to webpage to be generated, selects required configuration parameter;
    Parameter assembled rigid unit, for selected configuration parameter to be assembled into preset format;
    The client includes:
    Parameter analysis of electrochemical unit, for by the configuration parameter retrieval client of preset format, and is solved using corresponding mode Analysis operation, to obtain the code of the webpage to be generated;
    Style sheet generation unit, for generating webpage style sheet, includes and the webpage to be generated in the webpage style sheet The information for the configurationization parameter that characteristic information is associated;
    Style sheet selecting unit, for the webpage style sheet specified for present terminal equipment choosing, for being specified according to described Webpage style sheet in the information of configurationization parameter that includes, generate corresponding web page code.
  8. 8. the dynamic generating system of web page code according to claim 7, it is characterised in that the server end also wraps Include:
    Parameter classifying unit, for classifying to the configuration parameter for being stored in the server end;
    Wherein, the Parameter analysis of electrochemical unit is additionally operable to:According to the classification belonging to selected configurationization parameter, determine to be applied to phase The analysis mode of the configurationization parameter for the preset format answered.
  9. 9. the dynamic generating system of web page code according to claim 8, it is characterised in that the configurationization ginseng of every kind of classification Number, for generating corresponding page control on webpage.
  10. 10. the dynamic generating system of web page code according to claim 8, it is characterised in that the server end also wraps Include:
    Data determination unit, for determining required web page display data, with by the parameter assembled rigid unit by the webpage exhibition Registration evidence is assembled into preset format;
    Wherein, the Parameter analysis of electrochemical unit is additionally operable to:By the web page display data retrieval client of preset format, and use correspondence Mode carry out parsing operation, to improve the code of the webpage to be generated.
  11. 11. the dynamic generating system of web page code according to claim 10, it is characterised in that the Parameter analysis of electrochemical unit It is additionally operable to:
    According to display location of the web page display data on the webpage to be generated, associated configuration parameter is determined, And using the associated corresponding analysis mode of configuration parameter, the web page display data are performed with parsing operation.
CN201310472697.8A 2013-10-11 2013-10-11 The dynamic creation method and dynamic generating system of web page code Expired - Fee Related CN104572035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310472697.8A CN104572035B (en) 2013-10-11 2013-10-11 The dynamic creation method and dynamic generating system of web page code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310472697.8A CN104572035B (en) 2013-10-11 2013-10-11 The dynamic creation method and dynamic generating system of web page code

Publications (2)

Publication Number Publication Date
CN104572035A CN104572035A (en) 2015-04-29
CN104572035B true CN104572035B (en) 2018-05-04

Family

ID=53088211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310472697.8A Expired - Fee Related CN104572035B (en) 2013-10-11 2013-10-11 The dynamic creation method and dynamic generating system of web page code

Country Status (1)

Country Link
CN (1) CN104572035B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204872B (en) * 2015-11-10 2018-10-19 中国建设银行股份有限公司 A kind of typing page generation method and device
CN105892964A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Block configuration method, block display method, server, terminal equipment and communication system
CN106997298B (en) * 2016-01-22 2021-08-06 菜鸟智能物流控股有限公司 Application resource acquisition method and device
CN107168684B (en) * 2016-03-07 2021-02-26 阿里巴巴(中国)有限公司 Method and device for generating content editing form
CN106354748A (en) * 2016-08-15 2017-01-25 北京数码视讯科技股份有限公司 Webpage generation method and device
CN106569824B (en) * 2016-11-07 2019-08-13 腾讯科技(深圳)有限公司 Method and apparatus, the method and apparatus of page rendering of page data compiling
CN107193549A (en) * 2017-04-14 2017-09-22 弘成科技发展有限公司 Webpage quick development method based on metadata
CN107133313A (en) * 2017-05-02 2017-09-05 山东浪潮通软信息科技有限公司 Realize method and system, service end, the client of configurable query page
CN107463685A (en) * 2017-08-10 2017-12-12 深圳峰创智诚科技有限公司 A kind of method and device for generating combinatorial search frame
CN108874384B (en) * 2018-05-31 2023-06-02 康键信息技术(深圳)有限公司 Terminal device, server, web page data processing method, and computer storage medium
CN109408057B (en) * 2018-10-23 2022-03-04 网易传媒科技(北京)有限公司 Method, device, medium and computing equipment for automatically generating codes
CN109542438A (en) * 2018-11-19 2019-03-29 成都淞幸科技有限责任公司 One kind being based on visual chart development approach
CN110058856B (en) * 2019-04-28 2023-08-01 恒生电子股份有限公司 Page configuration method and device
CN110297636B (en) * 2019-07-03 2023-06-27 广州鲁邦通物联网科技股份有限公司 Page automatic generation and parameter management method, system and device based on page configuration file
CN111191115B (en) * 2019-12-10 2022-10-11 未鲲(上海)科技服务有限公司 Information pushing method and device based on user data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902673A (en) * 2011-07-25 2013-01-30 北大方正集团有限公司 Method and device for dynamically generating web pages
CN103164443A (en) * 2011-12-14 2013-06-19 腾讯科技(深圳)有限公司 Method and device of picture merging
CN103176778A (en) * 2011-12-21 2013-06-26 北大方正集团有限公司 Method and device for webpage development

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7770106B2 (en) * 2006-03-17 2010-08-03 Microsoft Corporation Dynamic generation of compliant style sheets from non-compliant style sheets
US20070288644A1 (en) * 2006-06-07 2007-12-13 Cesar Augusto Rojas Systems and methods for developing and running applications in a web-based computing environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902673A (en) * 2011-07-25 2013-01-30 北大方正集团有限公司 Method and device for dynamically generating web pages
CN103164443A (en) * 2011-12-14 2013-06-19 腾讯科技(深圳)有限公司 Method and device of picture merging
CN103176778A (en) * 2011-12-21 2013-06-26 北大方正集团有限公司 Method and device for webpage development

Also Published As

Publication number Publication date
CN104572035A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104572035B (en) The dynamic creation method and dynamic generating system of web page code
CN106528129B (en) A kind of Web application interface generation system and method
CN104484216B (en) Service interface document and on-line testing instrument generation method, device
CN105068815B (en) Page editing device interactive device and method
CN109597614A (en) A kind of business page method for customizing and system
CN110192210A (en) Building and processing are used for the calculating figure of dynamic, structured machine learning model
CN108352003A (en) It is presented by the single choice or multiselect data of Cooperative Database service
CN107958016A (en) Function pages method for customizing and application server
US9471213B2 (en) Chaining applications
US8782597B2 (en) Ontology updating apparatus, method and system
CN106469220B (en) Method and system for generating dynamic effect page
CN106909543A (en) The method for mode matching and device of a kind of regulation engine
CN104572644A (en) Database updating device and database updating method
CN110175029A (en) The forming method of front-end and back-end automatically dispose tool based on data analysis
CN111414166A (en) Code generation method, device, equipment and storage medium
CN109806592A (en) A kind of monitoring method and device of game resource
CN112507273A (en) Webpage generating method and device and electronic equipment
US9934291B2 (en) Dynamic presentation of a results set by a form-based software application
CN113268227A (en) Zero-code visualization software development platform and development method
CN106462933A (en) Using content structure to socially connect users
CN109271160A (en) Active rule construction method, device and computer system, medium
CN110968314A (en) Page generation method and device
CN111813739A (en) Data migration method and device, computer equipment and storage medium
CN110309364A (en) A kind of information extraction method and device
CN109947435A (en) The dispositions method and system of server cluster software environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220621

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180504