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.
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.