CN108536715A - A kind of preview page generation method, device, equipment and storage medium - Google Patents
A kind of preview page generation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108536715A CN108536715A CN201710129819.1A CN201710129819A CN108536715A CN 108536715 A CN108536715 A CN 108536715A CN 201710129819 A CN201710129819 A CN 201710129819A CN 108536715 A CN108536715 A CN 108536715A
- Authority
- CN
- China
- Prior art keywords
- preview
- page
- filled
- data
- service user
- 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
Links
Abstract
The embodiment of the invention discloses a kind of preview page generation method, device, equipment and storage mediums.This method includes:Data source definitions information corresponding with each component to be filled in template page to be filled is supplied to preview service user;It receives preview service user and waits for preview data according to what the data source definitions information returned;Preview data and template page to be filled are waited for according to described, constructs corresponding preview page, and are supplied to the preview service user.The embodiment of the present invention can shorten the response time for generating preview page by using above-mentioned technical proposal, reduce preview service system build and maintenance cost.
Description
Technical field
The present embodiments relate to technical field of information processing more particularly to a kind of preview page generation method, device, set
Standby and storage medium.
Background technology
During Website development, it usually needs filling is largely used to the material information of displayed web page, and by filling
After webpage after material carries out preview and a series of security tests, it can put on line and apply.The preview of webpage is split
Have great importance for originator or client, intuitive displaying can be provided for developer or client by preview webpage, just
It is adjusted in the page, to meet the displaying demand of developer or client to the webpage generated.
Currently, when carrying out preview page generation, it usually needs structure is identical with institute's preview page actual application environment
Simulated environment, to realize the preview of the page, for example, the page of institute's preview needs that how many a data-interfaces are arranged when applying on line
Data are called, then when carrying out preview page generation, it is also desirable to setting and the data-interface using identical quantity on line, pre-
It lookes at the data called in page generating process and generated needed for preview page from each interface of setting, obtains corresponding preview page
Face so that the response time for generating preview page is longer, and builds preview service system and need to involve production environment and relied on
Upstream and downstream so that preview service system building and maintenance cost are higher.
Invention content
In view of this, a kind of preview page generation method of offer of the embodiment of the present invention, device, equipment and storage medium,
It is longer with the response time for solving existing preview page generation method generation preview page, and preview service system building and dimension
Protect the higher technological deficiency of cost.
In a first aspect, an embodiment of the present invention provides a kind of preview page generation methods, including:
It is supplied to preview service to make data source definitions information corresponding with each component to be filled in template page to be filled
With side;
It receives preview service user and waits for preview data according to what the data source definitions information returned;
Preview data and template page to be filled are waited for according to described, constructs corresponding preview page, and are supplied to described pre-
It lookes at and services user.
Second aspect, the embodiment of the present invention additionally provide a kind of preview page generating means, including:
Data source definitions sharing module, for determining data source corresponding with each component to be filled in template page to be filled
Adopted information is supplied to preview service user;
Preview data receiving module is waited for for receiving preview service user according to what the data source definitions information returned
Preview data;
Preview page constructing module, for waiting for that preview data and template page to be filled, construction are corresponding pre- according to
It lookes at the page, and is supplied to the preview service user.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in
On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real
Apply the preview page generation method described in example.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program, the program realize preview page generation method as described in the embodiments of the present invention when being executed by processor.
Technical solution provided in an embodiment of the present invention, by the way that each component in page masterplate is carried out data source definitions, and
Give data source definitions information sharing to preview service user so that after preview service user fills corresponding preview data,
Preview service provider can receive waits for preview data according to what data source definitions returned, and is filled into masterplate to be filled,
Construct corresponding preview page.The present embodiment can shorten the response for generating preview page by using above-mentioned technical proposal
Time, reduce preview service system build and maintenance cost.
Description of the drawings
Fig. 1 is a kind of flow diagram for preview page generation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of preview page generation method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for preview page generation method that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for preview page generating means that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention five provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than
Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
At the processing or method described as flow diagram.Although operations (or step) are described as sequence by flow diagram
Processing, but many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can
To be rearranged.The processing can be terminated when its operations are completed, it is also possible to being not included in attached drawing
Additional step.The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram for preview page generation method that the embodiment of the present invention one provides.The present embodiment
Method can be executed by preview page generating means, which can realize that the device can by way of hardware and/or software
It is integrated in the server or terminal device for providing page preview service, and method provided in this embodiment can generally fit
The case where for carrying out page preview to website in exploitation.As shown in Figure 1, the method for the present embodiment includes:
110, it is supplied to preview to take data source definitions information corresponding with each component to be filled in template page to be filled
Be engaged in user.
Illustratively, template page to be filled refers to the editable webpage for filling material information to be presented, wherein object
Material information may include word, the picture etc. of filling.During being applied on the input line of website, it is usually directed to exploitation end, visitor
Family end and user terminal are developed the website for meeting client demand by exploitation end, then are thrown corresponding website by client under online
Enter to apply on line and is supplied to user terminal.Technical solution provided in this embodiment is used under the line of website in development process, by developing
End provides preview service for client, in order to which client checks whether developed Website page meets its displaying demand, thus
Preview service user can be understood as client, such as shop on net in the present embodiment, and preview service provider can be understood as
End is developed, such as Baidu's glutinous rice platform.
Illustratively, according to the content showed in template page, template page can be divided into numerous components, it will be each
The data that component relies on are abstracted to obtain corresponding data collection, are defined respectively to each data set by preview service provider unique
Data source obtains corresponding data source definitions information, and is supplied to the user of preview service.It is understood that can incite somebody to action
Data source definitions information is supplied to multiple preview service users, such as multiple shop on net.
120, it receives preview service user and waits for preview data according to what the data source definitions information returned.
Illustratively, preview service provider can provide at least one template page to be filled, preview service user's
Correlative editorial staff can select template page according to displaying demand, and the content shown is needed in the input template page,
Wait for that preview data, preview service user will will first wait for preview data when preview data returns to preview service provider
It after being arranged according to data source definitions information, returns again to and gives preview service provider, received by preview service provider corresponding
Wait for preview data.
130, preview data and template page to be filled are waited for according to, constructs corresponding preview page, and be supplied to institute
State preview service user.
Illustratively, the template page to be filled and return that preview service provider can select according to preview service user
That returns waits for preview data, will wait for that preview data is filled into template page to be filled, generates preview page, and preview is supplied to take
Be engaged in user, and preview service user is made to carry out page preview.
Technical solution provided by the embodiment, by the way that each component in page masterplate is carried out data source definitions, and by data
Source defines information sharing and gives preview service user so that after preview service user fills corresponding preview data, preview clothes
Business provider can receive waits for preview data according to what data source definitions returned, and is filled into masterplate to be filled, constructs
Corresponding preview page.Can shorten generate preview page response time, reduce preview service system build and safeguard at
This.
Optionally, preview service provider reception is corresponding can will wait for that preview data is kept in after preview data,
It is such as temporarily stored in the Redis of preview service provider, when generating preview page, then can be obtained directly from Redis corresponding
Wait for preview data, to effectively reduce between each system data coupling and repeated work.
Embodiment two
Fig. 2 is a kind of flow diagram of preview page generation method provided by Embodiment 2 of the present invention, and the present embodiment exists
It optimizes on the basis of above-described embodiment one, before by data source definitions information sharing to preview service user, determines
Go out data source definitions information corresponding with the component, as shown in Fig. 2, the method for the present embodiment includes:
210, content is showed according to the template page to be filled, the template page to be filled is divided at least one
A component to be filled.
Illustratively, template page is divided by modules according to the content that shows of the filling template page, namely waits filling out
Fill component.
Specifically, by taking shop on net as an example, content is showed according to shop, it can be by the corresponding filling template page in shop
Be divided into user's operation component, shop recruit component, preferential component of checking, shop movable component, shops's component, telephone number component,
Online reservations component, on-line payment component, single group component, evaluation component, merchant component and conversion component etc..
220, the data relied on respectively at least one component to be filled are clustered and are abstracted, determine with it is described extremely
A few component corresponding data to be filled source defines information.
Illustratively, the data that each component relies on can refer to the data information showed required for each component, for example, shop trick group
Part rely on data may include:The information such as shop signboard picture and shop title, the data that shop movable component relies on can be with
Including set meal data, and set meal data may include the information such as set meal picture and related text introduction.
Illustratively, after the data that each component to be filled relies on being clustered and are abstracted, limited data set is obtained, according to
According to the corresponding data set of each component, it is each component definition respective data sources to be filled, it is corresponding establishes data source definitions information
Component between incidence relation, and in data source it is required filling data field filling data class corresponding with the field
Type is defined.
Specifically, for example recruiting component for shop, it can be directed to one data source of the component definition, be denoted as data source 1, data
Source 1 can specify that the component needs to fill the data type filled required for the field of data and each field, as the component needs
Filling data field may include:Shop signboard picture, shop title, scoring and pre-capita consumption etc., then for example shop recruits picture
The data type of support may include " .jpg ", " .jepg " and " .gif " etc., i.e. picture format, and shop name field is corresponding
Data type can be " character type ".
230, it is supplied to preview to take data source definitions information corresponding with each component to be filled in template page to be filled
Be engaged in user.
Optionally, the data source definitions information is supplied to the preview service user in the form of list.
Wherein, the list includes:The corresponding blank entry of information is defined with different data sources, the blank entry is used for
Receive the preview service user offer waits for preview data.
Illustratively, the list that a blank can be provided according to data source definitions information, so that preview service user
Corresponding material information is filled in blank form.
Specifically, by taking shop recruits component as an example, the data source 1 of component definition is recruited according to shop, user provides for preview service
The material filling personnel of blank form as shown in Table 1, preview service user fill accordingly according to blank form editor
Material information, table first row correspond to the data field for needing to fill in the component, and table second is classified as the data of corresponding field
Formula bar in table secondary series, can choose associated material information for filling corresponding material information by selecting connection,
It can also manual editing's input material information.
Table 1
Shop signboard picture | |
Shop title | |
Scoring | |
Pre-capita consumption |
In addition, preview service provider can provide at least one template page to be filled, such as template 1, template 2 and mould
Plate 3 etc., thus preview service user need to choose template page to be filled, " Page Template " also can be used as a field and appear in
In above-mentioned list, so that preview service user chooses.
240, it receives preview service user and waits for preview data according to what the data source definitions information returned.
Illustratively, after preview service user edits material information, preview service user backstage can be according to data
Source defines information, and the material information of editor is arranged, and such as recruits the corresponding material information of component that data source 1 is added in shop and corresponds to
In the corresponding position of background program, preview data is waited for after being arranged, and return to preview service provider.
250, preview data and template page to be filled are waited for according to, constructs corresponding preview page, and be supplied to institute
State preview service user.
Technical solution provided by the embodiment, by the way that each component in page masterplate is carried out data source definitions, and by data
Source defines information sharing and gives preview service user so that after preview service user fills corresponding preview data, preview clothes
Business provider can receive waits for preview data according to what data source definitions returned, and is filled into masterplate to be filled, constructs
Corresponding preview page.Can shorten generate preview page response time, reduce preview service system build and safeguard at
This.
Embodiment three
Fig. 3 is a kind of flow diagram for preview page generation method that the embodiment of the present invention three provides, and the present embodiment exists
It is optimized on the basis of the various embodiments described above, the process to constructing preview page refines, as shown in figure 3, the present embodiment
Method include:
310, it is supplied to preview to take data source definitions information corresponding with each component to be filled in template page to be filled
Be engaged in user.
320, it receives preview service user and waits for preview data according to what the data source definitions information returned.
330, it receives the preview page that the preview service user sends and generates request.
Illustratively, preview service provider can provide preview page corresponding URL, when preview service user accesses
When the URL, then preview service provider receives the preview page that preview service user sends and generates request.
340, it is generated and is asked according to the preview page, preview data and the template page to be filled are waited for described in determination.
Illustratively, preview service provider generates request to preview page and parses, and determines and is given birth to the preview page
At asking corresponding template page to be filled, and transfers from the temporary Redis for waiting for preview data and corresponding to wait for preview data.
350, wait for that preview data is filled in each component to be filled of the template page to be filled by described, construction corresponds to
Preview page, and be supplied to preview service user.
Illustratively, it transfers corresponding after preview data, can obtain waiting for all data sources for including in preview data
Information is defined, corresponding component to be filled can determine according to data source definitions information, is waited for data source definitions information is corresponding
Preview data is filled into each corresponding component, after carrying out page rendering, is supplied to preview service user, preview service user
It can then check preview page corresponding with the material information of this editor.
Optionally, before receiving the preview page that the preview service user sends and generating request, can also include:
It waits for that preview data and the template page to be filled are calculated according to described and waits for the corresponding preview of preview data with described
The addresses URL of the page, as the addresses preview URL;The addresses the preview URL are supplied to the preview service user, to connect
It receives the preview service user and generates request for the preview page that the addresses the preview URL are sent.
Illustratively, what can be returned according to preview service user waits for that preview data carries out MD5 hash and calculates, and is breathed out
Uncommon value Ki is added using Ki as unique identifier in the addresses URL of preview page, obtains the addresses preview URL, such as preview page
The addresses URL in face are constituted:Domain name+path++ K1+ parameters, wherein K1 indicate to wait for preview data pair with what this was edited
The unique identifier answered, for carrying out unique mark to the addresses this preview URL.When preview service user accesses preview URL
When address, preview service provider can be extracted according to the K1 in the addresses preview URL by the temporary interface for waiting for preview data source
It generates the corresponding of preview page and waits for preview data, be filled into the corresponding component to be filled of page masterplate and rendered, generated
Preview page is supplied to preview service user.
Technical solution provided by the embodiment, by waiting for that the addresses URL with unique mark are calculated in preview data so that
When generating preview page, it can accurately extract and wait for preview data accordingly, and be filled into masterplate to be filled, construct phase
The preview page answered, can shorten generate preview page response time, reduce preview service system build and maintenance cost.
Example IV
Fig. 4 is a kind of structural schematic diagram for preview page generating means that the embodiment of the present invention four provides, and device can be by soft
Part and/or hardware realization, the device can be integrated in the server or terminal device for providing page preview service, can lead to
Execution preview page generation method is crossed to construct preview page.As shown in figure 4, the device includes:Data source definitions sharing module
410, preview data receiving module 420 and preview page constructing module 430, wherein:
Data source definitions sharing module 410, for will data corresponding with each component to be filled in template page to be filled
Source defines information and is supplied to preview service user.
Preview data receiving module 420 is returned for receiving preview service user according to the data source definitions information
Wait for preview data.
Preview page constructing module 430, for waiting for that preview data and template page to be filled, construction are corresponding according to
Preview page, and it is supplied to the preview service user.
Technical solution provided by the embodiment, by the way that each component in page masterplate is carried out data source definitions, and by data
Source defines information sharing and gives preview service user so that after preview service user fills corresponding preview data, preview clothes
Business provider can receive waits for preview data according to what data source definitions returned, and is filled into masterplate to be filled, constructs
Corresponding preview page.Can shorten generate preview page response time, reduce preview service system build and safeguard at
This.
On the basis of the various embodiments described above, which can also include:
Component clustering module, for believing by data source definitions corresponding with each component to be filled in template page to be filled
Breath is supplied to before preview service user, shows content according to the template page to be filled, by the template to be filled
The page is divided at least one component to be filled;
Data source definitions module, the data for relying on respectively at least one component to be filled are clustered and are taken out
As determining and defining information at least one component corresponding data to be filled source.
On the basis of the various embodiments described above, the data source definitions sharing module 410 can be also used for:By the data
Source is defined information and is supplied to the preview service user in the form of list;
Wherein, the list may include:The corresponding blank entry of information, the blank entry are defined with different data sources
Preview data is waited for for receive that the preview service user provides.
On the basis of the various embodiments described above, the preview page constructing module 430 may include:
Request reception unit generates request for receiving the preview page that the preview service user sends;
Data determination unit is asked for being generated according to the preview page, waits for that preview data is waited for described described in determination
The filling template page;
Preview page structural unit, for waiting for that preview data is filled in the template page to be filled and respectively waits filling out by described
It fills in component, constructs corresponding preview page, and be supplied to preview service user.
On the basis of the various embodiments described above, the preview page constructing module 430 can also include:
Address calculation is used for before receiving the preview page that the preview service user sends and generating request,
Wait for that preview data and the template page to be filled calculate and the URL for waiting for the corresponding preview page of preview data according to described
Address, as the addresses preview URL;
Address transmission unit, for the addresses the preview URL to be supplied to the preview service user, described in reception
Preview service user generates request for the preview page that the addresses the preview URL are sent.
Preview page generating means provided in this embodiment are generated with the preview page that any embodiment of the present invention is provided
Method belongs to same inventive concept, can perform the preview page generation method that any embodiment of the present invention is provided, has execution
The corresponding function module of preview page generation method and advantageous effect.The not technical detail of detailed description in the present embodiment, can
The preview page generation method provided referring to any embodiment of the present invention.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention five provides.Fig. 5 is shown suitable for being used for
Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 5 is shown is only one
Example should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 5, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not
Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not
Movably, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 5
It provides for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile
The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program production
There is one group of (for example, at least one) program module, these program modules to be configured to perform of the invention each for product, the program product
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
Module and program data may include the realization of network environment in each or certain combination in these examples.Program mould
Block 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other computing device
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network
Network, such as internet) communication.As shown, network adapter 20 is logical by bus 18 and other modules of computer equipment 12
Letter.It should be understood that although being not shown in Fig. 5, other hardware and/or software module, packet can be used in conjunction with computer equipment 12
It includes but is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic tape drive
Device and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and
Data processing, such as realize the preview page generation method that the embodiment of the present invention is provided.
Namely:The processing unit is realized when executing described program:It will be with each component to be filled in template page to be filled
Corresponding data source definitions information is supplied to preview service user;Preview service user is received according to the data source definitions
What information returned waits for preview data;Preview data and template page to be filled are waited for according to described, construct corresponding preview page, and
It is supplied to the preview service user.
Embodiment six
The embodiment of the present invention six provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The preview page generation method provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
Namely:The program is realized when being executed by processor:It will be corresponding with each component to be filled in template page to be filled
Data source definitions information is supplied to preview service user;Preview service user is received to be returned according to the data source definitions information
That returns waits for preview data;Preview data and template page to be filled are waited for according to described, construct corresponding preview page, and be supplied to
The preview service user.
The arbitrary combination of one or more computer-readable media may be used.Computer-readable medium can be calculated
Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited
In --- electricity, system, device or the device of magnetic, optical, electromagnetic, infrared ray or semiconductor, or the arbitrary above combination.It calculates
The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this document, can be any include computer readable storage medium or storage journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (12)
1. a kind of preview page generation method, which is characterized in that including:
Data source definitions information corresponding with each component to be filled in template page to be filled is supplied to preview service user;
It receives preview service user and waits for preview data according to what the data source definitions information returned;
Preview data and template page to be filled are waited for according to described, constructs corresponding preview page, and the preview is supplied to take
Be engaged in user.
2. according to the method described in claim 1, it is characterized in that, will be with each component pair to be filled in template page to be filled
The data source definitions information answered is supplied to before preview service user, further includes:
Show content according to the template page to be filled, the template page to be filled is divided at least one to be filled
Component;
The data relied on respectively at least one component to be filled are clustered and are abstracted, and are determined and at least one are waited for described
Fill assembly corresponding data source defines information.
3. according to the method described in claim 1, it is characterized in that, will be corresponding with each component to be filled in template page to be filled
Data source definitions information be supplied to preview service user, including:
The data source definitions information is supplied to the preview service user in the form of list;
Wherein, the list includes:Blank entry corresponding with the data source definitions information, the blank entry is for receiving
What the preview service user provided waits for preview data.
4. according to the method described in claim 1, it is characterized in that, wait for preview data and template page to be filled according to described,
Corresponding preview page is constructed, and is supplied to the preview service user, including:
It receives the preview page that the preview service user sends and generates request;
It is generated and is asked according to the preview page, preview data and the template page to be filled are waited for described in determination;
It waits for that preview data is filled in each component to be filled of the template page to be filled by described, constructs corresponding preview page
Face, and it is supplied to the preview service user.
5. according to the method described in claim 4, it is characterized in that, in the preview page for receiving the preview service user transmission
Before face generates request, further include:
Wait for that preview data calculates the addresses URL of the preview page with the template page to be filled according to described, as preview
The addresses URL;
The addresses the preview URL are supplied to the preview service user, institute is directed to receive the preview service user
The preview page for stating the transmission of the addresses preview URL generates request.
6. a kind of preview page generating means, which is characterized in that including:
Data source definitions sharing module, for believing data source definitions corresponding with each component to be filled in template page to be filled
Breath is supplied to preview service user;
Preview data receiving module waits for preview for receiving preview service user according to what the data source definitions information returned
Data;
Preview page constructing module constructs corresponding preview page for waiting for preview data and template page to be filled according to
Face, and it is supplied to the preview service user.
7. device according to claim 6, which is characterized in that further include:
Component clustering module, for being carried by data source definitions information corresponding with each component to be filled in template page to be filled
Before supplying preview service user, content is showed according to the template page to be filled, by the template page to be filled
It is divided at least one component to be filled;
Data source definitions module, the data for relying on respectively at least one component to be filled are clustered and are abstracted,
It determines and defines information at least one component corresponding data to be filled source.
8. device according to claim 6, which is characterized in that the data source definitions sharing module is additionally operable to:It will be described
Data source definitions information is supplied to the preview service user in the form of list;
Wherein, the list includes:Blank entry corresponding with the data source definitions information, the blank entry is for receiving
What the preview service user provided waits for preview data.
9. device according to claim 6, which is characterized in that the preview page constructing module includes:
Request reception unit generates request for receiving the preview page that the preview service user sends;
Preview data determination unit is asked for being generated according to the preview page, waits for that preview data is waited for described described in determination
The filling template page;
Preview page structural unit, for waiting for that preview data is filled in each to be filled group of the template page to be filled by described
In part, corresponding preview page is constructed, and is supplied to the preview service user.
10. device according to claim 9, which is characterized in that the preview page constructing module further includes:
Address calculation is used for before receiving the preview page that the preview service user sends and generating request, according to
It is described to wait for that preview data calculates the addresses URL of the preview page with the template page to be filled, as the addresses preview URL;
Address transmission unit, for the addresses the preview URL to be supplied to the preview service user, to receive the preview
It services user and generates request for the preview page that the addresses the preview URL are sent.
11. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes the side as described in any in claim 1-5 when executing described program
Method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The method as described in any in claim 1-5 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710129819.1A CN108536715B (en) | 2017-03-06 | 2017-03-06 | Preview page generation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710129819.1A CN108536715B (en) | 2017-03-06 | 2017-03-06 | Preview page generation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108536715A true CN108536715A (en) | 2018-09-14 |
CN108536715B CN108536715B (en) | 2020-12-11 |
Family
ID=63489606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710129819.1A Active CN108536715B (en) | 2017-03-06 | 2017-03-06 | Preview page generation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108536715B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408387A (en) * | 2018-10-24 | 2019-03-01 | 天津字节跳动科技有限公司 | Page test method and device |
CN114491365A (en) * | 2022-01-17 | 2022-05-13 | 广州市玄武无线科技股份有限公司 | Method, device, equipment and medium for previewing configuration page in real time |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055956A1 (en) * | 2000-09-08 | 2002-05-09 | Krasnoiarov Boris Andreyevich | Method and system for assembling concurrently-generated content |
CN1369827A (en) * | 2001-02-14 | 2002-09-18 | 英业达股份有限公司 | Method for generating report on network page |
CN101650745A (en) * | 2009-09-10 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for rapidly generating WEB page based on data definition |
CN102737128A (en) * | 2012-06-20 | 2012-10-17 | 深圳市远行科技有限公司 | Dynamic webpage processing method and device based on browser |
CN103034710A (en) * | 2012-12-07 | 2013-04-10 | 北京奇虎科技有限公司 | Page rendering method and page rendering device for browser |
CN103235719A (en) * | 2013-03-29 | 2013-08-07 | 北界创想(北京)软件有限公司 | Method and device for setting WAP website |
CN103365855A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and server for generating web pages |
CN104978317A (en) * | 2014-04-02 | 2015-10-14 | 腾讯科技(北京)有限公司 | Webpage generating method, webpage generating device, website generating method and website building server |
CN105739963A (en) * | 2014-12-12 | 2016-07-06 | 博雅网络游戏开发(深圳)有限公司 | Method and device for generating webpage |
CN106096064A (en) * | 2016-07-19 | 2016-11-09 | 百度在线网络技术(北京)有限公司 | For the method and apparatus generating the page |
CN106096049A (en) * | 2016-06-29 | 2016-11-09 | 江苏中威科技软件系统有限公司 | A kind of method and system of Visual Production web page template |
-
2017
- 2017-03-06 CN CN201710129819.1A patent/CN108536715B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055956A1 (en) * | 2000-09-08 | 2002-05-09 | Krasnoiarov Boris Andreyevich | Method and system for assembling concurrently-generated content |
CN1369827A (en) * | 2001-02-14 | 2002-09-18 | 英业达股份有限公司 | Method for generating report on network page |
CN101650745A (en) * | 2009-09-10 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for rapidly generating WEB page based on data definition |
CN103365855A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and server for generating web pages |
CN102737128A (en) * | 2012-06-20 | 2012-10-17 | 深圳市远行科技有限公司 | Dynamic webpage processing method and device based on browser |
CN103034710A (en) * | 2012-12-07 | 2013-04-10 | 北京奇虎科技有限公司 | Page rendering method and page rendering device for browser |
CN103235719A (en) * | 2013-03-29 | 2013-08-07 | 北界创想(北京)软件有限公司 | Method and device for setting WAP website |
CN104978317A (en) * | 2014-04-02 | 2015-10-14 | 腾讯科技(北京)有限公司 | Webpage generating method, webpage generating device, website generating method and website building server |
CN105739963A (en) * | 2014-12-12 | 2016-07-06 | 博雅网络游戏开发(深圳)有限公司 | Method and device for generating webpage |
CN106096049A (en) * | 2016-06-29 | 2016-11-09 | 江苏中威科技软件系统有限公司 | A kind of method and system of Visual Production web page template |
CN106096064A (en) * | 2016-07-19 | 2016-11-09 | 百度在线网络技术(北京)有限公司 | For the method and apparatus generating the page |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408387A (en) * | 2018-10-24 | 2019-03-01 | 天津字节跳动科技有限公司 | Page test method and device |
CN109408387B (en) * | 2018-10-24 | 2022-03-22 | 天津字节跳动科技有限公司 | Page testing method and device |
CN114491365A (en) * | 2022-01-17 | 2022-05-13 | 广州市玄武无线科技股份有限公司 | Method, device, equipment and medium for previewing configuration page in real time |
CN114491365B (en) * | 2022-01-17 | 2022-12-09 | 广州市玄武无线科技股份有限公司 | Method, device, equipment and medium for previewing configuration page in real time |
Also Published As
Publication number | Publication date |
---|---|
CN108536715B (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108334387B (en) | Dynamic interface rendering method and device | |
CN107832045A (en) | Across the method and apparatus of programming language interface conversion | |
CN109710243A (en) | Block chain development approach, device, server and medium based on Visualization Platform | |
CN106991154A (en) | Webpage rendering intent, device, terminal and server | |
CN110298740A (en) | Data account checking method, device, equipment and storage medium | |
CN102812451A (en) | Software application testing | |
CN101193007A (en) | Testing method, scenario testing method and corresponding device for URL command | |
CN107590216A (en) | Answer preparation method, device and computer equipment | |
US10528688B1 (en) | System and method for schematic-driven generation of input/output models | |
CN106716355A (en) | Interactive text preview | |
CN106774975A (en) | Input method and device | |
US20170337601A1 (en) | Monetization of interactive network-based information objects | |
KR102555607B1 (en) | Method and apparatus for annotating data, device, storage medium and computer program | |
CN107404418A (en) | Internet product method of testing, device, equipment and storage medium | |
CN109710951A (en) | Supplementary translation method, apparatus, equipment and storage medium based on translation history | |
KR101958773B1 (en) | Method, apparatus and computer-readable medium for making product detail page based on web-toon story | |
CN111324833A (en) | Page display method, device, electronic design and computer readable medium | |
CN106446063A (en) | Webpage updating system | |
CN108536715A (en) | A kind of preview page generation method, device, equipment and storage medium | |
CN108153904A (en) | Language material collection method, device and computer equipment | |
CN109753644A (en) | A kind of RichText Edition method, apparatus, mobile terminal and storage medium | |
KR20200114018A (en) | Method and apparatus for providing automatic quotation service | |
CN110070394A (en) | Data processing method, system, medium and calculating equipment | |
CN109829723A (en) | The method and apparatus for generating business voucher | |
CN107679159A (en) | Generation method, device, server and the storage medium that fault diagnosis class problem replies |
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 |