CN108804471A - webpage generating method and device - Google Patents
webpage generating method and device Download PDFInfo
- Publication number
- CN108804471A CN108804471A CN201710308341.9A CN201710308341A CN108804471A CN 108804471 A CN108804471 A CN 108804471A CN 201710308341 A CN201710308341 A CN 201710308341A CN 108804471 A CN108804471 A CN 108804471A
- Authority
- CN
- China
- Prior art keywords
- block
- content
- webpage
- area
- display mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of webpage generating method of offer of the embodiment of the present invention and device.This method includes:The webpage is divided into multiple blocks;Determine the display mode of each area content in the block;Area's content in the block is obtained according to the display mode, and is shown in the block;Target webpage is generated according to the multiple block.The embodiment of the present invention is by being divided the content in a webpage by block, the content of each block is respectively independent, when by having update in block, only the block is issued, update without triggering other blocks in the page, to mitigate the pressure brought to publisher server and release process, the frequency of publication is substantially reduced, the efficiency for issuing of webpage is improved.
Description
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of webpage generating methods and device.
Background technology
With the fast development of internet arena, the content that webpage is forgiven in website is more abundant, when appointing in webpage
What when having update in a part, need to regenerate a complete webpage.
Under normal conditions, the homepage of website, column page etc. can quote contribution or exterior chain content under many sub- columns, update
Frequency is very high.A column can also be quoted by multiple at the same level or upper level columns simultaneously, in this way the original text under any one column
Part updates the update that can all bring ten or more column pages, relatively low so as to cause auto-building html files efficiency for issuing.
Invention content
A kind of webpage generating method of offer of the embodiment of the present invention and device, to improve auto-building html files efficiency for issuing.
The one side of the embodiment of the present invention is to provide a kind of webpage generating method, including:
The webpage is divided into multiple blocks;
Determine the display mode of each area content in the block;
Area's content in the block is obtained according to the display mode, and is shown in the block;
Target webpage is generated according to the multiple block.
The other side of the embodiment of the present invention is to provide a kind of auto-building html files device, including:
Division module, for the webpage to be divided into multiple blocks;
Determining module, the display mode for determining each area content in the block;
Acquisition module for obtaining area's content in the block according to the display mode, and is shown in the block;
Generation module, for generating target webpage according to the multiple block.
Webpage generating method and device provided in an embodiment of the present invention, by carrying out the content in a webpage by block
It divides, the content of each block is respectively independent, when by having update in block, only issues the block, without triggering
The update of other blocks in the page substantially reduces publication to mitigate the pressure brought to publisher server and release process
Frequency improves the efficiency for issuing of webpage.
Description of the drawings
Fig. 1 is webpage generating method flow chart provided in an embodiment of the present invention;
Fig. 2 is webpage generating method flow chart provided in an embodiment of the present invention;
Fig. 3 is the webpage generating method flow chart that another embodiment of the present invention provides;
Fig. 4 is the structure chart of auto-building html files device provided in an embodiment of the present invention;
Fig. 5 is the structure chart for the auto-building html files device that another embodiment of the present invention provides.
Specific implementation mode
Fig. 1 is webpage generating method flow chart provided in an embodiment of the present invention;Fig. 2 is webpage provided in an embodiment of the present invention
Generation method flow chart.The embodiment of the present invention is relatively low for auto-building html files efficiency for issuing, provides webpage generating method, this method
It is as follows:
Step S101, the webpage is divided into multiple blocks.
Webpage in the present embodiment can be specifically static Web page, i.e., the method described in the present embodiment is suitable for static Web page
Generation method, plan office of portion and the pattern planning of each static page first, such as static page be divided into multiple blocks,
And the position of each block of planning, a kind of achievable planing method are:By the higher part planning of renewal frequency in webpage
It is renewal frequency in webpage is relatively low or not newer part is as the current page for an independent block, it does not establish solely
Vertical block, as shown in Fig. 2, being divided to two approach to the planning of the page, one is Zone Plan, i.e., by renewal frequency in webpage compared with
High part is planned to an independent block, the other is page animation, i.e., renewal frequency is relatively low in webpage or does not update
Part made.Optionally, can include multiple blocks in a page, but cannot nested other areas again in block
Block includes specifically any content in block, and how to show the content by following step to realize.
Step S102, the display mode of each area content in the block is determined.
In the present embodiment, the content shown in each block can show there are two types of mode, and one kind is manual mode, one
Kind is automated manner, this unit is responsible for providing the block content of manual mode;The block content of automated manner by program automatically more
Newly, it need not manually be participated in after Zone Plan unit is provided with.If it is manual mode, need for each particular block it is manual
Selection needs contribution to be shown.
Step S103, area's content in the block is obtained according to the display mode, and be shown in the block.
Display mode if it is area's content in the block is manual mode, needs to manually select needs for each particular block
The contribution of display.If the display mode of area's content in the block is automated manner, do not participate in by hand, program will be according to
Satisfactory contribution in database is included automatically in the block by the condition set.Specifically, according to the display side
Formula obtains the content for meeting preset condition from database, for example, when the display mode of area's content in the block is automated manner,
Qualified content in database is shown by block assemblies, including defined column, contribution and external reference
Content.This unit is only responsible for each block of planning and is shown with what pattern.
Step S104, target webpage is generated according to the multiple block.
In the present embodiment, following several possible situations can be divided by generating target webpage according to the multiple block:
A kind of possible situation is;Independent page file is generated after the content of each block is integrated;
Alternatively possible situation is:The final complete page is generated after the block that current page is included is integrated.
For the embodiment of the present invention by dividing the content in a webpage by block, the content of each block is respectively only
It is vertical, when by having update in block, only the block is issued, the update without triggering other blocks in the page, to
Mitigate the pressure brought to publisher server and release process, substantially reduces the frequency of publication, improve the efficiency for issuing of webpage.
Fig. 3 is the webpage generating method flow chart that another embodiment of the present invention provides;This method is as follows:
Step S301, the webpage is divided into multiple blocks.
Step S301 is consistent with step S101, and details are not described herein again.
Step S302, the display mode of each area content in the block is determined.
Step S302 is consistent with step S102, and details are not described herein again.
Step S303, area's content in the block is updated, includes in the area by updated area's content in the block
In block.
In the present embodiment, area's content in the block can be updated, therefore, after being divided into multiple blocks to webpage,
It only needs to be updated area's content in the block, entire webpage need not be updated.
Step S304, target webpage is generated according to updated area's content in the block.
After area's content in the block is updated, by the updated block, without newer block and the current page
It is integrated into the final complete page i.e. target webpage.
The present embodiment generates target by changing area's content in the block, according to according to updated area's content in the block
Webpage so that need not update entire web page contents can update full page, improve the newer efficiency of webpage.
Fig. 4 is the structure chart of auto-building html files device provided in an embodiment of the present invention.Webpage life provided in an embodiment of the present invention
The process flow that the offer of webpage generating method embodiment can be provided at device, as shown in figure 4, auto-building html files device 40 includes:
Division module 41, determining module 42, acquisition module 43, generation module 44, wherein division module 41 is for dividing the webpage
At multiple blocks;Determining module 42 is used to determine the display mode of each area content in the block;Acquisition module 43 is used for according to institute
It states display mode and obtains area's content in the block, and be shown in the block;Generation module 44 is used for according to the multiple
Block generates target webpage.
For the embodiment of the present invention by dividing the content in a webpage by block, the content of each block is respectively only
It is vertical, when by having update in block, only the block is issued, the update without triggering other blocks in the page, to
Mitigate the pressure brought to publisher server and release process, substantially reduces the frequency of publication, improve the efficiency for issuing of webpage.
Fig. 5 is the structure chart for the auto-building html files device that another embodiment of the present invention provides.On the basis of the above embodiments,
Acquisition module 43 is specifically used for, according to the display mode, the content for meeting preset condition being obtained from database.
In addition, auto-building html files device 40 further includes:Update module 45, update module 45 are in the block interior for updating the area
Hold.Correspondingly, generation module 44 is specifically used for generating target webpage according to updated area's content in the block.
In addition, generation module 44 is specifically used for by each area content in the block integrate generating the target webpage.
Auto-building html files device provided in an embodiment of the present invention can be specifically used for executing the method implementation that above-mentioned Fig. 1 is provided
Example, details are not described herein again for concrete function.
The embodiment of the present invention is generated by changing area's content in the block according to according to updated area's content in the block
Target webpage so that need not update entire web page contents can update full page, improve the newer efficiency of webpage.
In conclusion the embodiment of the present invention is by being divided the content in a webpage by block, each block
Content is respectively independent, when by having update in block, only issues the block, without triggering other blocks in the page
Update substantially reduces the frequency of publication, improves the hair of webpage to mitigate the pressure brought to publisher server and release process
Cloth efficiency;.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over 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
It is that each unit physically exists alone, it can also be during two or more units be integrated in one 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 hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module
Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed
At the internal structure of device being divided into different function modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of webpage generating method, which is characterized in that including:
The webpage is divided into multiple blocks;
Determine the display mode of each area content in the block;
Area's content in the block is obtained according to the display mode, and is shown in the block;
Target webpage is generated according to the multiple block.
2. according to the method described in claim 1, it is characterized in that, described in the block according to the display mode acquisition area
Content, including:
According to the display mode, the content for meeting preset condition is obtained from database.
3. according to the method described in claim 2, it is characterized in that, further including:
Update area content in the block.
4. according to the method described in claim 3, it is characterized in that, described generate target webpage, packet according to the multiple block
It includes:
Target webpage is generated according to updated area's content in the block.
5. according to claim 1-4 any one of them methods, which is characterized in that described to generate target according to the multiple block
Webpage, including:
Each area content in the block integrate and generates the target webpage.
6. a kind of auto-building html files device, which is characterized in that including:
Division module, for the webpage to be divided into multiple blocks;
Determining module, the display mode for determining each area content in the block;
Acquisition module for obtaining area's content in the block according to the display mode, and is shown in the block;
Generation module, for generating target webpage according to the multiple block.
7. auto-building html files device according to claim 6, which is characterized in that the acquisition module is specifically used for according to
Display mode obtains the content for meeting preset condition from database.
8. auto-building html files device according to claim 7, which is characterized in that further include:
Update module, for updating area content in the block.
9. auto-building html files device according to claim 8, which is characterized in that the generation module is specifically used for according to update
Area content in the block afterwards generates target webpage.
10. according to claim 6-9 any one of them auto-building html files devices, which is characterized in that the generation module is specifically used
The target webpage is generated in integrate each area content in the block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308341.9A CN108804471A (en) | 2017-05-04 | 2017-05-04 | webpage generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308341.9A CN108804471A (en) | 2017-05-04 | 2017-05-04 | webpage generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804471A true CN108804471A (en) | 2018-11-13 |
Family
ID=64054598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710308341.9A Pending CN108804471A (en) | 2017-05-04 | 2017-05-04 | webpage generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804471A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334298A (en) * | 2019-05-21 | 2019-10-15 | 深圳壹账通智能科技有限公司 | Processing method, device, medium and the electronic equipment of page resource data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216857A (en) * | 2008-01-07 | 2008-07-09 | 张尧森 | Web page area clipping and merging method |
US20090281790A1 (en) * | 2003-02-21 | 2009-11-12 | Motionpoint Corporation | Dynamic language translation of web site content |
CN102043834A (en) * | 2010-11-25 | 2011-05-04 | 北京搜狗科技发展有限公司 | Method for realizing searching by utilizing client and search client |
CN104038524A (en) * | 2013-03-07 | 2014-09-10 | 北大方正集团有限公司 | Information processing method and information processing system |
CN105095445A (en) * | 2015-07-24 | 2015-11-25 | 北京奇虎科技有限公司 | Page generation method and system |
CN105808626A (en) * | 2014-12-31 | 2016-07-27 | 北大方正集团有限公司 | Page generation method and device |
-
2017
- 2017-05-04 CN CN201710308341.9A patent/CN108804471A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090281790A1 (en) * | 2003-02-21 | 2009-11-12 | Motionpoint Corporation | Dynamic language translation of web site content |
CN101216857A (en) * | 2008-01-07 | 2008-07-09 | 张尧森 | Web page area clipping and merging method |
CN102043834A (en) * | 2010-11-25 | 2011-05-04 | 北京搜狗科技发展有限公司 | Method for realizing searching by utilizing client and search client |
CN104038524A (en) * | 2013-03-07 | 2014-09-10 | 北大方正集团有限公司 | Information processing method and information processing system |
CN105808626A (en) * | 2014-12-31 | 2016-07-27 | 北大方正集团有限公司 | Page generation method and device |
CN105095445A (en) * | 2015-07-24 | 2015-11-25 | 北京奇虎科技有限公司 | Page generation method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334298A (en) * | 2019-05-21 | 2019-10-15 | 深圳壹账通智能科技有限公司 | Processing method, device, medium and the electronic equipment of page resource data |
WO2020233096A1 (en) * | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Page resource data processing method and apparatus, medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103229177B (en) | discrete element method | |
Mora-Melia et al. | Design of water distribution networks using a pseudo-genetic algorithm and sensitivity of genetic operators | |
CN103246578B (en) | Application software carries out the method for collapse processing and carries out the browser of collapse processing | |
CN109388396A (en) | Page generation method, device, computer equipment and storage medium | |
CN106293664A (en) | Code generating method and device | |
CN103186376A (en) | Method, device and equipment for establishing or updating software development environment | |
CN104572182A (en) | Configuration method of stream application, nodes and stream computing system | |
JP6742888B2 (en) | Crosslinked particle model generation device for molecular dynamics calculation, generation method and computer program | |
KR101703450B1 (en) | Structural topology optimization method using bigbang-bigcrunch algorithm | |
CN105701165B (en) | Browser model switching method and switching device | |
CN104573184A (en) | Construction method and construction device for high speed train product meta-model | |
CN104881310A (en) | Method and device for configuring embedded system | |
Menčík et al. | Latin hypercube sampling | |
Rogers et al. | Special issue on 3D printing: Opportunities and applications for supply chain management | |
CN108804471A (en) | webpage generating method and device | |
CN105282099B (en) | The generation method and device of firewall order | |
CN105760382A (en) | Method and device for importing excel data into database | |
CN103645935A (en) | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment | |
CN105511914A (en) | Application update method, device and system | |
CN109710653A (en) | A kind of test data source configuration method and device | |
CN104598554A (en) | Webpage page loading method and device | |
CN103164306B (en) | Testing logic generation method and testing logic generation device | |
Alagoz et al. | Optimally solving Markov decision processes with total expected discounted reward function: Linear programming revisited | |
CN102542084B (en) | Network status emulation method and equipment utilizing same | |
US10962958B2 (en) | Library of predefined shapes for additive manufacturing processes |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |