CN108255847A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN108255847A
CN108255847A CN201611242566.0A CN201611242566A CN108255847A CN 108255847 A CN108255847 A CN 108255847A CN 201611242566 A CN201611242566 A CN 201611242566A CN 108255847 A CN108255847 A CN 108255847A
Authority
CN
China
Prior art keywords
page
functional unit
script
component
flag
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
CN201611242566.0A
Other languages
Chinese (zh)
Other versions
CN108255847B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611242566.0A priority Critical patent/CN108255847B/en
Publication of CN108255847A publication Critical patent/CN108255847A/en
Application granted granted Critical
Publication of CN108255847B publication Critical patent/CN108255847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of page generation method and devices.Wherein, this method includes:Accessing page request is obtained, wherein, first flag is carried in accessing page request, first flag is used to indicate the page functional unit to be configured in the target pages to be accessed in accessing page request;Response page access request obtain Page Template for generating target pages and with the matched page script of Page Template, wherein, page script is for obtaining the component script of page functional unit to match with first flag;The component script of page functional unit is obtained by page script, and page functional unit corresponding with component script is added in Page Template using component script, to generate target pages;Shows target pages, wherein, page functional unit is configured in target pages.The present invention solve in the prior art by hand-coding generate publication the page caused by page efficiency for issuing it is relatively low the technical issues of.

Description

Page generation method and device
Technical field
The present invention relates to computer realm, in particular to a kind of page generation method and device.
Background technology
At present, much often forward end page development personnel propose product demand to operation active people, so that the page is opened Hair personnel can develop new loose-leaf according to these demands.Wherein, page development personnel are usually that will pass through hand-coding The page of generation is distributed in server by hand.
However, operation activity is often more demanding to timeliness, and amount of activity is more, if still being generated using aforesaid way The mode of the page, the not only new loose-leaf of hand-coding exploitation, will largely effect on the formation efficiency of new loose-leaf, and When carrying out safeguarding modification to the loose-leaf preserved by server, required operation to be performed is also very complicated, will also cause The formation efficiency for changing the updated page decreases.
For it is above-mentioned the problem of, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of page generation method and device, at least to solve in the prior art by manual The technical issues of page efficiency for issuing caused by the coding generation publication page is relatively low.
One side according to embodiments of the present invention provides a kind of page generation method, including:Obtaining page access please It asks, wherein, first flag is carried in above-mentioned accessing page request, above-mentioned first flag is used to indicate please in above-mentioned page access Seek the page functional unit to be configured in the target pages to be accessed;Above-mentioned accessing page request is responded to obtain to generate The Page Template of above-mentioned target pages and with the matched page script of above-mentioned Page Template, wherein, above-mentioned page script is for obtaining Take the component script of above-mentioned page functional unit to match with above-mentioned first flag;Above-mentioned page is obtained by above-mentioned page script The said modules script of face functional unit, and will above-mentioned page function corresponding with said modules script using said modules script Component is added in above-mentioned Page Template, to generate above-mentioned target pages;Show above-mentioned target pages, wherein, above-mentioned page object Above-mentioned page functional unit is configured in face.
Another aspect according to embodiments of the present invention additionally provides a kind of webpage generating device, including:First obtains list Member, for obtaining accessing page request, wherein, first flag is carried in above-mentioned accessing page request, above-mentioned first flag is used In the instruction page functional unit to be configured in the target pages to be accessed in above-mentioned accessing page request;Second obtains list Member, for respond above-mentioned accessing page request obtain Page Template for generating above-mentioned target pages and with above-mentioned Page Template Matched page script, wherein, the above-mentioned page function group that above-mentioned page script matches for acquisition with above-mentioned first flag The component script of part;Generation unit, for obtaining the said modules script of above-mentioned page functional unit by above-mentioned page script, And above-mentioned page functional unit corresponding with said modules script is added in above-mentioned Page Template using said modules script, To generate above-mentioned target pages;Display unit, for showing above-mentioned target pages, wherein, it is configured in above-mentioned target pages State page functional unit.
In embodiments of the present invention, the accessing page request got in response gets Page Template and and Page Template After matched page script, wherein, it carries and is used to indicate in the accessing page request mesh to be accessed in accessing page request The first flag of page functional unit to be configured in the page is marked, obtains what is matched with first flag by the page script The component script of page functional unit, and it is added to the page using component script page functional unit corresponding with component script In template, the target pages of above-mentioned page functional unit are configured with to realize to directly generate and show in access process, without Cumbersome page development is performed according to operation demand by developer again and the page issues flow, page generation is improved so as to reach The effect of efficiency, and then overcome to need to develop by hand-coding test in the relevant technologies and obtain the page to be generated institute The problem of formation efficiency of the caused page is relatively low.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of application environment schematic diagram of optional page generation method according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of optional page generation method according to embodiments of the present invention;
Fig. 3 is a kind of interface schematic diagram of optional page generation method according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of optional webpage generating device according to embodiments of the present invention;
Fig. 5 is the schematic diagram of the optional webpage generating device of another kind according to embodiments of the present invention;
Fig. 6 is the flow chart of the optional page generation method of another kind according to embodiments of the present invention;
Fig. 7 is a kind of schematic diagram of optional page generation equipment according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
In embodiments of the present invention, a kind of embodiment of above-mentioned page generation method is provided.As a kind of optional reality Mode is applied, terminal 102 obtains accessing page request, wherein, first flag is carried in the accessing page request, which uses In the instruction page functional unit to be configured in the target pages to be accessed in accessing page request, respond the above-mentioned page and visit It asks request, Page Template for generating target pages and matched with Page Template is obtained from server 106 by network 104 Page script, wherein, the component script of page functional unit that page script matches for acquisition with first flag;And pass through Page script obtains the component script of page functional unit, and will page function group corresponding with component script using component script Part is added in Page Template, to generate target pages;Then, shows target pages, wherein, the page is configured in target pages Functional unit.
In the present embodiment, the accessing page request got in response gets Page Template and is matched with Page Template Page script after, wherein, carry and be used to indicate in the accessing page request page object to be accessed in accessing page request The first flag of page functional unit to be configured in face obtains the page to match with first flag by the page script The component script of functional unit, and it is added to Page Template using component script page functional unit corresponding with component script In, be configured with the target pages of above-mentioned page functional unit to realize to directly generate and show in access process, without again by Developer performs cumbersome page development according to operation demand and the page issues flow, so as to reach raising efficiency of page generation Effect, and then overcome and need to develop and obtain caused by the page to be generated by hand-coding test in the relevant technologies The page formation efficiency it is relatively low the problem of.
Optionally, in the present embodiment, above-mentioned terminal can include but is not limited at least one of:Mobile phone, tablet electricity Brain, laptop, PC machine and other application data access processes hardware device.Optionally, in the present embodiment, above-mentioned net Network can include but is not limited at least one of:Wide area network, Metropolitan Area Network (MAN), LAN.Above-mentioned is only a kind of example, the present embodiment In do not do any restriction to this.
According to embodiments of the present invention, a kind of page generation method is provided, as shown in Fig. 2, this method includes:
S202 obtains accessing page request, wherein, first flag is carried in accessing page request, first flag is used to refer to Show the page functional unit to be configured in the target pages to be accessed in accessing page request;
S204, response page access request obtain for generate the Page Template of target pages and with Page Template it is matched Page script, wherein, the component script of page functional unit that page script matches for acquisition with first flag;
S206 obtains the component script of page functional unit by page script, and will be with component foot using component script This corresponding page functional unit is added in Page Template, to generate target pages;
S208, shows target pages, wherein, page functional unit is configured in target pages.
Optionally, in the present embodiment, above-mentioned page generation method can be, but not limited to be applied to page development or the page During O&M.For example, by taking page development as an example, operator can be by (also referred to as accessing eventually in the present embodiment in terminal End) display configuration interface on the mapping relations of first flag and page functional unit are directly configured, and storage is in the server, So that the terminal for receiving accessing page request can directly be obtained by page script from above-mentioned server and accessing page request Entrained first flag matches the component script of page functional unit, and corresponding page is called so as to fulfill using component script Face functional unit is added in Page Template, to generate the target pages to be accessed, without using complicated coding, survey Development process is tried, so as to save page issuing process, has achieved the effect that improve efficiency of page generation.Further, it is also possible to page It, can be directly by changing first flag and the page when needing to be updated modification to the generated page for the O&M of face The mapping relations of functional unit are updated modification to reach to the page functional unit in the target pages to be accessed, letter Change O&M flow, also ensure efficiency of page generation.Above-mentioned is only a kind of example, and any limit is not done to this in the present embodiment It is fixed.
It should be noted that in the present embodiment, the accessing page request that response is got get Page Template and After the matched page script of Page Template, wherein, it carries and is used to indicate in accessing page request institute in accessing page request The first flag of page functional unit to be configured in the target pages to be accessed is obtained and the first mark by the page script The component script of sensible matched page functional unit, and utilize component script page functional unit corresponding with component script Added in Page Template, the page object of above-mentioned page functional unit is configured with to realize to directly generate and show in access process Face without performing cumbersome page development and page publication flow according to operation demand by developer again, carries so as to reach The effect of high efficiency of page generation, and then overcome to need to develop by hand-coding test in the relevant technologies and obtain being given birth to Into the page caused by the page formation efficiency it is relatively low the problem of.
Optionally, in the present embodiment, it is above-mentioned to can be, but not limited to the matched page script of Page Template as one section of js (Javascript) scripted code for parsing the first flag carried in accessing page request, and is obtained according to the first flag Take the component script of page functional unit to match with first flag.
Optionally, in the present embodiment, page script obtains the component of page functional unit to match with first flag The mode of script can include but is not limited to:Page script obtains configuration information from configuration server, wherein, which uses Mapping relations between the component of record first flag and page functional unit mark;It is obtained from the configuration information got It is identified with the component of the matched page functional unit of first flag, corresponding component script is obtained according to component mark.
It should be noted that above-mentioned configuration information can be, but not limited to be on the configuration interface of terminal, by selecting The component for the page functional unit to be configured identifies and generation is configured.In addition, in the present embodiment, above-mentioned configuration information can be with But it is not limited to be stored in configuration server, can also but be not limited to be stored in content distributing network (Content Delivery Network, CDN) in server, wherein, above-mentioned page script and Page Template can also but be not limited to be deployed in content distribution In network (Content Delivery Network, CDN) server.
Optionally, in the present embodiment, above-mentioned Page Template can be, but not limited to be used to carry page functional unit Unified carrier, for Show Styles of the page functional unit in the page to be configured, such as page head (head), page body (body) Deng.That is, the accessing page request different target pages to be accessed can be, but not limited to based on above-mentioned page mould Plate generates to obtain.Any restriction is not done in the present embodiment to this.
It should be noted that in the present embodiment, the above-mentioned system for performing page generation method can be, but not limited to To generate system on line.That is, the component mark of first flag and page functional unit can be directly configured in system on line Mapping relations between knowledge, and above-mentioned mapping relations are stored under the preset path in server database.Further, online After the terminal of upper system gets accessing page request, Page Template and correspondence can be obtained by responding the accessing page request Page script, and pass through the page script and configuration information for recording above-mentioned mapping relations obtained under preset path, from And it realizes to be got according to above-mentioned configuration information and be identified with the component of the matched page functional unit of first flag, and in the page Addition identifies matched page functional unit with said modules in template, to reach the target pages for quickly generating and being accessed.
It is specifically illustrated with reference to the example below, for example, it is assumed that above-mentioned mapping relations are with first flag and page function group For the mapping relations of the component mark of part therebetween, the mapping relations of configuration are as shown in table 1:
Table 1
First flag The component mark of page functional unit
ID-1 Ballot
ID-2 Comment
ID-1 Statistics
That is, page assembly is after parsing accessing page request gets first flag, it is assumed that first flag ID- 1, then it will be identified by the component that above-mentioned mapping relations obtain ballot page functional unit and count page functional unit, Jin Ertong It crosses download and obtains corresponding script component, for example, ballot .js and statistics .js, the above-mentioned target to be accessed is being generated to realize During the page, above-mentioned ballot page functional unit is added in target pages and counts the corresponding Page Service of page functional unit Service interface.
Optionally, in the present embodiment, response page access request obtain for generate target pages Page Template and Include with the matched page script of Page Template:According to the request address indicated by accessing page request, download and obtain page mould Plate and page script, wherein, the Show Styles of page functional unit is at least configured in Page Template.For example, page function group The Show Styles of part can include:Display color, display shape, display location etc..Above-mentioned is only a kind of example, in the present embodiment Any restriction is not done to this.
Optionally, in the present embodiment, above-mentioned page functional unit is used to provide one or more pages in target pages Service.Wherein, above-mentioned page functional unit can be, but not limited to certain function, to be used to implement one or more page clothes It is engaged in the component of device, for example, ballot, comment, statistics, barrage, giving bonus.Such as, it is assumed here that with page functional unit of voting For, above-mentioned ballot page functional unit is used to provide in target pages to be included with relevant Page Service of voting:Frequency control it is anti-brush, The Page Services such as note validating, data consistency checks, user information preserve, polled data preserves.
Optionally, in the present embodiment, the Page Service indicated by above-mentioned page functional unit can be, but not limited to It is performed in the case of lower at least one:
1) when generating target pages, the Page Service indicated by page functional unit is performed;
For example, statistics page functional unit, while generation and shows target pages, will be performed simultaneously statistical operation, To count page access number.
2) it after target pages are generated, receives to raw after trigger button execution trigger action shown in target pages Into the first operational order, wherein, trigger button is corresponding with page functional unit;The first operational order is responded, performs the page Page Service indicated by functional unit.
For example, for ballot page functional unit is configured in target pages.After target pages are generated, and obtaining It gets after performing the first generated operational order of ballot operation to ballot button shown on target pages, then performs ballot Ballot service indicated by page functional unit obtains the voting results of corresponding ballot content.
That is, in the present embodiment, required service interface can be directly invoked, by the way that different services is called to connect Mouthful, to realize the execution code for performing the Page Service indicated by service interface;The high concurrent based on nodejs can also be used Tafnode frames build service background, to realize the execution code for performing multiple Page Services indicated by service interface, example Such as, multiple monitoring Page Services such as necessary safety, frequency control are performed, to ensure the stabilization on backstage and service safe.
The embodiment provided by the application, the accessing page request that gets of response get Page Template and with page After the matched page script of face die plate, wherein, it is carried in accessing page request and is used to indicate to be visited in accessing page request The first flag of page functional unit to be configured in the target pages asked is obtained and first flag phase by the page script The component script of matched page functional unit, and added using component script page functional unit corresponding with component script Into Page Template, the target pages of above-mentioned page functional unit are configured with to realize to directly generate and show in access process, So as to achieve the effect that improve efficiency of page generation, and then overcome to need in the relevant technologies to develop by hand-coding test Obtain the page caused by the page to be generated formation efficiency it is relatively low the problem of.
As a kind of optional scheme, the component script that page functional unit is obtained by page script includes:
S1 obtains the preconfigured page to match with first flag by page script from the database of server The component mark of functional unit;
S2 obtains the component script to match with component mark, wherein, component script is used for request call page function group The service interface of Page Service indicated by part, page functional unit are used to provide one or more page clothes in target pages Business.
Optionally, in the present embodiment, above-mentioned page script can be, but not limited to obtain from the database of server The component of the page functional unit to match with first flag is taken to identify.In addition, in the present embodiment, above-mentioned page script can be with But the address information for being additionally operable to indicate above-mentioned server is not limited to, wherein, which is used to indicate stores in the server The path of the storage of the configuration information to match with first flag.Optionally, in the present embodiment, said modules script can with but The service interface of the Page Service indicated by request call page functional unit is not limited to use in, in order to perform above-mentioned page work( Page Service indicated by energy component.
It should be noted that said modules script can be, but not limited to be deployed in content distributing network with page script In (Content Delivery Network, CDN) server.In order to which terminal downloads obtain above-mentioned page script and component foot This, and then realize and perform corresponding operation using above-mentioned script.
The embodiment provided by the application, by using the service interface of component script invoking page service, so as to increase The backstage ability of page functional unit in the strong accessing page request target pages to be generated to be accessed, so as to generated Target pages can realize more complicated operation and interaction.
As a kind of optional scheme, obtained from the database of server by page script preconfigured with first The component mark for identifying the page functional unit to match includes:
S1, obtain page script indicated by address information, wherein, address information be used to indicate in the server storage with The path for the configuration information that first flag matches, configuration information are used to record first flag and the component mark of page functional unit Mapping relations between knowledge;
S2 obtains configuration information, and acquisition and first flag from the mapping relations that configuration information is recorded according to path The component mark of the page functional unit to match.
Optionally, in the present embodiment, above-mentioned page script can be, but not limited to carry for storage configuration information Address information.That is, after page script is got, accessing page request can be parsed by page script to obtain first Mark, and the address information according to indicated by the page script are obtained to be stored in server and be matched with what first flag matched Confidence breath path, and according to the path obtain with it is matched with the above-mentioned first flag parsed recorded in configuration information The component mark of page functional unit.For example, the address information that page script carries is interface uniform resource locator (Uniform Resource Locator, abbreviation URL).
Optionally, in the present embodiment, above-mentioned configuration information can be used for recording first flag and page functional unit The mapping relations of component mark therebetween after the component mark for getting page functional unit, are obtained further according to component mark Take the component script to match with component mark;Above-mentioned configuration information can be also used for record first flag, page functional unit Component mark and component script three between mapping relations, get page functional unit component mark after, pass through Above-mentioned mapping relations are directly obtained the component script to match with component mark.Any restriction is not done in the present embodiment to this.
As a kind of optional scheme, before accessing page request is obtained, further include:
S1 obtains the component mark for establishing mapping relations with first flag in configuration interface, wherein, on configuration interface Show the component mark of page functional unit.
Optionally, in the present embodiment, above-mentioned first flag can be, but not limited to for unique mark in configuration interface Configuration process.That is, in the predetermined time, the page functional unit for establishing mapping relations is obtained on configuration interface Component mark after, by use first flag unique mark above-mentioned for target pages progress page functional unit configuration process obtain The configuration information arrived.In other words, the component mark of identical page functional unit is configured for identical target pages in configuration interface Know, but during setup time difference, first flag can be different identification.
It should be noted that it in the present embodiment, after configuration information is obtained, will be marked according to above-mentioned configuration information and first Know the corresponding access link of generation, such as access link with uniform resource locator (Uniform Resource Locator, abbreviation URL) form is by sending, sharing or other modes are supplied to access terminal.In the present embodiment, indicated by above-mentioned access link Address can be, but not limited to storage address for above-mentioned Page Template and page script, wherein, carry and deposit in page script Store up the address information of above-mentioned configuration information.
Optionally, in the present embodiment, response page access request obtain for generate target pages Page Template and Include with the matched page script of Page Template:According to the request address indicated by accessing page request, download and obtain page mould Plate and page script, wherein, the Show Styles of page functional unit is at least configured in Page Template.
It should be noted that the request address indicated by above-mentioned accessing page request can be, but not limited to match for above-mentioned basis The access link of confidence breath generation.That is, after access terminal gets accessing page request, above-mentioned page access will be asked Indicated request address (accessing link) is asked to access, according to making an appointment, (will access chain from above-mentioned request address Connect) in get it is general for generating the Page Template and page script of target pages so that different access terminal can be fast Speed obtains stored Page Template and page script, convenient for being pre-configured with according to the address information acquisition indicated by page script Configuration information, so as to reach improve generation the target pages to be accessed formation efficiency.
In addition, in the present embodiment, above-mentioned request address (accessing link) and the address information indicated by page script It can be deployed on the different location in identical server, can also be deployed in different servers, such as request address (i.e. Access link) it is deployed in CDN server, the address information indicated by page script is deployed in configuration server.It is above-mentioned only It is a kind of example, any restriction is not done to this in the present embodiment.
Optionally, in the present embodiment, the component mark for establishing mapping relations with first flag is obtained in configuration interface Before knowledge, at least one of is further included:
1) the component mark of whole page functional units is shown on configuration interface;
2) selective listing is shown on configuration interface, wherein, selective listing is used for after the second operational order is received, exhibition Open the component mark of the whole page functional units of display;
3) search input frame is shown on configuration interface, wherein, search input frame is used to search for whole page functional units Component mark.
It is specifically illustrated with reference to the example below, it is assumed that configuration interface shows whole pages by taking Fig. 3 as an example, in configuration interface The component mark of functional unit, it is assumed that the component mark of shown page functional unit includes:Ballot, comment, statistics.Pass through Corresponding component mark (e.g., voting) is chosen, and the mark of the component to choose (e.g., voting) creates first flag (such as ID- 1), the mapping relations so as to fulfill the component mark established first flag with above-mentioned and chosen therebetween.
In addition, in the present embodiment, it can also be obtained by the modes such as selective listing or search input frame and be reflected for establishing The component for penetrating the page functional unit of relationship identifies, and details are not described herein in the present embodiment.
The embodiment provided by the application, by being directly configured what will be shown in target pages in visualization interface Page functional unit so as to reach simplified configuration step, saves development process, to realize the effect for improving efficiency of page generation.
As a kind of optional scheme, further include:
1) when page functional unit is designated as the first kind, when generating target pages, page functional unit institute is performed The Page Service of instruction.
For example, first kind page functional unit to be for counting page functional unit, while target pages are generated, The statistical operation to the target pages is performed, to count the page access number to the target pages.
2) it when page functional unit is designated as Second Type, after target pages are generated, receives in target pages Shown trigger button performs the first operational order generated after trigger action, wherein, trigger button and page functional unit It is corresponding;The first operational order is responded, performs the Page Service indicated by page functional unit.
For example, Second Type page functional unit is by taking page functional unit of voting as an example, after target pages are generated, It receives pair and to perform the first operational order generated after ballot operation with the corresponding ballot button of ballot page functional unit Afterwards, then the ballot service voted indicated by page functional unit is performed, obtains the voting results of corresponding ballot content.
It should be noted that in the present embodiment, said modules script can be, but not limited to directly invoke a page clothes It is engaged in corresponding service interface, can also but be not limited to call the service interface of multiple Page Services, for example, using based on nodejs High concurrent tafnode frames build service background, call the service interface of different Page Services.
Optionally, in the present embodiment, it for the different corresponding read-write demands of target pages, can be, but not limited to be configured Different storage modes:For example, low frequency read-write operation carries out content storage using mysql databases, high frequency read-write operation uses The dcache of MIG, so as to ensure timely responding to for interface.
The embodiment provided by the application, can be directly in generation target pages according to the characteristics of different Page Services Shi Zhihang Page Services can also perform page clothes in generation target pages and then according to the operational order to target pages Business.So as to fulfill the flexibility for improving Page Service execution.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on such understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of webpage generating device for being used to implement above-mentioned page generation method is additionally provided, As shown in figure 4, the device includes:
1) first acquisition unit 402, for obtaining accessing page request, wherein, first is carried in accessing page request Mark, first flag are used to indicate the page function group to be configured in the target pages to be accessed in accessing page request Part;
2) second acquisition unit 404 obtain the Page Template for generating target pages for response page access request And with the matched page script of Page Template, wherein, page script is for obtaining the page function group to match with first flag The component script of part;
3) generation unit 406 for obtaining the component script of page functional unit by page script, and utilize component foot Page functional unit corresponding with component script is added in Page Template by this, to generate target pages;
4) display unit 408, for shows target pages, wherein, page functional unit is configured in target pages.
Optionally, in the present embodiment, above-mentioned webpage generating device can be, but not limited to be applied to page development or the page During O&M.For example, by taking page development as an example, operator can be by (also referred to as accessing eventually in the present embodiment in terminal End) display configuration interface on the mapping relations of first flag and page functional unit are directly configured, and storage is in the server, So that the terminal for receiving accessing page request can directly be obtained by page script from above-mentioned server and accessing page request Entrained first flag matches the component script of page functional unit, and corresponding page is called so as to fulfill using component script Face functional unit is added in Page Template, to generate the target pages to be accessed, without using complicated coding, survey Development process is tried, so as to save page issuing process, has achieved the effect that improve efficiency of page generation.Further, it is also possible to page It, can be directly by changing first flag and the page when needing to be updated modification to the generated page for the O&M of face The mapping relations of functional unit are updated modification to reach to the page functional unit in the target pages to be accessed, letter Change O&M flow, also ensure efficiency of page generation.Above-mentioned is only a kind of example, and any limit is not done to this in the present embodiment It is fixed.
It can be, but not limited to be applied to during page development or page O&M.For example, by taking page development as an example, operator Can by be directly configured on the configuration interface of terminal (in the present embodiment also referred to as access terminal) display first flag with The mapping relations of page functional unit, and store in the server, so that page can be passed through by receiving the terminal of accessing page request Face script is directly obtained from above-mentioned server to match page functional unit with the first flag entrained by accessing page request Component script calls corresponding page functional unit to be added in Page Template, to generate so as to fulfill using component script The target pages to be accessed, without using complicated coding, test development process, so as to save page issuing process, Achieve the effect that improve efficiency of page generation.Further, it is also possible to for page O&M, needing to carry out the generated page It, can be directly by changing the mapping relations of first flag and page functional unit, to reach to be accessed during update modification Target pages in page functional unit be updated modification, simplify O&M flow, also ensure efficiency of page generation.On It is only a kind of example to state, and any restriction is not done to this in the present embodiment.
It is specifically illustrated with reference to the example below, for example, it is assumed that above-mentioned mapping relations are with first flag and page function group For the mapping relations of the component mark of part therebetween, the mapping relations of configuration are as shown in table 2:
Table 2
First flag The component mark of page functional unit
ID-1 Ballot
ID-2 Comment
ID-1 Statistics
That is, page assembly is after parsing accessing page request gets first flag, it is assumed that first flag ID- 1, then it will be identified by the component that above-mentioned mapping relations obtain ballot page functional unit and count page functional unit, Jin Ertong It crosses download and obtains corresponding script component, for example, ballot .js and statistics .js, the above-mentioned target to be accessed is being generated to realize During the page, above-mentioned ballot page functional unit is added in target pages and counts the corresponding Page Service of page functional unit Service interface.
Optionally, in the present embodiment, response page access request obtain for generate target pages Page Template and Include with the matched page script of Page Template:According to the request address indicated by accessing page request, download and obtain page mould Plate and page script, wherein, the Show Styles of page functional unit is at least configured in Page Template.For example, page function group The Show Styles of part can include:Display color, display shape, display location etc..Above-mentioned is only a kind of example, in the present embodiment Any restriction is not done to this.
Optionally, in the present embodiment, above-mentioned page functional unit is used to provide one or more pages in target pages Service.Wherein, above-mentioned page functional unit can be, but not limited to certain function, to be used to implement one or more page clothes It is engaged in the component of device, for example, ballot, comment, statistics, barrage, giving bonus.Such as, it is assumed here that with page functional unit of voting For, above-mentioned ballot page functional unit is used to provide in target pages to be included with relevant Page Service of voting:Frequency control it is anti-brush, The Page Services such as note validating, data consistency checks, user information preserve, polled data preserves.
Optionally, in the present embodiment, the Page Service indicated by above-mentioned page functional unit can be, but not limited to It is performed in the case of lower at least one:
1) when generating target pages, the Page Service indicated by page functional unit is performed;
For example, statistics page functional unit, while generation and shows target pages, will be performed simultaneously statistical operation, To count page access number.
2) it after target pages are generated, receives to raw after trigger button execution trigger action shown in target pages Into the first operational order, wherein, trigger button is corresponding with page functional unit;The first operational order is responded, performs the page Page Service indicated by functional unit.
For example, for ballot page functional unit is configured in target pages.After target pages are generated, and obtaining It gets after performing the first generated operational order of ballot operation to ballot button shown on target pages, then performs ballot Ballot service indicated by page functional unit obtains the voting results of corresponding ballot content.
That is, in the present embodiment, required service interface can be directly invoked, by the way that different services is called to connect Mouthful, to realize the execution code for performing the Page Service indicated by service interface;The high concurrent based on nodejs can also be used Tafnode frames build service background, to realize the execution code for performing multiple Page Services indicated by service interface, example Such as, multiple monitoring Page Services such as necessary safety, frequency control are performed, to ensure the stabilization on backstage and service safe.
The embodiment provided by the application, the accessing page request that gets of response get Page Template and with page After the matched page script of face die plate, wherein, it is carried in accessing page request and is used to indicate to be visited in accessing page request The first flag of page functional unit to be configured in the target pages asked is obtained and first flag phase by the page script The component script of matched page functional unit, and added using component script page functional unit corresponding with component script Into Page Template, the target pages of above-mentioned page functional unit are configured with to realize to directly generate and show in access process, So as to achieve the effect that improve efficiency of page generation, and then overcome to need in the relevant technologies to develop by hand-coding test Obtain the page caused by the page to be generated formation efficiency it is relatively low the problem of.
As a kind of optional scheme, as shown in figure 5, generation unit 406 includes:
1) the first acquisition module 502, obtain for passing through page script from the database of server it is preconfigured with The component mark for the page functional unit that first flag matches;
2) the second acquisition module 504, for obtaining the component script to match with component mark, wherein, component script is used In the service interface of the Page Service indicated by request call page functional unit, page functional unit is used to carry in target pages For one or more Page Services.
Optionally, in the present embodiment, above-mentioned page script can be, but not limited to obtain from the database of server The component of the page functional unit to match with first flag is taken to identify.In addition, in the present embodiment, above-mentioned page script can be with But the address information for being additionally operable to indicate above-mentioned server is not limited to, wherein, which is used to indicate stores in the server The path of the storage of the configuration information to match with first flag.Optionally, in the present embodiment, said modules script can with but The service interface of the Page Service indicated by request call page functional unit is not limited to use in, in order to perform above-mentioned page work( Page Service indicated by energy component.
It should be noted that said modules script can be, but not limited to be deployed in content distributing network with page script In (Content Delivery Network, CDN) server.In order to which terminal downloads obtain above-mentioned page script and component foot This, and then realize and perform corresponding operation using above-mentioned script.
The embodiment provided by the application, by using the service interface of component script invoking page service, so as to increase The backstage ability of page functional unit in the strong accessing page request target pages to be generated to be accessed, so as to generated Target pages can realize more complicated operation and interaction.
As a kind of optional scheme, the first acquisition module includes:
1) the first acquisition submodule, for obtaining the address information indicated by page script, wherein, address information is used to refer to Show the path of configuration information that storage matches with first flag in the server, configuration information is used to record first flag and page Mapping relations between the component mark of face functional unit;
2) the second acquisition submodule, for obtaining configuration information according to path, and the mapping recorded from configuration information is closed The component that the page functional unit to match with first flag is obtained in system identifies.
Optionally, in the present embodiment, above-mentioned page script can be, but not limited to carry for storage configuration information Address information.That is, after page script is got, accessing page request can be parsed by page script to obtain first Mark, and the address information according to indicated by the page script are obtained to be stored in server and be matched with what first flag matched Confidence breath path, and according to the path obtain with it is matched with the above-mentioned first flag parsed recorded in configuration information The component mark of page functional unit.For example, the address information that page script carries is interface uniform resource locator (Uniform Resource Locator, abbreviation URL).
Optionally, in the present embodiment, above-mentioned configuration information can be used for recording first flag and page functional unit The mapping relations of component mark therebetween after the component mark for getting page functional unit, are obtained further according to component mark Take the component script to match with component mark;Above-mentioned configuration information can be also used for record first flag, page functional unit Component mark and component script three between mapping relations, get page functional unit component mark after, pass through Above-mentioned mapping relations are directly obtained the component script to match with component mark.Any restriction is not done in the present embodiment to this.
The embodiment provided by the application is believed getting with the address indicated by the matched page script of Page Template After breath, obtained according to the path indicated by the address information recorded in the preconfigured configuration information that stores in server with The component mark for the page functional unit that first flag matches obtains corresponding component foot so as to fulfill using component mark This, and then reach and the corresponding page functional unit of component script is added in corresponding Page Template, it to be accessed with generation Target pages, without again the target pages to be generated are carried out with the publication flows such as audit, reach and improve formation efficiency Effect.
As a kind of optional scheme, further include:
1) dispensing unit, for before accessing page request is obtained, obtaining to build with first flag in configuration interface The component mark of vertical mapping relations, wherein, the component that page functional unit is shown on configuration interface identifies.
Optionally, in the present embodiment, above-mentioned first flag can be, but not limited to for unique mark in configuration interface Configuration process.That is, in the predetermined time, the page functional unit for establishing mapping relations is obtained on configuration interface Component mark after, by use first flag unique mark above-mentioned for target pages progress page functional unit configuration process obtain The configuration information arrived.In other words, the component mark of identical page functional unit is configured for identical target pages in configuration interface Know, but during setup time difference, first flag can be different identification.
It should be noted that it in the present embodiment, after configuration information is obtained, will be marked according to above-mentioned configuration information and first Know the corresponding access link of generation, such as access link with uniform resource locator (Uniform Resource Locator, abbreviation URL) form is by sending, sharing or other modes are supplied to access terminal.In the present embodiment, indicated by above-mentioned access link Address can be, but not limited to storage address for above-mentioned Page Template and page script, wherein, carry and deposit in page script Store up the address information of above-mentioned configuration information.
Optionally, in the present embodiment, second acquisition unit includes:Download module, for according to accessing page request institute The request address of instruction is downloaded and obtains Page Template and page script, wherein, page function group is at least configured in Page Template The Show Styles of part.
It should be noted that the request address indicated by above-mentioned accessing page request can be, but not limited to match for above-mentioned basis The access link of confidence breath generation.That is, after access terminal gets accessing page request, above-mentioned page access will be asked Indicated request address (accessing link) is asked to access, according to making an appointment, (will access chain from above-mentioned request address Connect) in get it is general for generating the Page Template and page script of target pages so that different access terminal can be fast Speed obtains stored Page Template and page script, convenient for being pre-configured with according to the address information acquisition indicated by page script Configuration information, so as to reach improve generation the target pages to be accessed formation efficiency.
In addition, in the present embodiment, above-mentioned request address (accessing link) and the address information indicated by page script It can be deployed on the different location in identical server, can also be deployed in different servers, such as request address (i.e. Access link) it is deployed in CDN server, the address information indicated by page script is deployed in configuration server.It is above-mentioned only It is a kind of example, any restriction is not done to this in the present embodiment.
Optionally, in the present embodiment, at least one of is further included:
1) the first display unit, for obtaining the component mark for establishing mapping relations with first flag in configuration interface Before knowledge, the component mark of whole page functional units is shown on configuration interface;
2) the second display unit identifies it being obtained in configuration interface for establishing the component of mapping relations with first flag Before, selective listing is shown on configuration interface, wherein, selective listing is used for after the second operational order is received, expansion display The component mark of whole page functional units;
3) third display unit identifies it being obtained in configuration interface for establishing the component of mapping relations with first flag Before, search input frame is shown on configuration interface, wherein, search input frame is used to search for the component mark of whole page functional units Know.
It is specifically illustrated with reference to the example below, it is assumed that configuration interface shows whole pages by taking Fig. 3 as an example, in configuration interface The component mark of functional unit, it is assumed that the component mark of shown page functional unit includes:Ballot, comment, statistics.Pass through Corresponding component mark (e.g., voting) is chosen, and the mark of the component to choose (e.g., voting) creates first flag (such as ID- 1), the mapping relations so as to fulfill the component mark established first flag with above-mentioned and chosen therebetween.
In addition, in the present embodiment, it can also be obtained by the modes such as selective listing or search input frame and be reflected for establishing The component for penetrating the page functional unit of relationship identifies, and details are not described herein in the present embodiment.
The embodiment provided by the application, by being directly configured what will be shown in target pages in visualization interface Page functional unit so as to reach simplified configuration step, saves development process, to realize the effect for improving efficiency of page generation.
As a kind of optional scheme, further include:
1) execution unit, for when page functional unit is designated as the first kind, when generating target pages, performing page Page Service indicated by the functional unit of face;Alternatively, when page functional unit is designated as Second Type, in generation target pages Later, it receives and the first operational order generated after trigger action is performed to trigger button shown in target pages, wherein, it touches It is corresponding with page functional unit to send out button;The first operational order is responded, performs the Page Service indicated by page functional unit.
For example, first kind page functional unit to be for counting page functional unit, while target pages are generated, The statistical operation to the target pages is performed, to count the page access number to the target pages.
In another example Second Type page functional unit is by taking page functional unit of voting as an example, after target pages are generated, It performs the first operation generated after ballot operation receiving pair with the corresponding ballot button of ballot page functional unit and refers to After order, then the ballot service indicated by ballot page functional unit is performed, obtain the voting results of corresponding ballot content.
It should be noted that in the present embodiment, said modules script can be, but not limited to directly invoke a page clothes It is engaged in corresponding service interface, can also but be not limited to call the service interface of multiple Page Services, for example, using based on nodejs High concurrent tafnode frames build service background, call the service interface of different Page Services.
Optionally, in the present embodiment, it for the different corresponding read-write demands of target pages, can be, but not limited to be configured Different storage modes:For example, low frequency read-write operation carries out content storage using mysql databases, high frequency read-write operation uses The dcache of MIG, so as to ensure timely responding to for interface.
The embodiment provided by the application, can be directly in generation target pages according to the characteristics of different Page Services Shi Zhihang Page Services can also perform page clothes in generation target pages and then according to the operational order to target pages Business.So as to fulfill the flexibility for improving Page Service execution.
Embodiment 3
The application environment of page generation method provided in an embodiment of the present invention can be, but not limited to reference to answering in embodiment 1 With environment, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, it can be, but not limited to be applied to page as shown in Figure 6 with above-mentioned page generation method In face generation system, wherein, which includes:Configuration server 602, terminal 604 and CDN server 606.Need what is illustrated It is the page function of matching with first flag being configured by terminal visualization configuration interface for the target pages to be generated The configuration information of component is stored in configuration server 602, for generating the Page Template of target pages and page script storage In CDN server 606.It is specific to perform step step as shown in Figure 6:
Such as step S602, terminal 604 obtains accessing page request, wherein, it carries to refer in the accessing page request Show the first flag of page functional unit to be configured in the target pages to be accessed in accessing page request, respond the page Face access request, terminal 604 from CDN server 606 download obtain for generate target pages Page Template and with page mould The matched page script of plate, such as step S604.Then, terminal 604 obtains above-mentioned first flag using page script parsing, and If step S606 obtains the address information that page script indicates, and then such as step S608, according to address information instruction path from Configuration server 602 obtains configuration information, obtains what is matched with first flag in the mapping relations recorded from configuration information The component mark of page functional unit, and then corresponding component script is obtained by component mark, to utilize the component script Service interface corresponding with page functional unit is called, such as step S610, page functional unit corresponding with component script is added It adds in Page Template, generates the accessing page request target pages to be accessed.
Embodiment 4
According to embodiments of the present invention, a kind of page generation equipment for being used to implement above-mentioned page generation method is additionally provided, As shown in fig. 7, the equipment includes:
1) communication interface 702 are set as obtaining accessing page request, wherein, the is carried in the accessing page request One mark, the first flag are used to indicate in the accessing page request page to be configured in the target pages to be accessed Face functional unit;
2) processor 704 are connect with communication interface 702, are set as responding the accessing page request acquisition for generating The Page Template of the target pages and with the matched page script of the Page Template, wherein, the page script is for obtaining Take the component script of the page functional unit to match with the first flag;The page is obtained by the page script The component script of face functional unit, and will the page function corresponding with the component script using the component script Component is added in the Page Template, to generate the target pages.
3) display 706 are connect with processor 704, are set as showing above-mentioned target pages;
4) memory 708 are connect with communication interface 702 and processor 704, display 706, are set as storage page object Face.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Embodiment 5
The embodiment of the present invention additionally provides a kind of storage medium.Optionally, in the present embodiment, above-mentioned storage medium can With at least one of multiple network equipments for being located in network network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for performing following steps:
S1 obtains accessing page request, wherein, first flag is carried in accessing page request, first flag is used to refer to Show the page functional unit to be configured in the target pages to be accessed in accessing page request;
S2, response page access request obtain for generate target pages Page Template and with the matched page of Page Template Face script, wherein, the component script of page functional unit that page script matches for acquisition with first flag;
S3 obtains the component script of page functional unit by page script, and will be with component script using component script Corresponding page functional unit is added in Page Template, to generate target pages;
S4, shows target pages, wherein, page functional unit is configured in target pages..
Optionally, storage medium is also configured to store the program code for performing following steps:
S1 obtains the preconfigured page to match with first flag by page script from the database of server The component mark of functional unit;
S2 obtains the component script to match with component mark, wherein, component script is used for request call page function group The service interface of Page Service indicated by part, page functional unit are used to provide one or more page clothes in target pages Business.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical solution that art scheme substantially in other words contributes to the prior art can be with soft The form of part product embodies, which is stored in storage medium, is used including some instructions so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or It is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. a kind of page generation method, which is characterized in that including:
Accessing page request is obtained, wherein, first flag is carried in the accessing page request, the first flag is used to refer to Show the page functional unit to be configured in the target pages to be accessed in the accessing page request;
Respond the accessing page request obtain Page Template for generating the target pages and with the Page Template The page script matched, wherein, the page functional unit that the page script matches for acquisition with the first flag Component script;
Obtain the component script of the page functional unit by the page script, and will be with using the component script The corresponding page functional unit of the component script is added in the Page Template, to generate the target pages;
Show the target pages, wherein, the page functional unit is configured in the target pages.
2. according to the method described in claim 1, it is characterized in that, described obtain the page function by the page script The component script of component includes:
The preconfigured institute to match with the first flag is obtained from the database of server by the page script State the component mark of page functional unit;
The component script to match with component mark is obtained, wherein, the component script is for described in request call The service interface of Page Service indicated by page functional unit, the page functional unit are used to provide in the target pages One or more Page Services.
3. according to the method described in claim 2, it is characterized in that, it is described by the page script from the database of server The middle component mark for obtaining the preconfigured page functional unit to match with the first flag includes:
The address information indicated by the page script is obtained, wherein, described address information is used to indicate in the server The path of configuration information that storage matches with the first flag, the configuration information are used to record the first flag and institute State the mapping relations between the component mark of page functional unit;
Obtain the configuration information according to the path, and obtain from the mapping relations that the configuration information is recorded with The component mark for the page functional unit that the first flag matches.
4. according to the method described in claim 2, it is characterized in that, before the acquisition accessing page request, further include:
The component mark for establishing mapping relations with the first flag is obtained in configuration interface, wherein, the configuration The component mark of the page functional unit is shown on interface.
5. it according to the method described in claim 4, it is characterized in that, obtains to mark with described first in configuration interface described Before knowing the component mark for establishing the mapping relations, at least one of is further included:
The component mark of whole page functional units is shown on the configuration interface;
Selective listing is shown on the configuration interface, wherein, the selective listing is used for after the second operational order is received, The component mark of the whole page functional units of expansion display;
Search input frame is shown on the configuration interface, wherein, described search input frame is used to search for whole page function groups The component mark of part.
6. it according to the method described in claim 2, it is characterized in that, further includes:
When the page functional unit is designated as the first kind, when generating the target pages, the page function is performed The Page Service indicated by component;Or
When the page functional unit is designated as Second Type, after the target pages are generated, receive to the target Shown trigger button performs the first operational order generated after trigger action in the page, wherein, the trigger button and institute It is corresponding to state page functional unit;First operational order is responded, performs the page indicated by the page functional unit Face services.
7. according to the method described in claim 1, it is characterized in that, the response accessing page request obtains to generate The Page Template of the target pages and include with the matched page script of the Page Template:
According to the request address indicated by the accessing page request, download and obtain the Page Template and the page script, Wherein, the Show Styles of page functional unit is at least configured in the Page Template.
8. a kind of webpage generating device, which is characterized in that including:
First acquisition unit, for obtaining accessing page request, wherein, first flag is carried in the accessing page request, The first flag is used to indicate the page function to be configured in the target pages to be accessed in the accessing page request Component;
Second acquisition unit, for respond the accessing page request obtain Page Template for generating the target pages and With the Page Template matched page script, wherein, the page script matches for obtaining with the first flag The component script of the page functional unit;
Generation unit for obtaining the component script of the page functional unit by the page script, and utilizes institute It states component script the page functional unit corresponding with the component script is added in the Page Template, to generate State target pages;
Display unit, for showing the target pages, wherein, the page functional unit is configured in the target pages.
9. device according to claim 8, which is characterized in that the generation unit includes:
First acquisition module is obtained for passing through the page script from the database of server preconfigured with described the The component of the page functional unit mark that one mark matches;
Second acquisition module, for obtaining the component script to match with component mark, wherein, the component script For the service interface of the Page Service indicated by page functional unit described in request call, the page functional unit is used for The target pages provide one or more Page Services.
10. device according to claim 9, which is characterized in that first acquisition module includes:
First acquisition submodule, for obtaining the address information indicated by the page script, wherein, described address information is used for Indicate the path of configuration information that storage matches with the first flag in the server, the configuration information is used to remember Record the mapping relations between the first flag and the component mark of the page functional unit;
Second acquisition submodule, for obtaining the configuration information according to the path, and recorded from the configuration information The component that the page functional unit to match with the first flag is obtained in the mapping relations identifies.
11. device according to claim 9, which is characterized in that further include:
Dispensing unit, for it is described acquisition accessing page request before, configuration interface obtain for the first flag The component mark of mapping relations is established, wherein, described group of the page functional unit is shown on the configuration interface Part identifies.
12. according to the devices described in claim 11, which is characterized in that further include at least one of:
First display unit, for being obtained described in configuration interface for establishing the mapping relations with the first flag Before the component mark, the component mark of whole page functional units is shown on the configuration interface;
Second display unit obtains to establish described in the mapping relations with the first flag described in configuration interface Before component mark, selective listing is shown on the configuration interface, wherein, the selective listing is used to receive the second behaviour After instructing, the component mark of the whole page functional units of expansion display;
Third display unit obtains to establish described in the mapping relations with the first flag described in configuration interface Before component mark, search input frame is shown on the configuration interface, wherein, described search input frame is used to search for whole pages The component mark of face functional unit.
13. device according to claim 9, which is characterized in that further include:
Execution unit, for when the page functional unit is designated as the first kind, when generating the target pages, performing The Page Service indicated by the page functional unit;Alternatively, when the page functional unit is designated as Second Type, After the target pages are generated, receive and generated after performing trigger action to trigger button shown in the target pages The first operational order, wherein, the trigger button is corresponding with the page functional unit;First operation is responded to refer to It enables, performs the Page Service indicated by the page functional unit.
14. device according to claim 8, which is characterized in that the second acquisition unit includes:
Download module, for the request address indicated by according to the accessing page request, download obtain the Page Template and The page script, wherein, the Show Styles of page functional unit is at least configured in the Page Template.
CN201611242566.0A 2016-12-28 2016-12-28 Page generation method and device Active CN108255847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611242566.0A CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611242566.0A CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Publications (2)

Publication Number Publication Date
CN108255847A true CN108255847A (en) 2018-07-06
CN108255847B CN108255847B (en) 2021-03-26

Family

ID=62719139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611242566.0A Active CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Country Status (1)

Country Link
CN (1) CN108255847B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144615A (en) * 2018-09-29 2019-01-04 北京城市网邻信息技术有限公司 A kind of information issuing method, device, equipment and storage medium
CN109151022A (en) * 2018-08-21 2019-01-04 平安科技(深圳)有限公司 Call method, device, computer equipment and the storage medium of webpage console
CN109460531A (en) * 2018-11-07 2019-03-12 北京金山云网络技术有限公司 Web page management method, device and intelligent terminal
CN109634602A (en) * 2018-10-26 2019-04-16 平安科技(深圳)有限公司 Electronic device, man-machine ballot recognition methods and storage medium
CN110457635A (en) * 2019-08-15 2019-11-15 北京中网易企秀科技有限公司 A kind of webpage generating method and system
CN110633219A (en) * 2019-09-24 2019-12-31 网易(杭州)网络有限公司 Page testing method and device, storage medium and electronic equipment
CN110928545A (en) * 2019-12-04 2020-03-27 北京小米移动软件有限公司 Component distribution method, single-page application development method, device and storage medium
CN110990126A (en) * 2019-12-12 2020-04-10 北京明略软件系统有限公司 Method and device for realizing shortcut front-end service page based on js
CN112051994A (en) * 2019-06-06 2020-12-08 阿里巴巴集团控股有限公司 Visual component information processing and page visual design method and device
CN112114805A (en) * 2020-08-27 2020-12-22 长沙市到家悠享网络科技有限公司 Page generation method, device and equipment
CN112230915A (en) * 2020-09-07 2021-01-15 长沙市到家悠享家政服务有限公司 Page generation method and device and electronic equipment
CN112487331A (en) * 2020-11-26 2021-03-12 北京有竹居网络技术有限公司 Page generation method and device, storage medium and electronic equipment
CN113282862A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Webpage publishing method and device, storage medium and electronic device
CN113467775A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for generating page
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079361A1 (en) * 2010-09-27 2012-03-29 International Business Machines Corporation System, method, and program for generating web page
US20130073682A1 (en) * 1999-10-28 2013-03-21 Augme Technologies, Inc. System and method for adding targeted content in a web page
US8504913B2 (en) * 2007-06-08 2013-08-06 Apple Inc. Client-side components
CN103365855A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method and server for generating web pages
CN103677779A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible page configuration showing method
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN104462131A (en) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 Method and device for processing information issuing page
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
US20160259629A1 (en) * 2006-01-10 2016-09-08 International Business Machines Corporation System and method for serving multiple data objects and formatting functions in a single request
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130073682A1 (en) * 1999-10-28 2013-03-21 Augme Technologies, Inc. System and method for adding targeted content in a web page
US20160259629A1 (en) * 2006-01-10 2016-09-08 International Business Machines Corporation System and method for serving multiple data objects and formatting functions in a single request
US8504913B2 (en) * 2007-06-08 2013-08-06 Apple Inc. Client-side components
US20120079361A1 (en) * 2010-09-27 2012-03-29 International Business Machines Corporation System, method, and program for generating web page
CN103365855A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method and server for generating web pages
CN103677779A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible page configuration showing method
CN104462131A (en) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 Method and device for processing information issuing page
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PHILIPPE DE RYCK ET AL: "Protected Web Components: Hiding Sensitive Information in the Shadows", 《IT PROFESSIONAL》 *
刘靖桐: "面向Web2.0的web应用前端开发框架的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151022A (en) * 2018-08-21 2019-01-04 平安科技(深圳)有限公司 Call method, device, computer equipment and the storage medium of webpage console
CN109151022B (en) * 2018-08-21 2022-06-14 平安科技(深圳)有限公司 Calling method and device of webpage console, computer equipment and storage medium
CN109144615A (en) * 2018-09-29 2019-01-04 北京城市网邻信息技术有限公司 A kind of information issuing method, device, equipment and storage medium
CN109144615B (en) * 2018-09-29 2022-05-10 北京城市网邻信息技术有限公司 Information publishing method, device, equipment and storage medium
CN109634602A (en) * 2018-10-26 2019-04-16 平安科技(深圳)有限公司 Electronic device, man-machine ballot recognition methods and storage medium
CN109460531A (en) * 2018-11-07 2019-03-12 北京金山云网络技术有限公司 Web page management method, device and intelligent terminal
CN112051994A (en) * 2019-06-06 2020-12-08 阿里巴巴集团控股有限公司 Visual component information processing and page visual design method and device
CN110457635A (en) * 2019-08-15 2019-11-15 北京中网易企秀科技有限公司 A kind of webpage generating method and system
CN110633219A (en) * 2019-09-24 2019-12-31 网易(杭州)网络有限公司 Page testing method and device, storage medium and electronic equipment
CN110633219B (en) * 2019-09-24 2023-09-08 网易(杭州)网络有限公司 Page test method and device, storage medium and electronic equipment
CN110928545A (en) * 2019-12-04 2020-03-27 北京小米移动软件有限公司 Component distribution method, single-page application development method, device and storage medium
CN110928545B (en) * 2019-12-04 2024-03-12 北京小米移动软件有限公司 Component distribution method, development method and device of single-page application and storage medium
CN110990126A (en) * 2019-12-12 2020-04-10 北京明略软件系统有限公司 Method and device for realizing shortcut front-end service page based on js
CN113467775A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for generating page
CN112114805A (en) * 2020-08-27 2020-12-22 长沙市到家悠享网络科技有限公司 Page generation method, device and equipment
CN112114805B (en) * 2020-08-27 2023-05-12 长沙市到家悠享网络科技有限公司 Page generation method, device and equipment
CN112230915A (en) * 2020-09-07 2021-01-15 长沙市到家悠享家政服务有限公司 Page generation method and device and electronic equipment
CN112487331A (en) * 2020-11-26 2021-03-12 北京有竹居网络技术有限公司 Page generation method and device, storage medium and electronic equipment
CN113282862A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Webpage publishing method and device, storage medium and electronic device
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium

Also Published As

Publication number Publication date
CN108255847B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108255847A (en) Page generation method and device
US8694906B2 (en) Dynamic visualization of physical and geographical multitenant cloud computing
CN106202117A (en) Data processing method, device and server
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN110110543A (en) Data processing method, device, server and storage medium
CN106534356A (en) Method and apparatus for processing template data, requesting template data and displaying template data
CN109155758A (en) Virtual base framework
CN108491267A (en) Method and apparatus for generating information
CN106453519A (en) Interface call method and device
CN104935660B (en) A kind of cloud program development operating system, method and device
CN105205072B (en) The methods of exhibiting and system of webpage information
CN106856439A (en) The method and server of a kind of scheme test
CN106155769A (en) A kind of workflow processing method, device and workflow engine
CN108718337A (en) Website account login, verification, verification information processing method, apparatus and system
CN102710793A (en) Network printing system based on cloud computing and data storage method thereof
CN109462508A (en) Node deployment method, device and storage medium
CN109981745A (en) A kind of journal file processing method and server
CN105812563A (en) Picture sending method and device
CN108134812A (en) Data processing method and device
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
CN114155921A (en) Configuration method and device of medical form, computer equipment and storage medium
CN110188276A (en) Data sending device, method, electronic equipment and computer readable storage medium
CN108153465A (en) Label setting method and device based on enterprise SaaS applications
CN109903055A (en) Merchandise control method, apparatus, computer installation and storage medium
CN108737487A (en) Method of data synchronization and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant