CN106354748A - Webpage generation method and device - Google Patents

Webpage generation method and device Download PDF

Info

Publication number
CN106354748A
CN106354748A CN201610669046.1A CN201610669046A CN106354748A CN 106354748 A CN106354748 A CN 106354748A CN 201610669046 A CN201610669046 A CN 201610669046A CN 106354748 A CN106354748 A CN 106354748A
Authority
CN
China
Prior art keywords
webpage
parameter
web page
configuration information
current web
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610669046.1A
Other languages
Chinese (zh)
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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies 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 Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201610669046.1A priority Critical patent/CN106354748A/en
Publication of CN106354748A publication Critical patent/CN106354748A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention provides a webpage generation method and device, wherein the method includes the following steps that: the server receives the configuration information of the current webpage through the editing interface of the webpage configuration file, and saves the information in the webpage configuration file; when receiving the instruction for webpage display, the server will load the webpage configuration file and obtain the configuration information of the current webpage stored in the webpage configuration file; the server calls the public module corresponding to the current webpage for webpage layout operation and parameter display operation of the current webpage, wherein the webpage layout operation is conducted according to the configuration information of webpage display; parameter display operation is conducted according to the webpage display parameter; the public module comprises the cascading style sheet of the current page, browser script language library, and the parser interface and parameter verification interface of webpage configuration file; when the webpage layout operation and parameter display operation are finished, the server confirms that the current webpage is generated. The webpage generation method and device can improve the development efficiency and maintainability of webpage.

Description

A kind of webpage generating method and device
Technical field
The present invention relates to front end development technique field, in particular to a kind of webpage generating method and device.
Background technology
Research staff, when the NMS controlling for equipment control is developed and safeguarded, needs by setting Put, adjust some parameters relevant device is configured, so that each every business of equipment being managed normally is run, or Demand according to equipment user carries out the adjustment of running status.
During above-mentioned NMS actual development is used, due to device requirement renewal, functions of the equipments upgrading Deng change it may appear that the parameter controlling management relevant device being carried out increasing, deleted, changing or scope adjustment etc. being a series of Demand;For this demand, research staff usually takes the corresponding HTML of webpage in direct modification system Html and javascript scripted code completes;During using in system development, the demand change frequently, causes Web page code modification is very loaded down with trivial details, and easy error, and then leads to above-mentioned management system development efficiency low and maintainable Difference.
The problem of and maintainable difference low for above-mentioned webpage development efficiency, not yet proposes effective solution at present.
Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of webpage generating method and device, to improve webpage Development efficiency and maintainability.
In a first aspect, embodiments providing a kind of webpage generating method, comprising: server configures literary composition by webpage The editing interface of part receives the configuration information of current web page, and preserves to webpage configuration file;Wherein, configuration information includes net Page represents configuration information, web page communication configuration information and webpage and represents parameter;Webpage configuration file includes extensible markup language Xml document;When receiving webpage and representing order, server loads webpage configuration file, and obtains in webpage configuration file and protect The configuration information of the current web page deposited;The corresponding public module of server calls current web page carries out page layout to current web page Operation and parameter represent operation;Wherein, page layout operation represents configuration information according to webpage and carries out;Parameter represent operation according to Webpage represents parameter to be carried out;Public module includes the CSS of current page, browser script storehouse, webpage configuration literary composition The parsing interface of part and parameter verification interface;After the completion of page layout operation represents operation with parameter, server determines current Auto-building html files finish.
In conjunction with a first aspect, embodiments providing the first possible embodiment of first aspect, wherein, on State the configuration information obtaining the current web page preserving in webpage configuration file, comprising: the webpage configuration after server will load is civilian Part sends public module corresponding to current web page;Server is connect by calling the parsing of the webpage configuration file of public module Mouthful, webpage configuration file is parsed, obtains the configuration information of current web page;Server receives the current of public module transmission The configuration information of webpage.
In conjunction with a first aspect, the possible embodiment of the second that embodiments provides first aspect, wherein, on State server calls current web page corresponding public module and page layout operation carried out to current web page, comprising: server to work as The webpage that the corresponding public module of front webpage sends in the configuration information of current web page represents configuration information;Server passes through to call The corresponding CSS of configuration information and/or browser script storehouse is represented with webpage, to current net in public module Page carries out page layout operation.
In conjunction with a first aspect, embodiments providing the third possible embodiment of first aspect, wherein, on State server calls current web page corresponding public module line parameter is entered to current web page and represent operation, comprising: server is to working as The corresponding public module of front webpage sends the web page communication configuration information in the configuration information of current web page;Wherein, web page communication Configuration information includes web page communication interface message and communication variables information;Server calls public module, so that public module root Obtain webpage according to web page communication configuration information to server and represent parameter, and parameter is represented according to webpage and current web page is joined Number represents operation;Webpage represents parameter and includes parameter position, parameter name, parameter type and parameter area.
In conjunction with the third possible embodiment of first aspect, embodiments provide the 4th kind of first aspect Possible embodiment, wherein, said method also includes: when receiving parameter setting submiting command, server passes through current The parameter setting of webpage receiving user's input;Server by parameter setting and the corresponding webpage of parameter setting represent parameter send to Public module;Server, by calling the parameter verification interface of public module, represents the parameter area in parameter according to webpage, right Parameter setting is verified;When receive complete parameter setting check command after, parameter setting is preserved by server.
In conjunction with a first aspect, embodiments providing the 5th kind of possible embodiment of first aspect, wherein, on Method of stating also includes: server is updated the data by the public module that the editing interface of public module receives current web page, and protects Deposit to public module.
Second aspect, embodiments provides a kind of auto-building html files device, comprising: configuration information receives and preserves mould Block, for being received the configuration information of current web page by the editing interface of webpage configuration file, and is preserved to webpage configuration file In;Wherein, configuration information includes webpage and represents configuration information, web page communication configuration information and webpage representing parameter;Webpage configures File includes extensible markup language xml document;Configuration information loads acquisition module, represents order for receiving webpage When, load webpage configuration file, and obtain the configuration information of the current web page preserving in webpage configuration file;Operation module, uses In calling, the corresponding public module of current web page carries out page layout operation to current web page and parameter represents operation;Wherein, page Face layout operation represents configuration information according to webpage to be carried out;Parameter represents operation and represents parameter according to webpage and carry out;Public module Connect including the CSS of current page, browser script storehouse, the parsing interface of webpage configuration file and parameter verification Mouthful;Determining module, after the completion of representing operation when page layout operation with parameter, server determines that current web page has generated Finish.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, wherein, on State operation module to include: the first transmitting element, for sending the configuration letter of current web page to the corresponding public module of current web page Webpage in breath represents configuration information;Page layout operating unit, for being joined by calling representing with webpage in public module Confidence ceases corresponding CSS and/or browser script storehouse, carries out page layout operation to current web page.
In conjunction with second aspect, embodiments provide the possible embodiment of the second of second aspect, wherein, on State operation module also to include: the second transmitting element, for sending the configuration of current web page to the corresponding public module of current web page Web page communication configuration information in information;Wherein, web page communication configuration information includes web page communication interface message and communication variables Information;Parameter represents operating unit, is used for calling public module so that public module according to web page communication configuration information to service Device obtains webpage and represents parameter, and represents parameter according to webpage and enter line parameter to current web page and represent operation;Webpage represents parameter Including parameter position, parameter name, parameter type and parameter area.
In conjunction with the possible embodiment of the second of second aspect, embodiments provide second aspect the third Possible embodiment, wherein, said apparatus also include: parameter setting receiver module, receive parameter setting submission for working as During order, by the parameter setting of current web page receiving user's input;Sending module, for by parameter setting and parameter setting pair The webpage answered represents parameter and sends to public module;Correction verification module, for calling the parameter verification interface of public module, according to net Page represents the parameter area in parameter, and parameter setting is verified;Parameter setting preserving module, completes to join for working as to receive After number setting check command, parameter setting is preserved.
A kind of webpage generating method provided in an embodiment of the present invention and device, are connect by the editing interface of webpage configuration file Receive the configuration information of current web page, and preserve to webpage configuration file;This webpage configuration file is loaded by server permissible Obtain the configuration information of the current web page preserving in webpage configuration file;By the corresponding public mould of server calls current web page Block carries out page layout operation to current web page and parameter represents operation, and then server determines that current web page generates and finishes;On The mode of stating can make the differentiation information of webpage separate with public style information, and can only change above-mentioned differentiation information can be complete Becoming upgrading demand of webpage, web page code need not being changed, thus improve development efficiency and the maintainability of webpage.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodiment Figure is briefly described it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
The flow chart that Fig. 1 shows a kind of webpage generating method that the embodiment of the present invention is provided;
Fig. 2 shows a kind of particular flow sheet of webpage generating method that the embodiment of the present invention is provided;
Fig. 3 shows a kind of structure of Webpage generation system based on xml configuration file that the embodiment of the present invention is provided Schematic diagram;
Fig. 4 shows a kind of flow process of webpage generating method based on xml configuration file that the embodiment of the present invention is provided Figure;
Fig. 5 shows a kind of the concrete of webpage generating method based on xml configuration file that the embodiment of the present invention is provided Flow chart;
Fig. 6 shows a kind of structural representation of auto-building html files device that the embodiment of the present invention is provided;
Fig. 7 shows a kind of concrete structure schematic diagram of auto-building html files device that the embodiment of the present invention is provided.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention Middle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment only It is a part of embodiment of the present invention, rather than whole embodiments.The present invention generally described and illustrated in accompanying drawing herein is real The assembly applying example can be arranged with various different configurations and design.Therefore, below to the present invention's providing in the accompanying drawings The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of not making creative work There is other embodiment, broadly fall into the scope of protection of the invention.
The problem of and maintainable difference low in view of existing webpage development efficiency, embodiments provides a kind of net Page generation method and device;This technology can apply to equipment control control system auto-building html files in it is also possible to application In the auto-building html files of other management systems, or the generation of other related web site webpages;This technology can be soft using correlation Part and hardware are realized, and are described below by embodiment.
Embodiment 1
A kind of flow chart of webpage generating method shown in Figure 1, the method comprises the steps:
Step s102, server receives the configuration information of current web page by the editing interface of webpage configuration file, and protects Deposit to webpage configuration file;Wherein, this configuration information includes webpage and represents configuration information, web page communication configuration information and webpage Represent parameter;Above-mentioned webpage configuration file includes extensible markup language xml document;
Wherein, above-mentioned extensible markup language xml belongs to the subset of standard generalized markup language, is a kind of for labelling electricity Subfile and make it have structural markup language.By above-mentioned markup language, various letters between computer, can be processed Breath, can also be used to flag data, defines data type;Therefore, above-mentioned extensible markup language can provide unified method To describe and to exchange the structural data relatively independent with application program or supplier.
Step s104, when receiving webpage and representing order, server loads webpage configuration file, and obtains this webpage and join Put the configuration information of the current web page preserving in file;
Step s106, server calls current web page corresponding public module current web page is carried out page layout operation and Parameter represents operation;Wherein, the operation of this page layout represents configuration information according to webpage and carries out;This parameter represents operation according to net Page represents parameter to be carried out;Above-mentioned public module includes the CSS of current page, browser script storehouse, webpage configuration The parsing interface of file and parameter verification interface;
Preferably, the corresponding public module of above-mentioned server calls current web page can first carry out page cloth to current web page Office's operation;After the completion of the operation of this page layout, above-mentioned server is on the basis of the page layout of current web page, then enters line parameter Represent operation, so that this parameter can be presented on rational placement position.
Step s108, after the completion of page layout operation represents operation with parameter, server determines that current web page has generated Finish.In addition, when page layout operation and parameter represent operation failure, webpage configuration file regenerates.
In actual realization, above-mentioned webpage configuration file preserves the differentiation data of current web page, above-mentioned public module Preserve the public style information that current web page is used;When above-mentioned webpage needs to update it is only necessary to change above-mentioned webpage Configuration file can complete more new task, without research staff, the overall code of webpage is modified.
A kind of webpage generating method provided in an embodiment of the present invention, is received current by the editing interface of webpage configuration file The configuration information of webpage, and preserve to webpage configuration file;This webpage configuration file is loaded by server and can obtain net The configuration information of the current web page preserving in page configuration file;By the corresponding public module of server calls current web page to work as Front webpage carries out page layout operation and parameter represents operation, and then server determines that current web page generates and finishes;Aforesaid way The differentiation information that webpage can be made separates with public style information, can only change above-mentioned differentiation information and can complete webpage Upgrade demand, web page code need not be changed, thus improve development efficiency and the maintainability of webpage.
Specifically, the configuration information of the current web page preserving in above-mentioned acquisition webpage configuration file, comprises the steps: (1) the webpage configuration file after loading is sent public module corresponding to current web page by server;(2) above-mentioned server passes through Call the parsing interface of the webpage configuration file of public module, webpage configuration file is parsed, obtain joining of current web page Confidence ceases;(3) above-mentioned server receives the configuration information of the current web page that public module sends.By the way, server The configuration information for generating the current web page page can be obtained.
In view of needing by public module, current web page to be laid out, the embodiment of the present invention in actual realization, on State server calls current web page corresponding public module and page layout operation is carried out to current web page, comprise the steps: (1) Server sends the webpage in the configuration information of current web page to the corresponding public module of current web page and represents configuration information;(2) Above-mentioned server represents configuration information corresponding CSS and/or browser foot with webpage by calling in public module This language library, carries out page layout operation to current web page.By the way, the layout to current web page can be completed.
Represent in view of also needing to enter line parameter by public module to current web page, the embodiment of the present invention is realized actual When, the corresponding public module of above-mentioned server calls current web page enters line parameter to current web page and represents operation, walks including following Rapid: (1) server sends the web page communication configuration letter in the configuration information of current web page to the corresponding public module of current web page Breath;Wherein, this web page communication configuration information includes web page communication interface message and communication variables information;(2) above-mentioned server is adjusted With public module, so that public module obtains webpage according to web page communication configuration information to server represents parameter, and according to net Page represents parameter and enters line parameter to current web page and represents operation;Above-mentioned webpage represents parameter and includes parameter position, parameter name, ginseng Several classes of type and parameter area.By the way, can complete the parameter of current web page to be represented, thus generating current web page.
Relative parameters setting can be carried out in view of user using this current web page, the embodiment of the present invention is in above-mentioned auto-building html files On the basis of method, also add submission and the method for calibration of parameter, a kind of webpage generating method shown in Figure 2 concrete Flow chart, the method, on the basis of the corresponding flow chart of Fig. 1, also comprises the steps:
Step s202, when receiving parameter setting submiting command, server passes through current web page receiving user's input Parameter setting;
Step s204, above-mentioned parameter setting and the corresponding webpage of parameter setting are represented parameter and send to public mould by server Block;
Step s206, above-mentioned server, by calling the parameter verification interface of public module, represents in parameter according to webpage Parameter area, parameter setting is verified;
Step s208, when receive complete parameter setting check command after, parameter setting is preserved by server.
By the way, user can submit relative parameters setting to conveniently by current web page, when this parameter setting After verification, the corresponding system of this current web page can complete related management control task according to this parameter setting.
Page layout due to above-mentioned current web page may also can update, and the embodiment of the present invention is in actual realization, above-mentioned Webpage generating method also comprises the steps: that server passes through the public module of the editing interface reception current web page of public module Update the data, and preserve to public module.By updating the data of above-mentioned public module, the page cloth of current web page can be completed The renewal of office.
Embodiment 2
Corresponding to a kind of webpage generating method providing in above-described embodiment 1, embodiments provide one kind and be based on The webpage generating method of xml configuration file;In the method, the differentiation between webpage and webpage is all defined on an xml literary composition In part, the identical information of each webpage is saved in public module;The method generates associated nets by way of parsing xml configuration Page.Specifically, a kind of above-mentioned webpage generating method based on xml configuration file parses the life of xml configuration file by public module Become corresponding web page files, when this webpage needs to update, update corresponding xml document and can complete overall webpage renewal.
A kind of structural representation of Webpage generation system based on xml configuration file shown in Figure 3, this system includes Embedded web server 300, public module 302 and the xml configuration file 304 connecting two-by-two;Wherein, this embedded type web service Device 300 and front end page carry out communication interaction;Above-mentioned public module and xml configuration file are arranged at server end, page exhibition Existing used relevant information obtains from this web server.What above-mentioned public module file included that all pages are used in conjunction with connects Mouthful function, specifically include general CSS, general jquery plugin library (being equivalent to browser script storehouse), Xml document parsing interface, front end page and the interactive interface of backstage embedded web server and general parameter verification connect Mouthful.Difference between the different pages defined in above-mentioned xml configuration file;Wherein, the page and embedded type web clothes are specifically defined (this parameter includes parameter name, type, parameter area etc. to the parameter of the interface function of business device communication and variable, webpage representation Deng).
A kind of flow chart of webpage generating method based on xml configuration file shown in Figure 4, the method includes as follows Step:
Step s402, the click page command of server receive user;Wherein, after user clicks on this page, then entering should The entrance (this entrance can be the xx.asp page, and this page definition is in public module) of the page;
Step s404, server loads xml configuration file;
Step s406, the parsing interface parsing xml configuration file of server calls public module;
Step s408, server calls public module completes the Rendering operations of page layout;
Step s410, the data communication interface of server calls public module, according to the correlation of parsing in xml configuration file Field, the forward end page sends data;
Step s412, judges whether data sends successfully, if it is, execution step s414;If not, execution step s416;
Step s414, the interface of server calls public module, according to the data of xml configuration file parsing, complete the page The Rendering operations of data;
Step s416, server reports an error, and shows error information.
Specifically, user is after operation clicks through the page, and it is corresponding that embedded web server loads current page Xml configuration file, parses interface by the xml configuration file in public module and xml configuration file is parsed, obtain Configuration information that the http/https interface used of communication and variable, webpage representation are used and parameter and parameter verification are used The data such as parameter area;After being parsed, public module according to obtaining and can represent related configuration information and completes page wash with watercolours Dye;After the completion of rendering, public module can be according to obtaining in xml configuration file and the relevant configuration that communicates, to embedded type web service Device obtains data, and then completes rendering of data;It is finally completed representing of the page.
A kind of particular flow sheet of webpage generating method based on xml configuration file shown in Figure 5, the method includes Following steps:
Step s502, the parameter setting that server receive user is submitted to;
Step s504, the verification interface function of server calls public module, the parameter according to defined in xml configuration file Verification type and scope, carry out parameter verification to above-mentioned parameter setting;
Step s506, judges whether to verify successfully;If it is, execution step s508;If not, execution step s510;
Step s508, server receives the parameter setting that public module sends;Execution step s512;
Step s510, public module sends the prompting that reports an error;
Step s512, server carries out related setting operation according to the parameter setting receiving;
Step s514, judges whether to arrange successfully;If it is, execution step s518;If not, execution step s516;
Step s516, server sends the prompting that reports an error;
Step s518, terminates.
Specifically, user needs to complete parameter configuration after browsing webpage, triggers submission action;After action triggers, server enters Line parameter verifies, and the rule of this verification is obtained by xml configuration file, and the verification interface of public module is specified according to each parameter Rule parameter is verified;After completing parameter verification, public module is issued to backstage embedded type web clothes packaged for data Business device, server completes the process of data.The realization of said process is according to xml configuration file using packaged unified interface Configuration complete.
By the above-mentioned Webpage generation system based on xml configuration file and method, when the parameter requirements of webpage change, Need to update xml document, corresponding Web page system file is renewable generation.In addition, it is permissible for webpage integral layout style By changing public module and realizing fast custom it is achieved that being completely separated of data and css pattern;Legal verification for parameter Rule also only needs to change the interface function of correction verification module it is not necessary to go to change all of web page files;And the modification of xml document Relatively low to the technical requirements of developer it is achieved that the property of may span across of job content, reduce work difficulty.
Therefore, the embodiment of the present invention can solve the work of loaded down with trivial details modification web page code, reduce repetitive operation, improve Development efficiency.
Embodiment 3
Corresponding to above-described embodiment 1, embodiments provide a kind of auto-building html files device, shown in Figure 6 one The structural representation of kind of auto-building html files device, this device includes following part:
Configuration information receives preserving module 600, for receiving current web page by the editing interface of webpage configuration file Configuration information, and preserve to webpage configuration file;Wherein, this configuration information includes webpage and represents configuration information, web page communication Configuration information and webpage represent parameter;This webpage configuration file includes extensible markup language xml document;
Configuration information loads acquisition module 602, receives preserving module 600 with above-mentioned configuration information and is connected, for when reception To webpage represent order when, load webpage configuration file, and obtain in webpage configuration file preserve current web page configuration letter Breath;
Operation module 604, loads acquisition module 602 with above-mentioned configuration information and is connected, be used for calling current web page corresponding Public module carries out page layout operation to current web page and parameter represents operation;Wherein, this page layout operates according to webpage Represent configuration information to carry out;This parameter represents operation and represents parameter according to webpage and carry out;Above-mentioned public module includes current page CSS, browser script storehouse, the parsing interface of webpage configuration file and parameter verification interface;
Determining module 606, is connected with aforesaid operations module 604, for having operated when page layout operation represents with parameter Cheng Hou, server determines that current web page generates and finishes.
A kind of auto-building html files device provided in an embodiment of the present invention, is received current by the editing interface of webpage configuration file The configuration information of webpage, and preserve to webpage configuration file;This webpage configuration file is loaded by server and can obtain net The configuration information of the current web page preserving in page configuration file;By the corresponding public module of server calls current web page to work as Front webpage carries out page layout operation and parameter represents operation, and then server determines that current web page generates and finishes;Aforesaid way The differentiation information that webpage can be made separates with public style information, can only change above-mentioned differentiation information and can complete webpage Upgrade demand, web page code need not be changed, thus improve development efficiency and the maintainability of webpage.
In view of needing by public module, current web page to be laid out, the embodiment of the present invention in actual realization, on State operation module and include following part: (1) first transmitting element, for sending current net to the corresponding public module of current web page Webpage in the configuration information of page represents configuration information;(2) page layout operating unit, for by calling in public module Represent the corresponding CSS of configuration information and/or browser script storehouse with webpage, page cloth is carried out to current web page Office's operation.By the way, the layout to current web page can be completed.
Represent in view of also needing to enter line parameter by public module to current web page, the embodiment of the present invention is realized actual When, aforesaid operations module also includes the following: (1) second transmitting element, for sending out to the corresponding public module of current web page Send the web page communication configuration information in the configuration information of current web page;Wherein, this web page communication configuration information includes web page communication Interface message and communication variables information;(2) parameter represents operating unit, is used for calling public module so that public module according to Web page communication configuration information obtains webpage to server and represents parameter, and represents parameter according to webpage and enter line parameter to current web page Represent operation;This webpage represents parameter and includes parameter position, parameter name, parameter type and parameter area.By the way, Can complete the parameter of current web page is represented, thus generating current web page.
Relative parameters setting can be carried out in view of user using this current web page, the embodiment of the present invention is in above-mentioned auto-building html files On the basis of device, also add submission and the calibration equipment of parameter, a kind of auto-building html files device shown in Figure 7 concrete Structural representation, this device, on the basis of the corresponding structural representation of Fig. 6, also includes the following:
Parameter setting receiver module 700, for when receiving parameter setting submiting command, being received by current web page and using The parameter setting of family input;
Sending module 702, arranges receiver module 700 with above-mentioned parameter and is connected, for by parameter setting and parameter setting pair The webpage answered represents parameter and sends to public module;
Correction verification module 704, is connected with above-mentioned sending module 702, for calling the parameter verification interface of public module, according to Webpage represents the parameter area in parameter, and parameter setting is verified;
Parameter setting preserving module 706, is connected with above-mentioned correction verification module 704, completes parameter setting school for working as to receive After testing order, parameter setting is preserved.
By the way, user can submit relative parameters setting to conveniently by current web page, when this parameter setting After verification, the corresponding system of this current web page can complete related management control task according to this parameter setting.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.

Claims (10)

1. a kind of webpage generating method is it is characterised in that include:
Server receives the configuration information of current web page by the editing interface of webpage configuration file, and preserves and join to described webpage Put in file;Wherein, described configuration information includes webpage and represents configuration information, web page communication configuration information and webpage representing ginseng Number;Described webpage configuration file includes extensible markup language xml document;
When receiving webpage and representing order, described server loads described webpage configuration file, and obtains described webpage configuration The configuration information of the described current web page preserving in file;
The corresponding public module of current web page described in described server calls described current web page is carried out page layout operation and Parameter represents operation;Wherein, described page layout operation represents configuration information according to described webpage and carries out;Described parameter represents behaviour Work represents parameter according to described webpage to be carried out;Described public module includes the CSS of described current page, browser foot This language library, the parsing interface of described webpage configuration file and parameter verification interface;
After the completion of the operation of described page layout represents operation with described parameter, described server determines that described current web page generates Finish.
2. method according to claim 1 is it is characterised in that preserve in the described webpage configuration file of acquisition is described current The configuration information of webpage, comprising:
Described webpage configuration file after loading is sent public module corresponding to described current web page by described server;
Described server, by calling the parsing interface of the described webpage configuration file of described public module, configures to described webpage File is parsed, and obtains the configuration information of described current web page;
Described server receives the configuration information of the described current web page that described public module sends.
3. method according to claim 1 is it is characterised in that current web page described in described server calls is corresponding public Module carries out page layout operation to described current web page, comprising:
Described server is described in in the configuration information of the described current web page corresponding public module described current web page of transmission Webpage represents configuration information;
Described server represents configuration information corresponding described stacking sample with described webpage by calling in described public module Formula table and/or browser script storehouse, carry out page layout operation to described current web page.
4. method according to claim 1 is it is characterised in that current web page described in described server calls is corresponding public Module is entered line parameter to described current web page and is represented operation, comprising:
Described server is described in in the configuration information of the described current web page corresponding public module described current web page of transmission Web page communication configuration information;Wherein, described web page communication configuration information includes web page communication interface message and communication variables information;
Public module described in described server calls so that described public module according to described web page communication configuration information to described Server obtains described webpage and represents parameter, and represents parameter according to described webpage and enter line parameter to described current web page and represent behaviour Make;Described webpage represents parameter and includes parameter position, parameter name, parameter type and parameter area.
5. method according to claim 4 is it is characterised in that methods described also includes:
When receiving parameter setting submiting command, described server is set by the parameter of described current web page receiving user's input Put;
Described parameter setting and the corresponding described webpage of described parameter setting are represented parameter and send to described public affairs by described server Common mode block;
Described server, by calling the described parameter verification interface of described public module, represents in parameter according to described webpage Described parameter area, verifies to described parameter setting;
When receive complete parameter setting check command after, described parameter setting is preserved by described server.
6. method according to claim 1 is it is characterised in that methods described also includes:
Described server is updated the data by the public module that the editing interface of described public module receives described current web page, and Preserve to described public module.
7. a kind of auto-building html files device is it is characterised in that include:
Configuration information receives preserving module, for receiving the configuration letter of current web page by the editing interface of webpage configuration file Breath, and preserve to described webpage configuration file;Wherein, described configuration information includes webpage and represents configuration information, web page communication Configuration information and webpage represent parameter;Described webpage configuration file includes extensible markup language xml document;
Configuration information loads acquisition module, for when receiving webpage and representing order, loading described webpage configuration file, and obtaining Take the configuration information of the described current web page preserving in described webpage configuration file;
Operation module, is used for calling the corresponding public module of described current web page to carry out page layout operation to described current web page Represent operation with parameter;Wherein, described page layout operation represents configuration information according to described webpage and carries out;Described parameter represents Operation represents parameter according to described webpage and carries out;Described public module includes the CSS of described current page, browser Script storehouse, the parsing interface of described webpage configuration file and parameter verification interface;
Determining module, after the completion of representing operation when the operation of described page layout with described parameter, described server determines institute State current web page generation to finish.
8. device according to claim 7 is it is characterised in that described operation module includes:
First transmitting element, in the configuration information to the described current web page corresponding public module described current web page of transmission Described webpage represent configuration information;
Page layout operating unit, for by call in described public module to represent configuration information corresponding with described webpage Described CSS and/or browser script storehouse, carry out page layout operation to described current web page.
9. device according to claim 7 is it is characterised in that described operation module also includes:
Second transmitting element, in the configuration information to the described current web page corresponding public module described current web page of transmission Described web page communication configuration information;Wherein, described web page communication configuration information includes web page communication interface message and communication becomes Amount information;
Parameter represents operating unit, is used for calling described public module, so that described public module is joined according to described web page communication Confidence ceases and obtains described webpage to described server and represent parameter, and represents parameter according to described webpage described current web page is entered Line parameter represents operation;Described webpage represents parameter and includes parameter position, parameter name, parameter type and parameter area.
10. device according to claim 9 is it is characterised in that described device also includes:
Parameter setting receiver module, for when receiving parameter setting submiting command, by described current web page receive user The parameter setting of input;
Sending module, sends to described for described parameter setting and the corresponding described webpage of described parameter setting are represented parameter Public module;
Correction verification module, for calling the described parameter verification interface of described public module, represents in parameter according to described webpage Described parameter area, verifies to described parameter setting;
Parameter setting preserving module, for when receive complete parameter setting check command after, by described parameter setting preserve.
CN201610669046.1A 2016-08-15 2016-08-15 Webpage generation method and device Pending CN106354748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610669046.1A CN106354748A (en) 2016-08-15 2016-08-15 Webpage generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610669046.1A CN106354748A (en) 2016-08-15 2016-08-15 Webpage generation method and device

Publications (1)

Publication Number Publication Date
CN106354748A true CN106354748A (en) 2017-01-25

Family

ID=57843959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610669046.1A Pending CN106354748A (en) 2016-08-15 2016-08-15 Webpage generation method and device

Country Status (1)

Country Link
CN (1) CN106354748A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124643A (en) * 2017-03-27 2017-09-01 武汉斗鱼网络科技有限公司 It is a kind of to handle the method and apparatus that live display is set
CN108073398A (en) * 2017-12-22 2018-05-25 华北计算技术研究所(中国电子科技集团公司第十五研究所) A kind of configurable advice note realizes engine and method
CN108255914A (en) * 2017-09-05 2018-07-06 深圳壹账通智能科技有限公司 webpage generating method and application server
CN108427731A (en) * 2018-02-26 2018-08-21 平安普惠企业管理有限公司 Processing method, device, terminal device and the medium of page code
CN108459854A (en) * 2017-02-20 2018-08-28 平安科技(深圳)有限公司 Mobile terminal style configuration method and apparatus
CN110297759A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 A kind of method, apparatus making test page script, equipment and storage medium
CN110442824A (en) * 2019-08-12 2019-11-12 深圳市去约会信息技术有限公司 Implementation method, storage medium and the equipment of data management
CN110531906A (en) * 2019-08-29 2019-12-03 深圳市鼎阳科技有限公司 A kind of the forms management method and digital oscilloscope of display interface
CN110968311A (en) * 2018-09-30 2020-04-07 北京嘀嘀无限科技发展有限公司 Front-end page construction method and device and electronic equipment
CN111708969A (en) * 2020-06-17 2020-09-25 北京明略软件系统有限公司 Webpage configuration method and device, electronic equipment and storage medium
CN111813435A (en) * 2019-04-11 2020-10-23 天津五八到家科技有限公司 Page content configuration method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609403A (en) * 2009-07-29 2009-12-23 金蝶软件(中国)有限公司 A kind of page layout dynamic switch method and system
CN101621791A (en) * 2009-08-10 2010-01-06 中兴通讯股份有限公司 Method and system for customizing personalized pages of portal website by mobile terminal user
CN104572035A (en) * 2013-10-11 2015-04-29 北大方正集团有限公司 Dynamic generation method and dynamic generation system of webpage codes
US20150212989A1 (en) * 2014-01-28 2015-07-30 Moboom Ltd. Adaptive content management
CN105094769A (en) * 2014-05-06 2015-11-25 北大方正集团有限公司 Processing method and apparatus of user interface
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609403A (en) * 2009-07-29 2009-12-23 金蝶软件(中国)有限公司 A kind of page layout dynamic switch method and system
CN101621791A (en) * 2009-08-10 2010-01-06 中兴通讯股份有限公司 Method and system for customizing personalized pages of portal website by mobile terminal user
CN104572035A (en) * 2013-10-11 2015-04-29 北大方正集团有限公司 Dynamic generation method and dynamic generation system of webpage codes
US20150212989A1 (en) * 2014-01-28 2015-07-30 Moboom Ltd. Adaptive content management
CN105094769A (en) * 2014-05-06 2015-11-25 北大方正集团有限公司 Processing method and apparatus of user interface
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459854A (en) * 2017-02-20 2018-08-28 平安科技(深圳)有限公司 Mobile terminal style configuration method and apparatus
CN108459854B (en) * 2017-02-20 2021-07-06 平安科技(深圳)有限公司 Mobile terminal style configuration method and device
CN107124643A (en) * 2017-03-27 2017-09-01 武汉斗鱼网络科技有限公司 It is a kind of to handle the method and apparatus that live display is set
CN108255914A (en) * 2017-09-05 2018-07-06 深圳壹账通智能科技有限公司 webpage generating method and application server
CN108255914B (en) * 2017-09-05 2022-04-22 深圳壹账通智能科技有限公司 Webpage generation method and application server
CN108073398A (en) * 2017-12-22 2018-05-25 华北计算技术研究所(中国电子科技集团公司第十五研究所) A kind of configurable advice note realizes engine and method
CN108427731A (en) * 2018-02-26 2018-08-21 平安普惠企业管理有限公司 Processing method, device, terminal device and the medium of page code
CN110968311A (en) * 2018-09-30 2020-04-07 北京嘀嘀无限科技发展有限公司 Front-end page construction method and device and electronic equipment
CN110968311B (en) * 2018-09-30 2024-01-05 北京嘀嘀无限科技发展有限公司 Front-end page construction method and device and electronic equipment
CN111813435A (en) * 2019-04-11 2020-10-23 天津五八到家科技有限公司 Page content configuration method and device and electronic equipment
CN110297759B (en) * 2019-05-22 2022-04-12 深圳壹账通智能科技有限公司 Method, device, equipment and storage medium for manufacturing test page script
CN110297759A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 A kind of method, apparatus making test page script, equipment and storage medium
CN110442824A (en) * 2019-08-12 2019-11-12 深圳市去约会信息技术有限公司 Implementation method, storage medium and the equipment of data management
CN110531906A (en) * 2019-08-29 2019-12-03 深圳市鼎阳科技有限公司 A kind of the forms management method and digital oscilloscope of display interface
CN110531906B (en) * 2019-08-29 2021-08-03 深圳市鼎阳科技股份有限公司 Window management method for display interface and digital oscilloscope
CN111708969A (en) * 2020-06-17 2020-09-25 北京明略软件系统有限公司 Webpage configuration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106354748A (en) Webpage generation method and device
CN100487645C (en) Automatically generating method based on data driving interface
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
CN104636139B (en) One kind visualizes cross-platform mobile application exploitation and generation system
US20120246515A1 (en) Scalable testing tool for graphical user interfaces object oriented system and method
CN104216912A (en) Method and device for achieving non-intrusive service form workflow
CN104679488A (en) Flow path customized development platform and method
CN103383645A (en) Code generation method and system
CN103019684A (en) Dynamic template-based business page configuring method
CN102495735A (en) Web end UI (user interface) component application frame system
CN103049320A (en) Method and device for starting external application program in browser
EP3948545A1 (en) Customizable enterprise automation test framework
CN103744680A (en) Method and device for business process processing
CN101645013A (en) Plug-in type service management system and method of integrated service management platform
CN101185303A (en) System and method for creating a mapping document for binding messages between an application and an associated backend server
US20170295217A1 (en) Method and system of application development for multiple device client platforms
CN112433702B (en) Lightweight process design system and method
CN108241902A (en) A kind of Web projects and performance optimization method
CN105404692A (en) Web page generation method and generation device
CN105808701A (en) Method and system for realizing automatic verification of form and communication among multiple systems
US20210117313A1 (en) Language agnostic automation scripting tool
CN104915193A (en) Flow engine processing method and device
CN102761443A (en) Collocation method and device of command lines
US20220300262A1 (en) Method for constructing, running and implementing cross-platform application, terminal, server and system
CN104346398A (en) Method and device for automatically filling and submitting data on line

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125

RJ01 Rejection of invention patent application after publication