CN110516185A - Method and device for processing dynamic website - Google Patents
Method and device for processing dynamic website Download PDFInfo
- Publication number
- CN110516185A CN110516185A CN201910736145.0A CN201910736145A CN110516185A CN 110516185 A CN110516185 A CN 110516185A CN 201910736145 A CN201910736145 A CN 201910736145A CN 110516185 A CN110516185 A CN 110516185A
- Authority
- CN
- China
- Prior art keywords
- page
- dynamic
- resource
- data
- dynamic website
- 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
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000003068 static effect Effects 0.000 claims abstract description 69
- 230000004048 modification Effects 0.000 claims description 28
- 238000012986 modification Methods 0.000 claims description 28
- 238000003672 processing method Methods 0.000 claims description 16
- 230000000875 corresponding effect Effects 0.000 claims description 15
- 230000002596 correlated effect Effects 0.000 claims description 8
- 230000008676 import Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 52
- 230000008569 process Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 210000000056 organ Anatomy 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000036299 sexual function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
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 embodiment of the application discloses a method and a device for processing a dynamic website, wherein the method comprises the following steps: exporting data for realizing a dynamic function in the dynamic website resources to an embedded database according to the identification information of the dynamic website resources; calling out the page content of the page of the dynamic website resource according to the identification information of the dynamic website resource; according to a preset processing mode, carrying out staticizing processing on the page content of the page of the dynamic website resource to obtain a static page; and assembling the embedded database and the static page according to a preset assembling mode to obtain an offline project. According to the method and the device for deploying the dynamic website resources, the dynamic website resources are processed into the embedded database and the static page, the embedded database and the static page are assembled to obtain an offline project, the offline project is simpler to deploy, and the project deployment efficiency is improved.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of processing method and processing devices of dynamic website.
Background technique
Resource-type website refers to providing video resource, audio resource, article resource and the phase in various fields for user
Close the website of resource.As resource-type website continues to develop, the user group that resource-type website faces is also more and more huger.Face to face
When facing the user using the mechanism of Intranet such as government organs, privacy mechanism, it usually needs the dynamic resource type net of networking will be interconnected
(web) project of standing is developed or copied to again to redeploy under corresponding environment.In this process, it needs to open again
The project sent out or redeployed is very more, and deployment process is complex, and deployment efficiency is lower, so expend needed for causing when
Between and energy it is also more.
Summary of the invention
Based on above-mentioned the deficiencies in the prior art, present applicant proposes a kind of processing method and processing devices of dynamic website, realize
Offlineization processing has been carried out to dynamic website, has improved project deployment efficiency.
First aspect present invention discloses a kind of processing method of dynamic website, comprising:
According to the identification information of dynamic website resource, by the number for realizing dynamic function in the dynamic website resource
According to exporting into embedded data library;
According to the identification information of the dynamic website resource, the content of pages of the page of the dynamic website resource is recalled;
According to preset processing mode, static processing is carried out to the content of pages of the page of the dynamic website resource,
Obtain static page;
According to preset assembling mode, the embedded data library and the static page are assembled, changed offline
Project.
Optionally, in the processing method of above-mentioned dynamic website, it is described by the dynamic website resource for realizing
The data of dynamic function are exported into embedded data library, comprising:
Export the data for realizing dynamic function in the dynamic website resource;
Offline directory is revised as in file resource path in the derived data for realizing dynamic function;
The modified data for realizing dynamic function are imported in the embedded data library.
Optionally, described according to preset processing mode in the processing method of above-mentioned dynamic website, to the Dynamic Networks
The content of pages of the page for resource of standing carries out static processing, obtains static page, comprising:
To the different types of file in the content of pages of the page of the dynamic website resource, corresponding modification is carried out
Processing;
The content of pages of the page of the modified dynamic website resource is downloaded to offline directory, obtains the static state
The page.
Optionally, in the processing method of above-mentioned dynamic website, the page of the page to the dynamic website resource
Different types of file in content carries out corresponding modification processing, comprising:
The page path of cascading style sheets CSS formatted file and JS formatted file in the content of pages is revised as institute
State offline directory;
The coded format of picture file in the content of pages is revised as predetermined format;
The page path of the correlated resources file of the page of the dynamic website resource is revised as the offline directory.
Optionally, in the processing method of above-mentioned dynamic website, the data for realizing dynamic function include: search
Entry data, user login information data and label data.
Second aspect of the present invention discloses a kind of processing unit of dynamic website, comprising:
Lead-out unit will be used for reality in the dynamic website resource for the identification information according to dynamic website resource
The data of existing dynamic function are exported into embedded data library;
Unit is recalled, for the identification information according to the dynamic website resource, recalls the page of the dynamic website resource
The content of pages in face;
Processing unit, for according to preset processing mode, to the content of pages of the page of the dynamic website resource into
Row static processing, obtains static page;
Assembling unit, for according to preset assembling mode, the embedded data library and the static page to be carried out group
Dress, obtains offlineization project.
Optionally, in the processing unit of above-mentioned dynamic website, the lead-out unit is executed the dynamic website resource
In data for realizing dynamic function when exporting to embedded data library, comprising:
Subelement is exported, for exporting the data for realizing dynamic function in the dynamic website resource;
First modification unit, for repairing the file resource path in the derived data for realizing dynamic function
It is changed to offline directory;
Import unit, for the modified data for realizing dynamic function to be imported the embedded data library
In.
Optionally, in the processing unit of above-mentioned dynamic website, the processing unit, comprising:
Second modification unit, for the different types of text in the content of pages of the page to the dynamic website resource
Part carries out corresponding modification processing;
Download unit, for the content of pages of the page of the modified dynamic website resource to be downloaded to offline mesh
Record, obtains the static page.
Optionally, in the processing unit of above-mentioned dynamic website, the second modification unit, comprising:
First modification subelement, for by the page road of CSS formatted file and JS formatted file in the content of pages
Diameter is revised as the offline directory;
Second modification subelement, for the coded format of the picture file in the content of pages to be revised as pre- fix
Formula;
Third modifies subelement, for repairing the page path of the correlated resources file of the page of the dynamic website resource
It is changed to the offline directory.
Optionally, in the processing unit of above-mentioned dynamic website, the data for realizing dynamic function include: search
Entry data, user login information data and label data.
It can be seen from the above technical scheme that in the processing method of dynamic website provided by the present application, according to Dynamic Networks
The identification information for resource of standing exports the data for realizing dynamic function in dynamic website resource into embedded data library.
According to the identification information of dynamic website resource, the content of pages of user demand resource is recalled.It is right according still further to preset processing mode
The content of pages of dynamic website resource carries out static processing, obtains static page.According to preset assembling mode, by embedded number
It is assembled according to library and static page, obtains offlineization project.Since the embodiment of the present application will be for realizing the number of dynamic function
According to exporting into embedded data library, meets in dynamic website and the demand of dynamic functions such as search for, log in, and user demand is provided
The page in source realizes further offlineization after being processed into static page, then embedded data library and static page are assembled
Obtain the project changed offline, due to change offline project deployment get up it is relatively simple, and then improve project deployment efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the processing method of dynamic website disclosed by the embodiments of the present invention;
Fig. 2 be it is disclosed by the embodiments of the present invention it is a kind of will in dynamic website resource for realizing dynamic function data export
To the flow diagram of the method in embedded data library;
Fig. 3 is a kind of flow diagram for the method for obtaining static page disclosed by the embodiments of the present invention;
Fig. 4 is what the content of pages of the page in a kind of pair of dynamic website resource disclosed by the embodiments of the present invention was modified
The flow diagram of method;
Fig. 5 is a kind of structural schematic diagram of the processing unit of dynamic website disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Refering to fig. 1, the embodiment of the present application discloses a kind of processing method of dynamic website, specifically includes the following steps:
S101, according to the identification information of dynamic website resource, by dynamic website resource for realizing dynamic function
Data are exported into embedded data library.
Wherein, dynamic website refers to that web site contents can be according to the website of different situations dynamic change.Dynamic website is by more
A dynamic web page is constituted.Dynamic web page refers to a kind of web programming technology opposite with static Web page, if dynamic web page can be according to
Trepang number returns to different data, can interact with back-end data.Dynamic web page is in addition to using hypertext markup language
Outside (Hyper Text Markup Language, HTML) format, there are also use other programming languages.And static Web page is then
Only use the webpage of html format.Static Web page do not have background data base, without program and can not interact.Dynamic website resource refers to
Be various webpages with resource in dynamic website.Resource refers to music sources, video resource, article resource etc..
Specifically, first the dynamic website resource that user buys can be listed on a resource inventory, there are various use on inventory
The identification information of dynamic website resource needed for family.Wherein, identification information refers specifically to the address information of dynamic website resource
Or uniform resource locator (Uniform Resource Locator, URL).According to identification information, can find need into
The dynamic website resource of row offlineization processing.Wherein, offlineization processing is carried out to dynamic website to refer to handling dynamic website
The offline website that can be run at network is not needed.Due to being to be directed to the project disposed using the user of Intranet in the application,
Therefore offlineization processing first can be carried out to dynamic website resource needed for user, is deployed to Intranet again after it is switched to offline items
Under environment, that is, it can reduce deployment difficulty.It, will after finding the dynamic website resource for needing to carry out offlineization processing according to identification information
The data for realizing dynamic function in dynamic website resource are exported into embedded data library.
Specifically, processor can be exported by data by the dynamic website resource of required processing when executing step S101
In for realizing dynamic function data export, be then introduced into embedded data library.Wherein, data export processor can be with
It regards a kind of resolver as, the data in dynamic website resource for realizing dynamic function can be parsed.Wherein, dynamic function refers to
Be search function, the user's login function that the interaction sexual function of different data, such as website can be returned according to several parameters
Deng.Optionally, in one specific embodiment of the application, the data for realizing dynamic function include: search entry data, user
Log-on message data and label data.The back-end data of dynamic website resource is present in for realizing the data of dynamic function
In library, these can return to some data according to the data that user inputs from background data base.It should be noted that belonging to realization
The data of dynamic function have very much, including but not limited to the content of the embodiment of the present application proposition.
Embedded data library is referred to as embedded database, and embedded data library has been embedded in program process
Database, the database for belonging to embedded data library has very a variety of, can specifically select suitable embedded data according to actual needs
Library.For example, H2 database can be selected, H2 database can be embedded into the application of in website and website and bind together, and become website
A part of application eliminates expense relevant to client-server configuration.
Optionally, referring to Fig.2, in one specific embodiment of the application, a kind of mode of step S101 is executed, comprising:
The data for realizing dynamic function in S201, export dynamic website resource.
Specifically, data export processor can be according to the URL information of dynamic resource website, to dynamic when executing step S201
The back-end data of state site resource is parsed.It is present in dynamic website resource back-end data for realizing the data of dynamic function
In corresponding field in library, it can be parsed by data export processor and be used in the background data base of dynamic website resource
Realize the field where the data of dynamic function.For example, exporting processor by data parses the search in background data base
Engine (Elastic Search, ES) field.
It, will be for realizing after data export processor parses the field where the data for realizing dynamic function
The data of dynamic function export.Data after export can be stored first to local either other positions, can also be without storage, directly
It connects and step S202 is executed to it.
S202, offline directory is revised as in the file resource path in the derived data for realizing dynamic function.
Specifically, a variety of file resources are contained in the derived data for realizing dynamic function, such as picture file,
The file etc. of Portable Document (Portable Document Forma, PDF) format.By the file resource path of these files
It is revised as offline directory, realizes that offlineization is handled.It should be noted that step S202 can also be in the number realization dynamic function
According to being directed into embedded data library and then processing of modifying.
S203, the modified data for realizing dynamic function are imported in embedded data library.
A table is created in embedded database, the modified data for realizing dynamic function of step S202 are imported
Into the table in embedded data library.The data in embedded data library are directed into for realizing the dynamic function of search etc, then may be used
The static page that corresponding step S103 is obtained is recalled according to the search entry retrieved in embedded database.
By execution step S101, will export for realizing the data of dynamic function into embedded data library, it can be offline
In the case where change, the dynamic functions such as satisfaction is retrieved, logged in.
S102, according to the identification information of dynamic website resource, recall the content of pages of the page of dynamic website resource.
According to the identification information of dynamic website resource, the dynamic website resource for needing to carry out offlineization processing can be found, into
And the content of pages for setting out the page of state site resource can be called.Wherein, the page of dynamic website resource includes details page, plays
The pages such as page, lobby page.Content of pages refers specifically to resource file, Page Template data of the page in the page etc..Wherein, it recalls
The tool of the content of pages of the page of dynamic website resource can be a kind of page static processor.Page static processor
The position where resource can be learnt by the identification information of dynamic website resource, and then obtains the content of pages of the page of resource.
It should be noted that executing the sequencing of step S102 and execution step S101 does not influence the embodiment of the present application
It realizes.Step S101 and step S102 also may be performed simultaneously.
S103, according to preset processing mode, static processing is carried out to the content of pages of the page of dynamic website resource,
Obtain static page.
Specifically, when executing step S103, it can be by page static processor to the page of the page of dynamic website resource
Face content is parsed, and the data of different-format obtained after parsing are handled according to preset processing mode, are obtained quiet
The state page.Wherein, page static processor is a kind of resolver.Static page refer to needing not move through server compiling,
Only use the page of html format.Static Web page do not have background data base, without program and can not interact.It will by step S103
After the page of dynamic website resource is modified as static page, realizes and further offlineization of dynamic website is handled.
Optionally, refering to Fig. 3, in one specific embodiment of the application, a kind of embodiment of step S103, packet are executed
It includes:
S301, to the different types of file in the content of pages of the page of dynamic website resource, carry out corresponding repairs
Changed handling.
Wherein, picture file, cascading style sheets CSS format text are contained in the content of pages of the page of dynamic website resource
A variety of different types of files such as part, PDF format file, JS formatted file.By page static processor to shown in fig. 1
The content of pages that step S102 is obtained is parsed, and the file of a variety of different-formats is parsed.In the content of pages of dynamic page
File and static page in file have a little difference, need the page by page static processor to dynamic website resource
Different types of file in the content of pages in face carries out corresponding modification processing, to realize the page of dynamic website resource
Face becomes static page.
Optionally, refering to Fig. 4, in one specific embodiment of the application, the mode of step S301 is executed, comprising:
S401, the page path of cascading style sheets CSS formatted file and JS formatted file in content of pages is revised as
Offline directory.
CSS formatted file and JS formatted file are all the files that can be realized some dynamic functions in dynamic page.It is logical
Page static processor is crossed to modify the page path of CSS file and JS file in content of pages to offline directory, it can
By in content of pages CSS file and JS file become the file in static page.It should be noted that being also possible to first to
CSS formatted file and JS formatted file download, and then modifying page path again is offline directory.
S402, the coded format of the picture file in content of pages is revised as predetermined format.
Wherein, predetermined format refers to the coded format of the picture file suitable for static page.For example, by the page
The coded format of picture file in appearance is modified as base64 code.It is downloaded it should be noted that being also possible to picture file,
Then the coded format of picture file is modified again.
S403, the page path of the correlated resources file of the page of dynamic website resource is revised as offline directory.
Wherein, correlated resources file refers to audio resource file, video resource file, article resource file etc..Tool
Body, correlated resources file is the file of the formats such as PDF, MP4 in the page.Page static processor by the page PDF,
The formatted files such as MP4 are copied from resources bank to be come, and page path is then revised as offline directory.Optionally, by PDF, MP4
Equal formatted files copy that the safety to guarantee resource can also be encrypted from resources bank.
It should be noted that executing the sequencing of step S401, step S402 and step S403 does not influence the application
The realization of embodiment can also be performed simultaneously step S401, step S402 and step S403.It should also be noted that, to the page
There are also demands that are very much, such as being directed to user in practical application for the amending method of files in different types in content, by page
Some advertisement figures or some non-essential files in the content of face carry out delete processing etc., to the amending method of content of pages
The including but not limited to content of the embodiment of the present application proposition.
S302, the content of pages of the page of modified dynamic website resource is downloaded to offline directory, obtains static page
Face.
By the content of pages of the page of the obtained dynamic website resource having modified of step S301, it is downloaded to offline directory.
The page in offline directory is static page at this time, realizes further offlineization of dynamic website resource.
S104, according to preset assembling mode, embedded data library and static page are assembled, offlineization item is obtained
Mesh.
Wherein, offlineization project is the website changed offline, and offlineization website, which does not need network, to be run.Preset assembling
Mode can be set according to user's specific requirements, such as can be wanted according to the requirement of some content of pages of user, type-setting mode
The default assembling mode such as seek.It, can be by being searched in embedded database after embedded data library and static page are assembled
Rope, and call out corresponding static page.After dynamic website resource is become offlineization project due to the application, it is no longer necessary to net
Network can be run, therefore be deployed to the process in the environment using Intranet and can be simplified.It is straight in compared to the prior art
Connect the mode dynamic resource type website item for interconnecting networking being deployed in the environment using Intranet, it is used herein offline
The mode that the project of change is disposed is more efficient, and spent time and efforts is also less.
In the processing method of dynamic website provided by the present application, according to the identification information of dynamic website resource, by Dynamic Networks
The data for realizing dynamic function in resource of standing are exported into embedded data library.Believed according to the mark of dynamic website resource
Breath, recalls the content of pages of user demand resource.According still further to preset processing mode, to the content of pages of dynamic website resource into
Row static processing, obtains static page.According to preset assembling mode, embedded data library and static page are assembled,
Obtain offlineization project.It is full since the embodiment of the present application will export for realizing the data of dynamic function into embedded data library
Search in foot dynamic website, the demand for the dynamic functions such as logging in, and the page of user demand resource is processed into static page
Further offlineization is realized afterwards, then embedded data library and static page is subjected to assembling, the project changed offline can be obtained,
Due to change offline project deployment get up it is relatively simple, and then improve project deployment efficiency.
Refering to Fig. 5, the processing method based on the dynamic website that above-mentioned the embodiment of the present application proposes, the embodiment of the present application is corresponding
Disclose a kind of processing unit of dynamic website, comprising: lead-out unit 501 recalls unit 502, processing unit 503 and assembling
Unit 504.
Lead-out unit 501, for the identification information according to dynamic website resource, by dynamic website resource for realizing
The data of dynamic function are exported into embedded data library.
Optionally, in one specific embodiment of the application, the data for realizing dynamic function include: searching bar mesh number
According to user login information data and label data.
Optionally, in one specific embodiment of the application, the execution of lead-out unit 501 will be used for reality in dynamic website resource
When the data of existing dynamic function are exported to embedded data library, comprising: export subelement, the first modification unit and import unit.
Subelement is exported, for exporting the data for realizing dynamic function in dynamic website resource.
First modification unit, for the file resource path in the derived data for realizing dynamic function to be revised as
Offline directory.
Import unit, for importing the modified data for realizing dynamic function in embedded data library.
Unit 502 is recalled, for the identification information according to dynamic website resource, recalls the page of the page of dynamic website resource
Face content.
Processing unit 503, for being carried out to the content of pages of the page of dynamic website resource according to preset processing mode
Static processing, obtains static page.
Optionally, in one specific embodiment of the application, processing unit 503 includes: the second modification unit and download unit.
Second modification unit, for the different types of file in the content of pages of the page to dynamic website resource, into
The corresponding modification processing of row.
Optionally, in one specific embodiment of the application, the second modification unit, comprising: the first modification subelement, second are repaired
Change subelement and third modification subelement.
First modification subelement, for repairing the page path of CSS formatted file and JS formatted file in content of pages
It is changed to offline directory.
Second modification subelement, for the coded format of the picture file in content of pages to be revised as predetermined format.
Third modifies subelement, for the page path of the correlated resources file of the page of dynamic website resource to be revised as
Offline directory.
Download unit is obtained for the content of pages of the page of modified dynamic website resource to be downloaded to offline directory
To static page.
Assembling unit 504, for embedded data library and static page being assembled, obtained according to preset assembling mode
To offlineization project.
It the specific principle of each unit in the processing unit of dynamic website disclosed in above-mentioned the embodiment of the present application and holds
Row process, it is identical as the processing method of dynamic website disclosed in above-mentioned the embodiment of the present application, reference can be made to above-mentioned the embodiment of the present application
Corresponding part, is not discussed here in the processing method of disclosed dynamic website.
In the processing unit of dynamic website provided by the present application, lead-out unit 501 is believed according to the mark of dynamic website resource
Breath, the data for realizing dynamic function in dynamic website resource are exported into embedded data library.Recall 502 basis of unit
The identification information of dynamic website resource recalls the content of pages of user demand resource.Processing unit 503 is according still further to preset processing
Mode carries out static processing to the content of pages of dynamic website resource, obtains static page.Assembling unit 504 is according to default
Assembling mode, embedded data library and static page are assembled, offlineization project is obtained.Since the embodiment of the present application passes through
Lead-out unit 501 will export for realizing the data of dynamic function into embedded data library, meets in dynamic website and searches for, steps on
Record etc. dynamic functions demand, and through the processing unit 503 the page of user demand resource is processed into static page after realize
Further offlineization, then embedded data library and static page are subjected to assembling by assembling unit 504, offlineization can be obtained
Project, due to change offline project deployment get up it is relatively simple, and then improve project deployment efficiency.
Professional technician can be realized or using the present invention.Profession of the various modifications to these embodiments to this field
It will be apparent for technical staff, the general principles defined herein can not depart from spirit or model of the invention
In the case where enclosing, realize in other embodiments.Therefore, the present invention will not be limited to the embodiments shown herein,
And it is to fit to the widest scope consistent with the principles and novel features disclosed herein.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Claims (10)
1. a kind of processing method of dynamic website characterized by comprising
According to the identification information of dynamic website resource, by being led for realizing the data of dynamic function in the dynamic website resource
Out into embedded data library;
According to the identification information of the dynamic website resource, the content of pages of the page of the dynamic website resource is recalled;
According to preset processing mode, static processing is carried out to the content of pages of the page of the dynamic website resource, is obtained
Static page;
According to preset assembling mode, the embedded data library and the static page are assembled, offlineization project is obtained.
2. the method according to claim 1, wherein it is described by the dynamic website resource for realizing dynamic
The data of state function are exported into embedded data library, comprising:
Export the data for realizing dynamic function in the dynamic website resource;
Offline directory is revised as in file resource path in the derived data for realizing dynamic function;
The modified data for realizing dynamic function are imported in the embedded data library.
3. the method according to claim 1, wherein described according to preset processing mode, to the Dynamic Networks
The content of pages of the page for resource of standing carries out static processing, obtains static page, comprising:
To the different types of file in the content of pages of the page of the dynamic website resource, carry out at corresponding modification
Reason;
The content of pages of the page of the modified dynamic website resource is downloaded to offline directory, obtains the static page
Face.
4. according to the method described in claim 3, it is characterized in that, in the page of the page to the dynamic website resource
Different types of file in appearance carries out corresponding modification processing, comprising:
By the page path of cascading style sheets CSS formatted file and JS formatted file in the content of pages be revised as it is described from
Line catalogue;
The coded format of picture file in the content of pages is revised as predetermined format;
The page path of the correlated resources file of the page of the dynamic website resource is revised as the offline directory.
5. the method according to claim 1, wherein the data for realizing dynamic function include: search
Entry data, user login information data and label data.
6. a kind of processing unit of dynamic website characterized by comprising
Lead-out unit, for the identification information according to dynamic website resource, by the dynamic website resource for realizing dynamic
The data of state function are exported into embedded data library;
Unit is recalled, for the identification information according to the dynamic website resource, recalls the page of the dynamic website resource
Content of pages;
Processing unit, for being carried out to the content of pages of the page of the dynamic website resource quiet according to preset processing mode
Stateization processing, obtains static page;
Assembling unit, for the embedded data library and the static page being assembled, obtained according to preset assembling mode
To offlineization project.
7. device according to claim 6, which is characterized in that the lead-out unit execution will be in the dynamic website resource
Data for realizing dynamic function when exporting to embedded data library, comprising:
Subelement is exported, for exporting the data for realizing dynamic function in the dynamic website resource;
First modification unit, for the file resource path in the derived data for realizing dynamic function to be revised as
Offline directory;
Import unit, for importing the modified data for realizing dynamic function in the embedded data library.
8. device according to claim 6, which is characterized in that the processing unit, comprising:
Second modification unit, for the different types of file in the content of pages of the page to the dynamic website resource, into
The corresponding modification processing of row;
Download unit is obtained for the content of pages of the page of the modified dynamic website resource to be downloaded to offline directory
To the static page.
9. device according to claim 8, which is characterized in that the second modification unit, comprising:
First modification subelement, for repairing the page path of CSS formatted file and JS formatted file in the content of pages
It is changed to the offline directory;
Second modification subelement, for the coded format of the picture file in the content of pages to be revised as predetermined format;
Third modifies subelement, for the page path of the correlated resources file of the page of the dynamic website resource to be revised as
The offline directory.
10. device according to claim 6, which is characterized in that the data for realizing dynamic function include: search
Entry data, user login information data and label data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910736145.0A CN110516185B (en) | 2019-08-09 | 2019-08-09 | Method and device for processing dynamic website |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910736145.0A CN110516185B (en) | 2019-08-09 | 2019-08-09 | Method and device for processing dynamic website |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110516185A true CN110516185A (en) | 2019-11-29 |
CN110516185B CN110516185B (en) | 2022-04-22 |
Family
ID=68624710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910736145.0A Active CN110516185B (en) | 2019-08-09 | 2019-08-09 | Method and device for processing dynamic website |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110516185B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113806669A (en) * | 2021-09-27 | 2021-12-17 | 深圳本地宝新媒体技术有限公司 | Website management background generation method and device and server |
CN117910438A (en) * | 2024-03-13 | 2024-04-19 | 江苏中威科技软件系统有限公司 | Dynamic format file DLF generation device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183395A (en) * | 2007-12-25 | 2008-05-21 | 北京中企开源信息技术有限公司 | Method and system for realizing staticize of dynamic page |
CN101789012A (en) * | 2010-02-03 | 2010-07-28 | 南京联创科技集团股份有限公司 | J2EE (Java 2 Platform Enterprise Edition) based solution for staticizing WEB dynamic page |
US20100332588A1 (en) * | 2009-06-30 | 2010-12-30 | The Go Daddy Group, Inc. | Rewritten url static and dynamic content delivery |
CN103034496A (en) * | 2012-12-13 | 2013-04-10 | 海南电网公司 | Locally-static portal generation method based on template |
CN104298723A (en) * | 2014-09-24 | 2015-01-21 | 蓝盾信息安全技术有限公司 | Method for achieving page staticizing in website |
CN104317874A (en) * | 2014-10-20 | 2015-01-28 | 北京锐安科技有限公司 | Device and method for staticizing dynamic webpage |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
CN107229633A (en) * | 2016-03-24 | 2017-10-03 | 北京神州泰岳软件股份有限公司 | Static page generation method, Web access method and device |
CN108334562A (en) * | 2018-01-09 | 2018-07-27 | 阿里巴巴集团控股有限公司 | A kind of page display method and device |
CN109815432A (en) * | 2018-12-26 | 2019-05-28 | 北京博鳌纵横网络科技有限公司 | A kind of method of the method and page static of whole station static |
-
2019
- 2019-08-09 CN CN201910736145.0A patent/CN110516185B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183395A (en) * | 2007-12-25 | 2008-05-21 | 北京中企开源信息技术有限公司 | Method and system for realizing staticize of dynamic page |
US20100332588A1 (en) * | 2009-06-30 | 2010-12-30 | The Go Daddy Group, Inc. | Rewritten url static and dynamic content delivery |
CN101789012A (en) * | 2010-02-03 | 2010-07-28 | 南京联创科技集团股份有限公司 | J2EE (Java 2 Platform Enterprise Edition) based solution for staticizing WEB dynamic page |
CN103034496A (en) * | 2012-12-13 | 2013-04-10 | 海南电网公司 | Locally-static portal generation method based on template |
CN104298723A (en) * | 2014-09-24 | 2015-01-21 | 蓝盾信息安全技术有限公司 | Method for achieving page staticizing in website |
CN104317874A (en) * | 2014-10-20 | 2015-01-28 | 北京锐安科技有限公司 | Device and method for staticizing dynamic webpage |
CN107229633A (en) * | 2016-03-24 | 2017-10-03 | 北京神州泰岳软件股份有限公司 | Static page generation method, Web access method and device |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
CN108334562A (en) * | 2018-01-09 | 2018-07-27 | 阿里巴巴集团控股有限公司 | A kind of page display method and device |
CN109815432A (en) * | 2018-12-26 | 2019-05-28 | 北京博鳌纵横网络科技有限公司 | A kind of method of the method and page static of whole station static |
Non-Patent Citations (1)
Title |
---|
刘全飞等: "站群系统动态化页面静态化的实现", 《电脑与信息技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113806669A (en) * | 2021-09-27 | 2021-12-17 | 深圳本地宝新媒体技术有限公司 | Website management background generation method and device and server |
CN117910438A (en) * | 2024-03-13 | 2024-04-19 | 江苏中威科技软件系统有限公司 | Dynamic format file DLF generation device |
Also Published As
Publication number | Publication date |
---|---|
CN110516185B (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Kahan et al. | Annotea: an open RDF infrastructure for shared Web annotations | |
Powell et al. | Web site engineering: beyond Web page design | |
CN101127655B (en) | Method and system for integrating existing www systems | |
CN1811702B (en) | System and method for developing portal applications and automatically deploying them into a portal server application | |
US7860815B1 (en) | Computer knowledge representation format, system, methods, and applications | |
CN101515300B (en) | Method and system for grabbing Ajax webpage content | |
CN101288075B (en) | Simultaneously spawning multiple searches across multiple providers | |
US20030115548A1 (en) | Generating class library to represent messages described in a structured language schema | |
CN109508191A (en) | A kind of code generating method and system | |
US20020059345A1 (en) | Method for generating transform rules for web-based markup languages | |
US20110225482A1 (en) | Managing and generating citations in scholarly work | |
WO2005029364A1 (en) | System and method for managing dynamic content assembly | |
CN102200996B (en) | Dynamic report is resolved and indexes | |
Reif et al. | WEESA: Web engineering for semantic Web applications | |
CN101971172A (en) | Mobile sitemaps | |
TW201142628A (en) | Method and system for compiling a unique sample code for specific web content | |
CN100458782C (en) | Display and installation of portlets on a client platform | |
CN103577165A (en) | Form generation method and form generator | |
CN110516185A (en) | Method and device for processing dynamic website | |
Penberthy | Beginning ASP. NET for Visual Studio 2015 | |
John et al. | A framework for the description, discovery and composition of restful semantic web services | |
WO2014049308A1 (en) | Documentation parser | |
Houssos et al. | Enhanced OAI-PMH services for metadata sharing in heterogeneous environments | |
Gaylord et al. | Professional Asp. net 4.5 in C# and VB | |
Tanaka et al. | Meme media for clipping and combining web resources |
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 |