CN104572035A - Dynamic generation method and dynamic generation system of webpage codes - Google Patents

Dynamic generation method and dynamic generation system of webpage codes Download PDF

Info

Publication number
CN104572035A
CN104572035A CN201310472697.8A CN201310472697A CN104572035A CN 104572035 A CN104572035 A CN 104572035A CN 201310472697 A CN201310472697 A CN 201310472697A CN 104572035 A CN104572035 A CN 104572035A
Authority
CN
China
Prior art keywords
web page
parameter
configuration parameter
webpage
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.)
Granted
Application number
CN201310472697.8A
Other languages
Chinese (zh)
Other versions
CN104572035B (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 invention provides a dynamic generation method of webpage codes. The dynamic generation method of the webpage codes comprises the following steps: predefining and storing corresponding configuration parameters at a server side according to all the elements used for generating a webpage; selecting the configuration parameters as required according to characteristic information of a to-be-generated webpage, and splicing the selected configuration parameters into a predetermined format by the server side; returning the configuration parameters of the predetermined format to a client side and analyzing by using corresponding manners so as to obtain codes of the to-be-generated webpage. The invention also discloses a dynamic generation system of corresponding webpage codes. By virtue of the technical scheme, the webpage codes can be flexibly and dynamically generated on the basis of the configuration parameters; the individual requirements of different users can be met; the operation load of the server side can be reduced on the basis of respective operations of the server side and the client side; the working efficiency and the stability can be improved.

Description

The dynamic creation method of web page code and dynamic generating system
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
Along with the development of Web technology, and various intelligent terminal is universal, and the individual demand of user becomes abnormal abundant.For same Web application system, often different users has different demands.Meanwhile, even if the identical one group of client of demand also may use different terminals, this just makes the code revision of Web application system and release maintenance become abnormal difficult.
Therefore, for identical Web application system, how to reduce the difference of individual demand and terminal device and the development difficulty that causes, improve the recycling rate of waterused of exploitation code, become technical matters urgently to be resolved hurrily at present.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of new technical scheme, can based on configurationization parameter, flexibly, dynamically generating web page code, contributes to the individual demand meeting different user.
In view of this, the present invention proposes a kind of dynamic creation method of web page code, comprising: according to all elements for generating web page, also store corresponding configuration parameter in server end predefine; According to the characteristic information of webpage to be generated, the configuration parameter needed for selection, and by described server end, selected configuration parameter is assembled into preset format; By the configuration parameter retrieval client of preset format, and corresponding mode is used to carry out parse operation, to obtain the code of described webpage to be generated.
In this technical scheme, for all elements required during generating web page, various controls, form, button, input frame etc. that such as webpage may use, generate corresponding configuration parameter all in advance, make when really needing generating web page, only need to select from predefined configurationization parameter, and based on the configuration parameter selected, the code of required webpage can be generated.For the difference that individual demand or the terminal device of different user cause, the code of each configurationization parameter always can be reused, thus reduces repeatability and the difficulty of exploitation.
By completing definition and the storage of configurationization parameter at server end, and assembled to selected configuration parameter, be conducive to making full use of the powerful arithmetic capability of server end and huge storage space; And by resolving in client executing the configuration parameter of preset format, contribute to the computational load sharing and reduce server end, especially, when the complex structure of more, the to be generated webpage of number of users, contribute to obtaining better development environment and processing speed faster.
In technique scheme, preferably, also comprise: the configuration parameter being stored in described server end is classified; And the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
In this technical scheme, for the configuration parameter that elements different on webpage is corresponding, need to use different modes to resolve; By classifying to configurationization parameter in advance, contributing to determining the required analysis mode used fast, thus improving the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the configuration parameter of every kind, corresponding page control on generating web page.
In this technical scheme, based on a kind of comparatively concrete embodiment, for the page control of configurationization parameter correspondence on webpage, classification process can be carried out to it.
In above-mentioned arbitrary technical scheme, preferably, also comprise: determine required web page display data at server end, and by described server end, described web page display data are assembled into preset format; By the web page display data retrieval client of preset format, and corresponding mode is used to carry out parse operation, to improve the code of described webpage to be generated.
In this technical scheme, based on configurationization parameter, the web page code of generation only for the formation of the framework of webpage, even if but the webpage of identical frames, also can deposit difference in terms of content, the renewal of such as web page contents.Therefore, by the assembled of web page display data and parse operation, made web page code perfect further.
Certainly, obviously also can the framework of only generating web page, and for the different page controls in this framework, can add wherein more by other means and fill concrete web page display data.
In above-mentioned arbitrary technical scheme, preferably, also comprise: according to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated; And the analysis mode using the configuration parameter that is associated corresponding, parse operation is performed to described web page display data.
In this technical scheme, because web page display data need finally to be filled in the concrete control in webpage, content in such as form, textbox etc., then for configuration parameter corresponding to same control and web page display data, need to adopt identical analysis mode to resolve, to guarantee the accuracy of analysis result.
In above-mentioned arbitrary technical scheme, preferably, also comprise: generating web page style sheet, in described webpage style sheet, comprise the information of the configuration parameter be associated with the characteristic information of described webpage to be generated; For the webpage style sheet that present terminal equipment choosing is specified, and according to the information of the configuration parameter comprised in described webpage style sheet of specifying, generate corresponding web page code.
In this technical scheme, by generating web page style sheet, make for identical web page frame, do not need all to reselect required configuration parameter at every turn, and directly webpage style sheet is selected, thus contribute to reducing operation complexity, improve the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, also comprise: described preset format is json form or xml form.
In this technical scheme, configurationization parameter can be assemblied into multiple preset format, such as json form or xml form etc.Wherein, when using json form, because it is more general, simple, and the data volume generated is little, redundant information is few, contributes to shortening fetching the time to client, and reduces difficulty and the complexity of resolving, improves the development efficiency of webpage.
The invention allows for a kind of dynamic generating system of web page code, comprise server end and client, wherein, described server end comprises: parameter definition unit, is used for all elements of generating web page, the configuration parameter that predefine is corresponding for basis; Parameter storage unit, for storing described configurationization parameter; Parameter selection unit, for the characteristic information according to webpage to be generated, the configuration parameter needed for selection; The assembled unit of parameter, for being assembled into preset format by selected configuration parameter; Described client comprises: Parameter analysis of electrochemical unit, for the configuration parameter retrieval client by preset format, and uses corresponding mode to carry out parse operation, to obtain the code of described webpage to be generated.
In this technical scheme, for all elements required during generating web page, various controls, form, button, input frame etc. that such as webpage may use, generate corresponding configuration parameter all in advance, make when really needing generating web page, only need to select from predefined configurationization parameter, and based on the configuration parameter selected, the code of required webpage can be generated.For the difference that individual demand or the terminal device of different user cause, the code of each configurationization parameter always can be reused, thus reduces repeatability and the difficulty of exploitation.
By completing definition and the storage of configurationization parameter at server end, and assembled to selected configuration parameter, be conducive to making full use of the powerful arithmetic capability of server end and huge storage space; And by resolving in client executing the configuration parameter of preset format, contribute to the computational load sharing and reduce server end, especially, when the complex structure of more, the to be generated webpage of number of users, contribute to obtaining better development environment and processing speed faster.
In technique scheme, preferably, described server end also comprises: parameter classifying unit, for classifying to the configuration parameter being stored in described server end; Wherein, described Parameter analysis of electrochemical unit also for: according to the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
In this technical scheme, for the configuration parameter that elements different on webpage is corresponding, need to use different modes to resolve; By classifying to configurationization parameter in advance, contributing to determining the required analysis mode used fast, thus improving the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, the configuration parameter of every kind, corresponding page control on generating web page.
In this technical scheme, based on a kind of comparatively concrete embodiment, for the page control of configurationization parameter correspondence on webpage, classification process can be carried out to it.
In above-mentioned arbitrary technical scheme, preferably, described server end also comprises: data determination unit, for determining required web page display data, described web page display data are assembled into preset format by the assembled unit of described parameter; Wherein, described Parameter analysis of electrochemical unit also for: by the web page display data retrieval client of preset format, and use corresponding mode to carry out parse operation, to improve the code of described webpage to be generated.
In this technical scheme, based on configurationization parameter, the web page code of generation only for the formation of the framework of webpage, even if but the webpage of identical frames, also can deposit difference in terms of content, the renewal of such as web page contents.Therefore, by the assembled of web page display data and parse operation, made web page code perfect further.
Certainly, obviously also can the framework of only generating web page, and for the different page controls in this framework, can add wherein more by other means and fill concrete web page display data.
In above-mentioned arbitrary technical scheme, preferably, described Parameter analysis of electrochemical unit also for: according to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated, and the analysis mode using the configuration parameter that is associated corresponding, parse operation is performed to described web page display data.
In this technical scheme, because web page display data need finally to be filled in the concrete control in webpage, content in such as form, textbox etc., then for configuration parameter corresponding to same control and web page display data, need to adopt identical analysis mode to resolve, to guarantee the accuracy of analysis result.
In above-mentioned arbitrary technical scheme, preferably, described server end also comprises: style sheet generation unit, for generating web page style sheet, comprises the information of the configuration parameter be associated with the characteristic information of described webpage to be generated in described webpage style sheet; Style sheet selection unit, for the webpage style sheet of specifying for present terminal equipment choosing, for the information according to the configuration parameter comprised in described webpage style sheet of specifying, generates corresponding web page code.
In this technical scheme, by generating web page style sheet, make for identical web page frame, do not need all to reselect required configuration parameter at every turn, and directly webpage style sheet is selected, thus contribute to reducing operation complexity, improve the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, described preset format is json form or xml form.
In this technical scheme, configurationization parameter can be assemblied into multiple preset format, such as json form or xml form etc.Wherein, when using json form, because it is more general, simple, and the data volume generated is little, redundant information is few, contributes to shortening fetching the time to client, and reduces difficulty and the complexity of resolving, improves the development efficiency of webpage.
By above technical scheme, can based on configurationization parameter, flexibly, dynamically generating web page code, contribute to the individual demand meeting different user.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Accompanying drawing explanation
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 generated according to an embodiment of the invention;
Fig. 5 shows the schematic diagram of the idiographic flow determining the disposal route used according to an embodiment of the invention.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
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, comprising: step 102 according to an embodiment of the invention, according to all elements for generating web page, also stores corresponding configuration parameter in server end predefine; Step 104, according to the characteristic information of webpage to be generated, the configuration parameter needed for selection, and by described server end, selected configuration parameter is assembled into preset format; Step 106, by the configuration parameter retrieval client of preset format, and uses corresponding mode to carry out parse operation, to obtain the code of described webpage to be generated.
In this technical scheme, for all elements required during generating web page, various controls, form, button, input frame etc. that such as webpage may use, generate corresponding configuration parameter all in advance, make when really needing generating web page, only need to select from predefined configurationization parameter, and based on the configuration parameter selected, the code of required webpage can be generated.For the difference that individual demand or the terminal device of different user cause, the code of each configurationization parameter always can be reused, thus reduces repeatability and the difficulty of exploitation.
By completing definition and the storage of configurationization parameter at server end, and assembled to selected configuration parameter, be conducive to making full use of the powerful arithmetic capability of server end and huge storage space; And by resolving in client executing the configuration parameter of preset format, contribute to the computational load sharing and reduce server end, especially, when the complex structure of more, the to be generated webpage of number of users, contribute to obtaining better development environment and processing speed faster.
In technique scheme, preferably, also comprise: the configuration parameter being stored in described server end is classified; And the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
In this technical scheme, for the configuration parameter that elements different on webpage is corresponding, need to use different modes to resolve; By classifying to configurationization parameter in advance, contributing to determining the required analysis mode used fast, thus improving the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the configuration parameter of every kind, corresponding page control on generating web page.
In this technical scheme, based on a kind of comparatively concrete embodiment, for the page control of configurationization parameter correspondence on webpage, classification process can be carried out to it.
In above-mentioned arbitrary technical scheme, preferably, also comprise: determine required web page display data at server end, and by described server end, described web page display data are assembled into preset format; By the web page display data retrieval client of preset format, and corresponding mode is used to carry out parse operation, to improve the code of described webpage to be generated.
In this technical scheme, based on configurationization parameter, the web page code of generation only for the formation of the framework of webpage, even if but the webpage of identical frames, also can deposit difference in terms of content, the renewal of such as web page contents.Therefore, by the assembled of web page display data and parse operation, made web page code perfect further.
Certainly, obviously also can the framework of only generating web page, and for the different page controls in this framework, can add wherein more by other means and fill concrete web page display data.
In above-mentioned arbitrary technical scheme, preferably, also comprise: according to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated; And the analysis mode using the configuration parameter that is associated corresponding, parse operation is performed to described web page display data.
In this technical scheme, because web page display data need finally to be filled in the concrete control in webpage, content in such as form, textbox etc., then for configuration parameter corresponding to same control and web page display data, need to adopt identical analysis mode to resolve, to guarantee the accuracy of analysis result.
In above-mentioned arbitrary technical scheme, preferably, also comprise: generating web page style sheet, in described webpage style sheet, comprise the information of the configuration parameter be associated with the characteristic information of described webpage to be generated; For the webpage style sheet that present terminal equipment choosing is specified, and according to the information of the configuration parameter comprised in described webpage style sheet of specifying, generate corresponding web page code.
In this technical scheme, by generating web page style sheet, make for identical web page frame, do not need all to reselect required configuration parameter at every turn, and directly webpage style sheet is selected, thus contribute to reducing operation complexity, improve the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, also comprise: described preset format is json form or xml form.
In this technical scheme, configurationization parameter can be assemblied into multiple preset format, such as json form or xml form etc.Wherein, when using json form, because it is more general, simple, and the data volume generated is little, redundant information is few, contributes to shortening fetching the time to client, and reduces difficulty and the complexity of resolving, improves the development efficiency of webpage.
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 Figure 2, the dynamic generating system 200 of web page code according to an embodiment of the invention, comprise server end 202 and client 204, wherein, described server end 202 comprises: parameter definition unit 202A, the all elements of generating web page is used for, the configuration parameter that predefine is corresponding for basis; Parameter storage unit 202B, for storing described configurationization parameter; Parameter selection unit 202C, for the characteristic information according to webpage to be generated, the configuration parameter needed for selection; The assembled unit 202D of parameter, for being assembled into preset format by selected configuration parameter; Described client 204 comprises: Parameter analysis of electrochemical unit 204A, for the configuration parameter retrieval client 204 by preset format, and uses corresponding mode to carry out parse operation, to obtain the code of described webpage to be generated.
In this technical scheme, for all elements required during generating web page, various controls, form, button, input frame etc. that such as webpage may use, generate corresponding configuration parameter all in advance, make when really needing generating web page, only need to select from predefined configurationization parameter, and based on the configuration parameter selected, the code of required webpage can be generated.For the difference that individual demand or the terminal device of different user cause, the code of each configurationization parameter always can be reused, thus reduces repeatability and the difficulty of exploitation.
By completing definition and the storage of configurationization parameter at server end 202, and assembled to selected configuration parameter, be conducive to making full use of the powerful arithmetic capability of server end 202 and huge storage space; And by parsing will be performed to the configuration parameter of preset format in client 204, contribute to the computational load sharing and reduce server end 202, especially, when the complex structure of more, the to be generated webpage of number of users, contribute to obtaining better development environment and processing speed faster.
In technique scheme, preferably, described server end 202 also comprises: parameter classifying unit 202E, for classifying to the configuration parameter being stored in described server end 202; Wherein, described Parameter analysis of electrochemical unit 204A also for: according to the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
In this technical scheme, for the configuration parameter that elements different on webpage is corresponding, need to use different modes to resolve; By classifying to configurationization parameter in advance, contributing to determining the required analysis mode used fast, thus improving the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, the configuration parameter of every kind, corresponding page control on generating web page.
In this technical scheme, based on a kind of comparatively concrete embodiment, for the page control of configurationization parameter correspondence on webpage, classification process can be carried out to it.
In above-mentioned arbitrary technical scheme, preferably, described server end 202 also comprises: data determination unit 202F, for determining required web page display data, described web page display data are assembled into preset format by described parameter assembled unit 202D; Wherein, described Parameter analysis of electrochemical unit 204A also for: by the web page display data retrieval client 204 of preset format, and use corresponding mode to carry out parse operation, to improve the code of described webpage to be generated.
In this technical scheme, based on configurationization parameter, the web page code of generation only for the formation of the framework of webpage, even if but the webpage of identical frames, also can deposit difference in terms of content, the renewal of such as web page contents.Therefore, by the assembled of web page display data and parse operation, made web page code perfect further.
Certainly, obviously also can the framework of only generating web page, and for the different page controls in this framework, can add wherein more by other means and fill concrete web page display data.
In above-mentioned arbitrary technical scheme, preferably, described Parameter analysis of electrochemical unit 204A also for: according to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated, and the analysis mode using the configuration parameter that is associated corresponding, parse operation is performed to described web page display data.
In this technical scheme, because web page display data need finally to be filled in the concrete control in webpage, content in such as form, textbox etc., then for configuration parameter corresponding to same control and web page display data, need to adopt identical analysis mode to resolve, to guarantee the accuracy of analysis result.
In above-mentioned arbitrary technical scheme, preferably, described server end 202 also comprises: style sheet generation unit 202G, for generating web page style sheet, comprises the information of the configuration parameter be associated with the characteristic information of described webpage to be generated in described webpage style sheet; Style sheet selection unit 202H, for the webpage style sheet of specifying for present terminal equipment choosing, for the information according to the configuration parameter comprised in described webpage style sheet of specifying, generates corresponding web page code.
In this technical scheme, by generating web page style sheet, make for identical web page frame, do not need all to reselect required configuration parameter at every turn, and directly webpage style sheet is selected, thus contribute to reducing operation complexity, improve the formation efficiency of web page code.
In above-mentioned arbitrary technical scheme, preferably, described preset format is json form or xml form.
In this technical scheme, configurationization parameter can be assemblied into multiple preset format, such as json form or xml form etc.Wherein, when using json form, because it is more general, simple, and the data volume generated is little, redundant information is few, contributes to shortening fetching the time to client 204, and reduces difficulty and the complexity of resolving, improves the development efficiency of webpage.
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 comprises according to an embodiment of the invention:
Step 302, at server end, definition configurationization parameter.
Particularly, when referring to for auto-building html files, likely need the element used, such as a page comprises list area, editing area, query region, then need to define relevant parameter type.Configurationization parameter can be divided into: button class parameter, inquiry class parameter, list class parameter, editor's class parameter, verification class parameter, interface text parameter, other parameter etc.
For the ease of storing and calling, also need the information defining configurationization parameter, refer to and the information of all kinds of configuration parameter is carried out abstract, every bar parameter information is kept in a parameter list with the form of data-base recording.Wherein, the row field of parameter list can comprise:
Parameter ID, parameter variety coding, parameter variety and parameter description, parameter name, parameter value, parameter format, remarks, whether use, the number of sequence, spare fields 1, spare fields 2, spare fields 3, spare fields 4, spare fields 5 etc.
Wherein, " parameter variety coding " and " parameter name " is for the Query Location of parameter; " parameter variety and parameter describe " and " remarks " are only used as to describe explanation; Whether " parameter value ", " parameter format ", " enabling ", " sequence number " and 5 spare fields are then used for the various configurationization effects of defined parameters, the configuration core content that " parameter format " is wherein parameter list, its value is a string character string, defines various configurationization effect by everybody numerical value in character string.
More specifically, as the parameter of an editing type, have with properties: parameter ID, parameter variety coding, parameter variety and parameter description, parameter name, parameter value, parameter format, remarks, whether use, the number of sequence and 5 attributes for subsequent use.Parameter format is wherein the core of parameter, comprises following characteristics: whether hide time newly-built, newly-built time whether read-only, amendment time whether hide, amendment time whether read-only, type (comprising: character string, numeral, date, drop-down list, text box, radio box, multiselect frame, Password Input frame, files passe, multiselect tree control, single choice tree control etc.), whether must fill out, length check, whether there are special verification, title width percentage, content width percentage, Database field mark when amendment (newly-built, whether preserve) etc.
It should be noted that, dissimilar configuration parameter, also may correspond to identical parameter information.
Step 304A, obtains page presentation data.Specifically refer to, for current target web, need to obtain and will carry out the data of showing on this target web, i.e. page presentation data.
Step 304B, obtains the configuration parameter needed for the page.Specifically refer to, the dissimilar page needs dissimilar configuration parameter, as the page needing list to show, then need list class parameter and some other auxiliary parameter, which parameter information is list class parameter specifically comprise then has different parameter varieties according to different page functions, and each parameter variety can comprise multiple relevant parameter information.Wherein, multiple configurationization parameters corresponding for often kind of page function concentrated, i.e. a parameter variety, then for required page function, can specify required configuration parameter fast, contribute to raising the efficiency.
The page presentation data of acquisition are assemblied into the parameter of json form by step 306A.
Step 306B, is assemblied into the parameter of json form by the configuration parameter of acquisition.
It should be noted that, step 304A, 304B and step 306A, 306B, just in order to the processing procedure to page presentation data and configurationization parameter is described respectively, and do not mean that the tandem of certain existence " A-B ".
Wherein, for by the assembled json parameter (parameter of json form) of page presentation data, its json parameter format example is as follows:
And in step 306B, for by the assembled json parameter of configurationization parameter, then for an edit page, json parameter format is as follows:
Step 308, all fetches client by all json parameters generated at server end, adopts the mode of js to resolve respectively.Wherein, specifically need the type corresponding to each json parameter or classification, determine corresponding disposal route.
Step 310, particularly, such as the json parameter of drop-down list form, calls drop-down list parameter assembling method, resolves it; For the json parameter of text box form, call text box parameter assembling method, it is resolved etc.
Step 312, utilize all data parsed in step 310, according to the form of different parameter informations, and the attribute such as other such as orderby, paravalue, also has css pattern classification, various types of page control can be generated, and then the html code of assembled generation full page, to generate final Webpage as shown in Figure 4.
Wherein, when by calling corresponding disposal route and resolving json parameter, after specifically can carrying out type identification for each json parameter respectively, from storehouse, call corresponding disposal route; Or, also can adopt the mode shown in Fig. 5.
As shown in Figure 5, treatment step comprises:
Step 502, fetches the json parameter of all generations from server end.
Step 504, identifies all parameter types involved by json parameter.
Step 506, calls involved all disposal routes.
Step 508, for each json parameter, determines its parameter type.
Step 510, for the type of this json parameter, uses corresponding disposal route to process.
In above-mentioned steps, by first obtaining all disposal routes related to, such as first can be placed in buffer memory, then when processing each json parameter, can directly inquire about from buffer memory and call, contribute to raising the efficiency.
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered in correlation technique, be difficult to meet various individual demand and a large amount of terminal difference.Therefore, the invention provides a kind of dynamic creation method of web page code and a kind of dynamic generating system of web page code, can based on configurationization parameter, flexibly, dynamically generating web page code, contribute to the individual demand meeting different user.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a dynamic creation method for web page code, is characterized in that, comprising:
According to all elements for generating web page, also store corresponding configuration parameter in server end predefine;
According to the characteristic information of webpage to be generated, the configuration parameter needed for selection, and by described server end, selected configuration parameter is assembled into preset format;
By the configuration parameter retrieval client of preset format, and corresponding mode is used to carry out parse operation, to obtain the code of described webpage to be generated.
2. the dynamic creation method of web page code according to claim 1, is characterized in that, also comprises:
The configuration parameter being stored in described server end is classified; And
According to the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
3. the dynamic creation method of web page code according to claim 2, is characterized in that, also comprises:
The configuration parameter of every kind, corresponding page control on generating web page.
4. the dynamic creation method of web page code according to claim 2, is characterized in that, also comprises:
Determine required web page display data at server end, and by described server end, described web page display data are assembled into preset format;
By the web page display data retrieval client of preset format, and corresponding mode is used to carry out parse operation, to improve the code of described webpage to be generated.
5. the dynamic creation method of web page code according to claim 4, is characterized in that, also comprises:
According to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated; And
The analysis mode that the configuration parameter that use is associated is corresponding, performs parse operation to described web page display data.
6. the dynamic creation method of web page code according to claim 1, is characterized in that, also comprises:
Generating web page style sheet, comprises the information of the configuration parameter be associated with the characteristic information of described webpage to be generated in described webpage style sheet;
For the webpage style sheet that present terminal equipment choosing is specified, and according to the information of the configuration parameter comprised in described webpage style sheet of specifying, generate corresponding web page code.
7. the dynamic creation method of web page code according to any one of claim 1 to 6, is characterized in that, also comprises:
Described preset format is json form or xml form.
8. a dynamic generating system for web page code, is characterized in that, comprises server end and client, wherein,
Described server end comprises:
Parameter definition unit, is used for all elements of generating web page, the configuration parameter that predefine is corresponding for basis;
Parameter storage unit, for storing described configurationization parameter;
Parameter selection unit, for the characteristic information according to webpage to be generated, the configuration parameter needed for selection;
The assembled unit of parameter, for being assembled into preset format by selected configuration parameter;
Described client comprises:
Parameter analysis of electrochemical unit, for the configuration parameter retrieval client by preset format, and uses corresponding mode to carry out parse operation, to obtain the code of described webpage to be generated.
9. the dynamic generating system of web page code according to claim 8, is characterized in that, described server end also comprises:
Parameter classifying unit, for classifying to the configuration parameter being stored in described server end;
Wherein, described Parameter analysis of electrochemical unit also for: according to the classification belonging to selected configuration parameter, determine the analysis mode of the configuration parameter being applied to corresponding preset format.
10. the dynamic generating system of web page code according to claim 9, is characterized in that, the configuration parameter of every kind, corresponding page control on generating web page.
The dynamic generating system of 11. web page codes according to claim 9, is characterized in that, described server end also comprises:
Data determination unit, for determining required web page display data, to be assembled into preset format by the assembled unit of described parameter by described web page display data;
Wherein, described Parameter analysis of electrochemical unit also for: by the web page display data retrieval client of preset format, and use corresponding mode to carry out parse operation, to improve the code of described webpage to be generated.
The dynamic generating system of 12. web page codes according to claim 11, is characterized in that, described Parameter analysis of electrochemical unit also for:
According to the display location of described web page display data on described webpage to be generated, determine the configuration parameter be associated, and the analysis mode using the configuration parameter that is associated corresponding, parse operation is performed to described web page display data.
The dynamic generating system of the web page code according to any one of 13. according to Claim 8 to 12, is characterized in that, described server end also comprises:
Style sheet generation unit, for generating web page style sheet, comprises the information of the configuration parameter be associated with the characteristic information of described webpage to be generated in described webpage style sheet;
Style sheet selection unit, for the webpage style sheet of specifying for present terminal equipment choosing, for the information according to the configuration parameter comprised in described webpage style sheet of specifying, generates corresponding web page code.
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 true CN104572035A (en) 2015-04-29
CN104572035B 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)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204872A (en) * 2015-11-10 2015-12-30 中国建设银行股份有限公司 Imputing page generating method and device
CN106354748A (en) * 2016-08-15 2017-01-25 北京数码视讯科技股份有限公司 Webpage generation method and device
CN106569824A (en) * 2016-11-07 2017-04-19 腾讯科技(深圳)有限公司 Page data compiling method and apparatus, and page rendering method and apparatus
WO2017096899A1 (en) * 2015-12-10 2017-06-15 乐视控股(北京)有限公司 Block configuration method, block display method, server, terminal device, and communication system
WO2017124976A1 (en) * 2016-01-22 2017-07-27 阿里巴巴集团控股有限公司 Method and device for acquiring application resource
CN107133313A (en) * 2017-05-02 2017-09-05 山东浪潮通软信息科技有限公司 Realize method and system, service end, the client of configurable query page
CN107168684A (en) * 2016-03-07 2017-09-15 广州市动景计算机科技有限公司 A kind of method and device for generating Edition Contains list
CN107193549A (en) * 2017-04-14 2017-09-22 弘成科技发展有限公司 Webpage quick development method based on metadata
CN107463685A (en) * 2017-08-10 2017-12-12 深圳峰创智诚科技有限公司 A kind of method and device for generating combinatorial search frame
CN108874384A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Terminal device, server, web data processing method and computer storage medium
CN109408057A (en) * 2018-10-23 2019-03-01 网易传媒科技(北京)有限公司 Method, apparatus, medium and the calculating equipment of automatic code generating
CN109542438A (en) * 2018-11-19 2019-03-29 成都淞幸科技有限责任公司 One kind being based on visual chart development approach
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
CN110297636A (en) * 2019-07-03 2019-10-01 广州鲁邦通物联网科技有限公司 A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN111191115A (en) * 2019-12-10 2020-05-22 未鲲(上海)科技服务有限公司 Information pushing method and device based on user data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220480A1 (en) * 2006-03-17 2007-09-20 Microsoft Corporation Dynamic generation of cascading 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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220480A1 (en) * 2006-03-17 2007-09-20 Microsoft Corporation Dynamic generation of cascading 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
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

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204872A (en) * 2015-11-10 2015-12-30 中国建设银行股份有限公司 Imputing page generating method and device
WO2017096899A1 (en) * 2015-12-10 2017-06-15 乐视控股(北京)有限公司 Block configuration method, block display method, server, terminal device, and communication system
WO2017124976A1 (en) * 2016-01-22 2017-07-27 阿里巴巴集团控股有限公司 Method and device for acquiring application resource
CN107168684A (en) * 2016-03-07 2017-09-15 广州市动景计算机科技有限公司 A kind of method and device for generating Edition Contains list
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
CN106569824A (en) * 2016-11-07 2017-04-19 腾讯科技(深圳)有限公司 Page data compiling method and apparatus, and page rendering method and apparatus
CN106569824B (en) * 2016-11-07 2019-08-13 腾讯科技(深圳)有限公司 Method and apparatus, the method and apparatus of page rendering of page data compiling
WO2018082562A1 (en) * 2016-11-07 2018-05-11 腾讯科技(深圳)有限公司 Method and device for compiling page data and rendering page, and storage medium
US10776567B2 (en) 2016-11-07 2020-09-15 Tencent Technology (Shenzhen) Company Limited Method for compiling page data, method, device and storage medium for page rendering
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
CN108874384A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Terminal device, server, web data processing method and computer storage medium
CN109408057A (en) * 2018-10-23 2019-03-01 网易传媒科技(北京)有限公司 Method, apparatus, medium and the calculating equipment of automatic code generating
CN109542438A (en) * 2018-11-19 2019-03-29 成都淞幸科技有限责任公司 One kind being based on visual chart development approach
CN110058856A (en) * 2019-04-28 2019-07-26 恒生电子股份有限公司 Page configuration method and device
CN110058856B (en) * 2019-04-28 2023-08-01 恒生电子股份有限公司 Page configuration method and device
CN110297636A (en) * 2019-07-03 2019-10-01 广州鲁邦通物联网科技有限公司 A kind of automatic production of HTML page and parameter management method based on page configuration file, system 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
CN111191115A (en) * 2019-12-10 2020-05-22 未鲲(上海)科技服务有限公司 Information pushing method and device based on user data
CN111191115B (en) * 2019-12-10 2022-10-11 未鲲(上海)科技服务有限公司 Information pushing method and device based on user data

Also Published As

Publication number Publication date
CN104572035B (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN104572035A (en) Dynamic generation method and dynamic generation system of webpage codes
CN111104635B (en) Method and device for generating form webpage
CN102799640B (en) Page charger and page loading method
CN106293664A (en) Code generating method and device
CN103383645A (en) Code generation method and system
CN101667171A (en) Method for generating report and report generating device
CN103559184A (en) Form page display method and device
CN101111821A (en) Methods, systems, and data models for describing an electrical device
CN108920147A (en) A kind of Web page construction method, calculates equipment and storage medium at device
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN105786846A (en) Website platform component capable of generating modules in user-defined manner
CN111680478B (en) Report generation method, device, equipment and storage medium based on configuration software
CN108846134A (en) A kind of O&M scheme recommender system and method based on web crawlers
CN110083685B (en) Data configuration method and device for intention recognition
CN104731804A (en) General query framework establishing method and device
CN111562907A (en) Conversion method and system of user-defined interface data
CN115576624A (en) Programming framework optimization method, system, terminal equipment and storage medium
CN113591448B (en) Report generation method, device and storage medium
CN115471582A (en) Map generation method and device, computer equipment and storage medium
CN113515715B (en) Buried point event code generation method, buried point event code processing method and related equipment
CN111723177B (en) Modeling method and device of information extraction model and electronic equipment
CN114625372A (en) Automatic component compiling method and device, computer equipment and storage medium
CN109635175B (en) Page data splicing method and device, readable storage medium and electronic equipment
CN113778799A (en) Flow node-based embedded point configuration method, device, equipment and medium
CN113377368A (en) Project development method, device, server and storage medium

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

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.

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

Granted publication date: 20180504

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