CN107330087A - Pagefile generation method and device - Google Patents
Pagefile generation method and device Download PDFInfo
- Publication number
- CN107330087A CN107330087A CN201710536594.1A CN201710536594A CN107330087A CN 107330087 A CN107330087 A CN 107330087A CN 201710536594 A CN201710536594 A CN 201710536594A CN 107330087 A CN107330087 A CN 107330087A
- Authority
- CN
- China
- Prior art keywords
- pagefile
- page
- minimum version
- numbering
- target
- 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
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/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses pagefile generation method and device.One embodiment of this method includes:The pagefile acquisition request that client is sent is received, the pagefile, which obtains request, includes the start context for having installed page presentation application of the mark of the corresponding page of pagefile, the type of the client and the client;According to the mark and the type, target pages file and target minimum version numbering are determined from pagefile and the minimum version numbering prestored, wherein, minimum version numbering is the numbering of the minimum version of the page presentation application of the corresponding primary page of displayed page file, and the minimum version numbering for the page presentation application that different types of client is installed is different;The comparison numbered based on the start context that page presentation application has been installed to this with the target minimum version, generation is matched and pagefile corresponding with the target pages file with comparative result.This embodiment avoids incompatible version cause the problem of can not showing.
Description
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to pagefile generation
Method and apparatus.
Background technology
With being skyrocketed through for Internet technology, various applications emerge in an endless stream, such as application can be being capable of displayed page
Application.In order to introduce more New functions, it is necessary to constantly update the version of the application.But, also can while more redaction
Bring the page can not compatible multiple versions application the problem of.If the application of early version can not support the New function of the page,
In the case where not doing compatibility processing, then the page can not be shown.And it is also possible to causing the collapse of application, have a strong impact on
Use of the user to application.
The content of the invention
The purpose of the application is to propose a kind of improved pagefile generation method and device, to solve background above skill
The technical problem that art part is mentioned.
In a first aspect, the embodiment of the present application provides a kind of pagefile generation method, this method includes:Receive client
The pagefile of transmission obtains request, and pagefile, which obtains request, includes the mark of the corresponding page of pagefile, client
The start context for having installed page presentation application of type and client;According to mark and type, from the pagefile that prestores and
Target pages file and target minimum version numbering are determined in minimum version numbering, wherein, minimum version numbering is displayed page
The numbering of the minimum version of the page presentation application of the corresponding primary page of file, the page that different types of client is installed
The minimum version numbering of displaying application is different;Compiled based on the start context to having installed page presentation application with target minimum version
Number comparison, generation match with comparative result and pagefile corresponding with target pages file.
In certain embodiments, numbered based on the start context to having installed page presentation application with target minimum version
Compare, generation matches and pagefile corresponding with target pages file with comparative result, including:In response to determining to have installed
The start context of page presentation application is numbered more than or equal to target minimum version, the corresponding primary page of generation target pages file
Face file;Or numbered in response to the start context for determining to have installed page presentation application less than target minimum version, generate target
The corresponding HTML document of pagefile.
In certain embodiments, the pagefile and start context prestored is pre-stored in buffer area;And according to mark
And type, determine that target pages file and target minimum version number it from pagefile and the minimum version numbering prestored
Before, this method also includes:In response to determining that target pages file and target version are not present in buffer area numbers, then by page object
Face file, and show the minimum version numbering deposit buffer area of the page presentation application of each type of target pages file
In.
In certain embodiments, this method also includes:In response to receiving page modification information, the page in buffer area is updated
Face file, and update the minimum version numbering for the page presentation application for showing the updated corresponding primary page of pagefile.
In certain embodiments, pagefile includes the text of at least one page area of the corresponding page of pagefile
Part;And according to mark and type, target pages file and mesh are determined from pagefile and the minimum version numbering prestored
Mark before minimum version numbering, this method also includes:For each page area, according to the file of the page area, it is determined that
The start context of the minimum version of the page presentation application of the page area is shown, at least one start context is obtained;Choose extremely
Maximum start context in a few start context, and maximum start context is defined as minimum version numbering.
In certain embodiments, according to mark and type, mesh is determined from pagefile and the minimum version numbering prestored
Pagefile and target minimum version numbering are marked, including:From the multiple pagefiles prestored, the page indicated by mark is searched
File, and the pagefile found is defined as target pages file;From the corresponding primary page of displaying target pages file
, in the minimum version numbering of the page presentation of the client for being installed on each type application, pagefile acquisition will be installed on
The minimum version numbering of the page presentation application of the client of the included type of request is defined as target minimum version numbering.
Second aspect, this application provides a kind of pagefile generating means, the device includes:Receiving unit, configuration is used
In receiving the pagefile acquisition request that client is sent, pagefile, which obtains request, includes the mark of the corresponding page of pagefile
The start context for having installed page presentation application of knowledge, the type of client and client;Determining unit, is configured to according to mark
Know and type, target pages file and target minimum version numbering determined from pagefile and the minimum version numbering prestored,
Wherein, minimum version numbering is the numbering of the minimum version of the page presentation application of the corresponding primary page of displayed page file,
The minimum version numbering for the page presentation application that different types of client is installed is different;Generation unit, is configured to be based on
The comparison numbered to start context and the target minimum version of having installed page presentation application, generation match with comparative result and
Pagefile corresponding with target pages file.
In certain embodiments, generation unit, including:First generation module, in response to determining that having installed page presentation answers
Start context is numbered more than or equal to target minimum version, the corresponding primary pagefile of generation target pages file;Or
Second generation module, is numbered, generation in response to the start context for determining to have installed page presentation application less than target minimum version
The corresponding HTML document of target pages file.
In certain embodiments, the pagefile and start context prestored is pre-stored in buffer area;And the device is also wrapped
Include:Memory cell, is configured in response to determining that target pages file and target version are not present in buffer area numbers, then by mesh
Pagefile is marked, and shows the minimum version numbering deposit caching of the page presentation application of each type of target pages file
Qu Zhong.
In certain embodiments, the device also includes:Updating block, is configured in response to receiving page modification letter
Breath, updates the pagefile in buffer area, and update the page presentation for showing the updated corresponding primary page of pagefile
The minimum version numbering of application.
In certain embodiments, pagefile includes the text of at least one page area of the corresponding page of pagefile
Part;And the device also includes:Version unit is determined, is configured to for each page area, according to the page area
File, it is determined that showing the start context of the minimum version of the page presentation application of the page area, obtains at least one version volume
Number;Unit is chosen, is configured to choose the maximum start context at least one start context, and by maximum start context
It is defined as minimum version numbering.
Pagefile generation method and device that the embodiment of the present application is provided, by receiving the pagefile that client is sent
Request is obtained, pagefile, which obtains request, includes the mark of the corresponding page of pagefile, the type of client and client
The start context of page presentation application has been installed.Afterwards according to mark and type, compiled from the pagefile and minimum version prestored
Target pages file and target minimum version numbering are determined in number, wherein, minimum version numbering is that displayed page file is corresponding
The numbering of the minimum version of the page presentation application of the primary page, the page presentation application that different types of client is installed
Minimum version numbering is different;It is finally based on the start context to having installed page presentation application and the ratio of target minimum version numbering
Compared with generation matches and pagefile corresponding with target pages file with comparative result, so as to avoid pagefile correspondence
The incompatible version applied of the page and page presentation cause the problem of can not showing.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the pagefile generation method according to the application;
Fig. 3 is the schematic diagram of an application scenarios of the pagefile generation method according to the application;
Fig. 4 is the flow chart of another embodiment of the pagefile generation method according to the application;
Fig. 5 is the structural representation of one embodiment of the pagefile generating means according to the application;
Fig. 6 is adapted for the structural representation of the computer system of the server for realizing the embodiment of the present application.
Embodiment
The application 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 related invention, rather than the restriction to the invention.It also should be noted that, in order to
Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 show can using the application pagefile generation method or the embodiment of pagefile generating means
Exemplary system architecture 100.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105.
Medium of the network 104 to provide communication link between terminal device 101,102,103 and server 105.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications can be installed, such as web browser should on terminal device 101,102,103
Applied with, Document Editing, the application of shopping class, searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 101,102,103 can be with display screen and support the various electronic equipments of page browsing, bag
Include but be not limited to smart mobile phone, tablet personal computer, E-book reader, MP3 player (Moving Picture Experts
Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) it is player, on knee portable
Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103
Webpage provides the backstage web page server supported.Backstage web page server can obtain the number such as request to the pagefile received
The processing such as analyze according to progress, and result (such as pagefile) is fed back into terminal device.
It should be noted that the pagefile generation method that the embodiment of the present application is provided typically is performed by server 105,
Correspondingly, pagefile generating means are generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need
Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow 200 of one embodiment of pagefile generation method according to the application is shown.
The pagefile generation method, comprises the following steps:
Step 201, the pagefile acquisition request that client is sent is received.
In the present embodiment, electronic equipment (such as service shown in Fig. 1 of pagefile generation method operation thereon
Device) client (terminal of page browsing can be carried out using it from user by wired connection mode or radio connection
Equipment) receive pagefile acquisition request.Wherein, above-mentioned pagefile obtains request and included including the corresponding page of pagefile
The start context for having installed page presentation application of the mark in face, the type of client and client.Start context can be used to
Embody application version it is high and low.
Pagefile is the file for including building the data of the page.Here the data namely the configuration page of the structure page
Data, can include indicating the data of page color, indicate the data for the search pattern that the page is used and indicate to lead in the page
The data on boat column etc..Pagefile obtain request for client to above-mentioned electronic equipment send to obtain pagefile
Request.The mark of the page is distinguished and recognized to being designated of the corresponding page of pagefile, and the different pages has different pages
Face is identified.One page when showing in different forms, the mark of use is consistent, although that is, same page can be used
Different forms shows (the such as primary page and hypertext markup language page), but different forms the page share it is same
Page iden-tity.In addition, the page can share same mark with pagefile.Herein, the mark of the page can be the page
ID.The type of client is the type divided according to the operating environment of client.For example, the ios systems institute for tablet personal computer
Client, for the client where the ios systems of mobile phone, for the client where Android (Android) system.This
In be used for Android system where client can also be further subdivided into for the visitor where the Android system of tablet personal computer
Family end and for client where the Android system of mobile phone etc..Page presentation applies that answering for page presentation can be carried out
With.
It is pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connections, WiFi connections, bluetooth
Connection, WiMAX connections, Zigbee connections, UWB (ultra wideband) connections and other currently known or exploitations in the future
Radio connection.The above-mentioned page can include html forms, xhtml forms, asp forms, php forms, jsp forms,
Shtml forms, nsp forms, the page of the page of xml forms or other following forms by exploitation are (as long as this form
Pagefile can open and browse the contents such as its picture, animation, the word that include with browser).
Step 202, according to mark and type, target pages text is determined from pagefile and the minimum version numbering prestored
Part and target minimum version numbering.
In the present embodiment, above-mentioned electronic equipment is according to the mark and type received, from the pagefile prestored and most
In lowest version numbering, it is determined that target pages file corresponding with above-mentioned mark and type and target minimum version numbering.Specifically,
Pagefile and the minimum version numbering prestored can be stored in the electronic equipment or communicate other electronics of connection
In the database or buffer area of equipment.Target pages file refers to the page text corresponding with above-mentioned mark and type for determining to obtain
Part.Minimum version numbering is the numbering of the minimum version of the page presentation application of the corresponding primary page of displayed page file, no
The minimum version numbering for the page presentation application that the client of same type is installed is different.Target minimum version numbering is to determine
The minimum version numbering corresponding with above-mentioned mark and type arrived.The primary page is often referred to the page that can be directly shown
Face.
Specifically, it can determine that mark is obtained with pagefile in pagefile and the minimum version numbering prestored
Mark identical pagefile in request.And determine identical with above-mentioned mark, and it is suitable for the type of above-mentioned client
Page presentation application minimum version numbering.
In practice, user can check that page presentation applies the shown page in client.Entered by the primary page
Row displaying, displaying efficiency is higher and page image quality is preferable.So, storage can show the primary page on above-mentioned electronic equipment
The minimum start context of above-mentioned application, in case subsequently using.
Step 203, the comparison numbered based on the start context to having installed page presentation application with target minimum version, it is raw
Into matching with comparative result and pagefile corresponding with target pages file.
In the present embodiment, above-mentioned electronic equipment is minimum based on the start context and target to having installed page presentation application
The comparison of start context, obtains comparative result.Generation matches and page corresponding with target pages file with comparative result afterwards
Face file.Here what is obtained by the comparison of start context is height between version, namely comparative result is, page in client
Height between the version and the corresponding version of target minimum version numbering of face displaying application.Can be according to obtained comparison knot
Really, the corresponding pagefile of generation target pages file.Here the pagefile generated is to await sending to client carrying out
The pagefile rendered.Can be primary pagefile or HTML document (such as HTML5 files),
It can also be primary and HTML mixed file etc..
In practice, matching refers to no matter to compare which of obtained two versions edition comparison high (or low), with
The corresponding pagefile of the version higher (or low).
Comparing the height between version can adopt in various manners.For example, the size of start context can be compared.Also
It can be compared according to the naming rule of start context set in advance, namely it is high according to default start context and version
Low corresponding relation is compared.For example, can preset, start context is smaller, and version is higher.Numeral can also be added
Such as letter of character in addition etc., is numbered setting.
With continued reference to Fig. 3, Fig. 3 is a signal of the application scenarios of the pagefile generation method according to the present embodiment
Figure.In Fig. 3 application scenarios, the pagefile that user initiates a webpage by client 301 first obtains request 302,
Obtaining request in the pagefile includes the type of client for for the client where the ios systems of mobile phone, page text
The mark wp12 of the corresponding page of part and the start context 2.0 for having installed page presentation application in the client;Afterwards, net
Page server 305 can be according to mark wp12 and the type of client:For the client where the ios systems of mobile phone, from pre-
Target pages file and target minimum version numbering 1.9 303 are determined in pagefile and the minimum version numbering deposited;Then, net
Page server 305 based on the comparison to start context 2.0 and target minimum version numbering 1.9, will as shown in figure 3, generation and
The corresponding primary pagefile 304 of target pages file, and it is sent to client 301.
The method that above-described embodiment of the application is provided is based on having installed the start context of page presentation application with target most
The comparison of lowest version numbering, the pagefile that make use of target pages file generated new, it is to avoid the pagefile corresponding page
With page presentation apply incompatible version cause the problem of can not showing.And the present embodiment can also avoid client frequency
Page quality that numerous use hypertext markup language page is caused is not good and the problem of low page display efficiency.
With further reference to Fig. 4, it illustrates the flow 400 of another embodiment of pagefile generation method.The page
The flow 400 of document generating method, comprises the following steps:
Step 401, for each page area, according to the file of the page area, it is determined that showing the page area
The start context of the minimum version of page presentation application, obtains at least one start context.
In the present embodiment, pagefile includes the file of at least one page area of the corresponding page of pagefile.
Server will determine the minimum version numbering of some pagefiles.These pagefiles can be limited artificially, or from certain
Obtained in individual pagefile set.For each of the page corresponding to each pagefile in these above-mentioned pagefiles
Page area, server is according to the file of the page area, it is determined that showing the minimum version of the page presentation application of the page area
This start context, obtains one or more start contexts.
Create the page when, technical staff can page division be multiple regions (may also full page be exactly an area
Domain).Page area is the region in the page being manually set.Each page area has different functions, can show different
Content.Such as, it can include in the page, navigation bar region, Title area etc..Each page area has configures number including it
According to file.The start context for the minimum version that the page presentation for showing the page area is applied can be determined using file.
To the start context of minimum version of each page area can be consistent, then finally just obtain a start context.
If each obtained start context is inconsistent, multiple start contexts can be obtained.
Step 402, the maximum start context at least one start context is chosen, and maximum start context is determined
Numbered for minimum version.
In the present embodiment, above-mentioned server chooses maximum start context from least one obtained start context,
The maximum start context is defined as minimum version numbering afterwards.Where this minimum version numbering is displayed page region
The start context of the page presentation application of the page, the page where page area here is also the corresponding page of pagefile,
Namely the page that pagefile can be constructed.
Because needing each page area in displayed page during displayed page, if not choosing each page area correspondence
Each start context in maximum start context, then the page that the page presentation application of the maximum version of needs could be loaded occurs
The situation that face region can not be shown.It is therefore desirable to choose the start context of maximum.For example, a page has four pages
Face region, obtained start context is respectively 1.0,2.0,3.0 and 2.0, and just choosing 3.0 should as the page presentation of displayed page
Minimum version is numbered.
Step 403, the pagefile acquisition request that client is sent is received.
In the present embodiment, above-mentioned server can be utilized by wired connection mode or radio connection from user
Its client (terminal device) for carrying out page browsing receives pagefile and obtains request.Wherein, above-mentioned pagefile, which is obtained, asks
Ask the page presentation application of installation for including the mark including the corresponding page of pagefile, the type of client and client
Start context.Start context can be to embody the high and low of application version.
Step 404, in response to determining that target pages file and target version are not present in buffer area numbers, then by page object
Face file, and show the minimum version numbering deposit buffer area of the page presentation application of each type of target pages file
In.
In the present embodiment, the pagefile and start context prestored is pre-stored in buffer area.In order to above-mentioned server
Target pages file can quickly be found.Above-mentioned server can be performed determines target pages file and target in buffer area
The operation of minimum version numbering.It if execution is unsuccessful, can determine that target pages file and target are not present in buffer area
Start context.Above-mentioned server is then responded:By target pages file, and the corresponding primary page of displaying target pages file
In the minimum version numbering deposit buffer area of face, each type page presentation application.
Step 405, from the multiple pagefiles prestored, the pagefile indicated by mark is searched, and will find
Pagefile is defined as target pages file.
In the present embodiment, in multiple pagefiles that above-mentioned server prestores from buffer area, it is the page to search mark
The pagefile of mark in file acquisition request.And the pagefile found is defined as target pages file.
Step 406, from the page of client that show the corresponding primary page of target pages file, to be installed on each type
In the minimum version numbering of face displaying application, the page that pagefile obtains the client of the type included by asking will be installed on
The minimum version numbering of displaying application is defined as target minimum version numbering.
In the present embodiment, the corresponding multiple minimum version numberings of target pages file are stored in buffer area.It is multiple
Each minimum version in minimum version numbering is numbered:Show the corresponding primary page of target pages file, each type
Client on install page presentation application minimum version numbering.By the minimum version corresponding to the type of the client of reception
This numbering is defined as target minimum version numbering.Also the client that pagefile obtains the type included by request will be installed on
Page presentation application minimum version numbering be defined as target minimum version numbering.
Step 407, it is more than or equal to target minimum version in response to the start context for determining to have installed page presentation application
Numbering, the corresponding primary pagefile of generation target pages file.
In the present embodiment, above-mentioned server is it is determined that the start context for having installed page presentation application is more than or equal to mesh
Minimum version numbering is marked, then is responded:Generate the corresponding primary pagefile of target pages file.Under normal circumstances, version
Numbering is bigger, represents that version is higher, and the height of version can be determined by the size of start context.The mounted page of client
If the start context of face displaying application is larger or equal to target minimum version numbering, then it represents that version can show primary page
Face.So above-mentioned server generates the corresponding primary pagefile of target pages file.
Step 408, numbered in response to the start context for determining to have installed page presentation application less than target minimum version, it is raw
Into the corresponding HTML document of target pages file.
In the present embodiment, the start context of the mounted page presentation application of client is if less than target minimum version
Numbering, then it represents that version can not show the primary page.So above-mentioned server generates the corresponding hypertext of target pages file
Making language document (such as HTML5 files).The HTML document of generation can be sent to client afterwards, with
It is set to show hypertext markup language page.
It should be noted that step 406 and step 407 can select an execution.
Step 409, in response to receiving page modification information, the pagefile in buffer area is updated, and update displaying institute
The minimum version numbering of the page presentation application of the corresponding primary page of pagefile of renewal.
In the present embodiment, above-mentioned server receives page modification information, then responds:Changed and believed according to the page
Breath, updates the pagefile in buffer area.Meanwhile, update the page exhibition of the updated corresponding primary page of pagefile of displaying
Show the minimum version numbering of application.The information that page modification information is modified for instruction to the corresponding pagefile of the page.It is right
Pagefile is modified, you can change the corresponding page of pagefile.Update pagefile before, at the same time or it
Afterwards, the minimum version numbering of the page presentation application of the corresponding page of above-mentioned server update displayed page file.Here page
Face file is the pagefile that page modification information indicates modification.
The present embodiment determined from buffer area pagefile and minimum version numbering, can effectively save determination when
Between.And the content in buffer area can also be updated, it is ensured that the standard of the corresponding pagefile of generation target pages file
True property.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of life of pagefile
Into one embodiment of device, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device can specifically be applied
In various electronic equipments.
As shown in figure 5, the pagefile generating means 500 of the present embodiment include:Receiving unit 501, the and of determining unit 502
Generation unit 503.Wherein, receiving unit 501, are configured to receive the pagefile acquisition request that client is sent, page text
Part, which is obtained, asks the page presentation of installation for including the mark of the corresponding page of pagefile, the type of client and client should
Start context;Determining unit 502, is configured to, according to mark and type, compile from the pagefile and minimum version prestored
Target pages file and target minimum version numbering are determined in number, wherein, minimum version numbering is that displayed page file is corresponding
The numbering of the minimum version of the page presentation application of the primary page, the page presentation application that different types of client is installed
Minimum version numbering is different;Generation unit 503, is configured to based on the start context and target to having installed page presentation application
The comparison of minimum version numbering, generation matches and pagefile corresponding with target pages file with comparative result.
In the present embodiment, the receiving unit 501 of pagefile generating means 500 can by wired connection mode or
Radio connection receives pagefile using its client (terminal device) for carrying out page browsing from user and obtains request.Its
In, above-mentioned pagefile obtains request and includes the mark including the corresponding page of pagefile, the type of client and client
The start context for having installed page presentation application at end.Start context can to embody application version it is high and low.
In the present embodiment, above-mentioned determining unit 502 is according to the mark and type received, from the pagefile prestored and
In minimum version numbering, it is determined that target pages file corresponding with above-mentioned mark and type and target minimum version numbering.Target
Pagefile refers to the pagefile corresponding with above-mentioned mark and type for determining to obtain.Minimum version numbering is displayed page text
The numbering of the minimum version of the page presentation application of the corresponding primary page of part, the page exhibition that different types of client is installed
Show that the minimum version numbering of application is different.Target minimum version numbering be determine obtain it is corresponding with above-mentioned mark and type
Minimum version is numbered.The primary page is often referred to the page that can be directly shown.
In the present embodiment, above-mentioned generation unit 503 is based on the start context and target to having installed page presentation application
The comparison of minimum version numbering, obtains comparative result.Generation matches and corresponding with target pages file with comparative result afterwards
Pagefile.Here what is obtained by the comparison of start context is height between version, namely comparative result is, client
Height between the version and the corresponding version of target minimum version numbering of middle page presentation application.Can be according to obtained comparison
As a result, the corresponding pagefile of generation target pages file.Here the pagefile generated is to await sending to client
The pagefile that row is rendered.Can be primary pagefile or HTML document (such as HTML5 texts
Part), it can also be primary and HTML mixed file etc..
In some optional implementations of the present embodiment, generation unit, including:First generation module (not shown),
Numbered in response to the start context for determining to have installed page presentation application more than or equal to target minimum version, generate target pages
The corresponding primary pagefile of file;Or the second generation module (not shown), in response to determining to have installed page presentation application
Start context is numbered less than target minimum version, the corresponding HTML document of generation target pages file.
In some optional implementations of the present embodiment, the pagefile and start context prestored is pre-stored in buffer area
In;And the device also includes:Memory cell (not shown), is configured in response to determining that target pages are not present in buffer area
File and target version numbering, then by target pages file, and show the page presentation of each type of target pages file
In the minimum version numbering deposit buffer area of application.
In some optional implementations of the present embodiment, the device also includes:Updating block (not shown), configuration is used
In in response to receiving page modification information, the pagefile in buffer area is updated, and update the updated pagefile of displaying
The minimum version numbering of the page presentation application of the corresponding primary page.
In some optional implementations of the present embodiment, pagefile includes the corresponding page of pagefile at least
The file of one page area;And the device also includes:Version unit (not shown) is determined, is configured to for each page
Face region, according to the file of the page area, it is determined that showing the version of the minimum version of the page presentation application of the page area
Numbering, obtains at least one start context;Unit (not shown) is chosen, is configured to choose at least one start context most
Big start context, and maximum start context is defined as minimum version numbering.
In some optional implementations of the present embodiment, determining unit, including:Searching modul (not shown), configuration
Determined for from the multiple pagefiles prestored, searching the pagefile indicated by mark, and by the pagefile found
For target pages file;Determining module (not shown), is configured to from the corresponding primary page of displaying target pages file, peace
In the minimum version numbering of the page presentation application of client loaded on each type, pagefile will be installed on and obtain request institute
Including type client page presentation application minimum version numbering be defined as target minimum version numbering.
Below with reference to Fig. 6, it illustrates suitable for for the computer system 600 for the electronic equipment for realizing the embodiment of the present application
Structural representation.Electronic equipment shown in Fig. 6 is only an example, to the function of the embodiment of the present application and should not use model
Shroud carrys out any limitation.
Fig. 6 shows the structural representation of the computer system suitable for being used for the electronic equipment for realizing the embodiment of the present application.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be according to being stored in read-only storage
(ROM) program in 602 is performed each from the program that storage part 608 is loaded into random access storage device (RAM) 603
Plant appropriate action and processing.In RAM 603, the system that is also stored with 600 operates required various programs and data.CPU
601st, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus
604。
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Penetrated including such as negative electrode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.;
And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc., are arranged on driver 610, in order to read from it as needed
Computer program be mounted into as needed storage part 608.
Especially, according to embodiments herein, the process described above with reference to flow chart may be implemented as computer
Software program.For example, embodiments herein includes a kind of computer program product, it includes being carried on computer-readable medium
On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality
Apply in example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media
611 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processes
Above-mentioned functions.It should be noted that the computer-readable medium of the application can be computer-readable signal media or calculating
Machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but do not limit
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than combination.Calculate
The more specifically example of machine readable storage medium storing program for executing can include but is not limited to:It is electrically connecting with one or more wires, portable
Formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable programmable read only memory
(EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.In this application, computer-readable recording medium can be any includes or storage program
Tangible medium, the program can be commanded execution system, device or device and use or in connection.And in this Shen
Please in, computer-readable signal media can include in a base band or as carrier wave a part propagate data-signal, its
In carry computer-readable program code.The data-signal of this propagation can take various forms, and include but is not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium beyond storage medium, the computer-readable medium can send, propagate or transmit for by
Instruction execution system, device or device are used or program in connection.The journey included on computer-readable medium
Sequence code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or above-mentioned
Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation
The part of one module of table, program segment or code, the part of the module, program segment or code is used comprising one or more
In the executable instruction for realizing defined logic function.It should also be noted that in some realizations as replacement, being marked in square frame
The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note
Meaning, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart can be with holding
The special hardware based system of function or operation as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of server bag
Include receiving unit, determining unit and generation unit.Wherein, the title of these units is not constituted to the unit under certain conditions
The restriction of itself, for example, receiving unit is also described as " receiving the list for the pagefile acquisition request that client is sent
Member ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be
Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating
Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should
Device:The pagefile acquisition request that client is sent is received, pagefile, which obtains request, includes the corresponding page of pagefile
Mark, the start context for having installed page presentation application of the type of client and client;According to mark and type, from pre-
Target pages file and target minimum version numbering are determined in pagefile and the minimum version numbering deposited, wherein, minimum version
Numbering is the numbering of the minimum version of the page presentation application of the corresponding primary page of displayed page file, different types of client
The minimum version numbering of the installed page presentation application in end is different;Based on to installed page presentation application start context with
The comparison of target minimum version numbering, generation matches and pagefile corresponding with target pages file with comparative result.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, is carried out by above-mentioned technical characteristic or its equivalent feature
Other technical schemes formed by any combination.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical characteristic of energy carries out technical scheme formed by replacement mutually.
Claims (13)
1. a kind of pagefile generation method, it is characterised in that methods described includes:
The pagefile acquisition request that client is sent is received, the pagefile, which obtains request, includes the corresponding page of pagefile
The start context for having installed page presentation application of the identifying of face, the type of the client and the client;
According to it is described mark and the type, from prestore pagefile and minimum version numbering in determine target pages file and
Target minimum version is numbered, wherein, minimum version numbering is the page presentation application of the corresponding primary page of displayed page file
Minimum version numbering, the minimum version numbering of page presentation that different types of client is installed application is different;
Based on the comparison numbered to start context and the target minimum version for having installed page presentation application, generation with
Comparative result matches and pagefile corresponding with the target pages file.
2. pagefile generation method according to claim 1, it is characterised in that described to be based on having installed the page to described
Show the comparison that start context and the target minimum version of application are numbered, generation match with comparative result and with the mesh
The corresponding pagefile of pagefile is marked, including:
Numbered in response to the start context that page presentation application has been installed described in determination more than or equal to the target minimum version,
Generate the corresponding primary pagefile of the target pages file;Or
Numbered in response to the start context that page presentation application has been installed described in determination less than the target minimum version, generate institute
State the corresponding HTML document of target pages file.
3. pagefile generation method according to claim 2, it is characterised in that the pagefile and version prestored
Numbering is pre-stored in buffer area;And
Described according to the mark and the type, target pages are determined from pagefile and the minimum version numbering prestored
Before file and target minimum version numbering, methods described also includes:
In response to determining that target pages file and target version are not present in the buffer area numbers, then by target pages text
Part, and show the minimum version numbering deposit caching of the page presentation application of each type of the target pages file
Qu Zhong.
4. pagefile generation method according to claim 2, it is characterised in that methods described also includes:
In response to receiving page modification information, the pagefile in the buffer area is updated, and update the updated page of displaying
The minimum version numbering of the page presentation application of the corresponding primary page of face file.
5. pagefile generation method according to claim 1, it is characterised in that pagefile includes pagefile correspondence
The page at least one page area file;And
Described according to the mark and the type, target pages are determined from pagefile and the minimum version numbering prestored
Before file and target minimum version numbering, methods described also includes:
For each page area, according to the file of the page area, it is determined that showing the page presentation of the page area
The start context of the minimum version of application, obtains at least one start context;
The maximum start context at least one described start context is chosen, and the maximum start context is defined as most
Lowest version is numbered.
6. pagefile generation method according to claim 3, it is characterised in that described according to the mark and the class
Type, determines target pages file and target minimum version numbering from pagefile and the minimum version numbering prestored, including:
From the multiple pagefiles prestored, the pagefile indicated by the mark is searched, and by the pagefile found
It is defined as target pages file;
Page presentation from client that show the corresponding primary page of the target pages file, to be installed on each type should
In minimum version numbering, the page presentation application that pagefile obtains the client of the type included by asking will be installed on
Minimum version numbering be defined as target minimum version numbering.
7. a kind of pagefile generating means, it is characterised in that described device includes:
Receiving unit, is configured to receive the pagefile acquisition request that client is sent, the pagefile obtains request bag
Include the identifying of the corresponding page of pagefile, the type of the client and the client has installed page presentation application
Start context;
Determining unit, is configured to according to the mark and the type, from pagefile and the minimum version numbering prestored
Target pages file and target minimum version numbering are determined, wherein, minimum version numbering is that displayed page file is corresponding primary
The numbering of the minimum version of the page presentation application of the page, it is minimum that the page presentation that different types of client is installed is applied
Start context is different;
Generation unit, is configured to based on to the start context and the target minimum version for having installed page presentation application
The comparison of numbering, generation matches and pagefile corresponding with the target pages file with comparative result.
8. pagefile generating means according to claim 7, it is characterised in that the generation unit, including:
First generation module, is configured to be more than or equal in response to having installed the start context of page presentation application described in determination
The target minimum version numbering, generates the corresponding primary pagefile of the target pages file;Or
Second generation module, is configured to be less than the mesh in response to having installed the start context of page presentation application described in determination
Minimum version numbering is marked, the corresponding HTML document of the target pages file is generated.
9. pagefile generating means according to claim 8, it is characterised in that the pagefile and version prestored
Numbering is pre-stored in buffer area;And
Described device also includes:
Memory cell, is configured in response to determining that target pages file and target version are not present in the buffer area numbers,
Then by the target pages file, and show the minimum version of the page presentation application of each type of the target pages file
This numbering is stored in the buffer area.
10. pagefile generating means according to claim 8, it is characterised in that described device also includes:
Updating block, is configured to, in response to receiving page modification information, update the pagefile in the buffer area, and more
The minimum version numbering of the page presentation application of the updated corresponding primary page of pagefile of new displaying.
11. pagefile generating means according to claim 7, it is characterised in that pagefile includes pagefile pair
The file of at least one page area of the page answered;And
Described device also includes:
Version unit is determined, is configured to for each page area, according to the file of the page area, it is determined that showing the page
The start context of the minimum version of the page presentation application in face region, obtains at least one start context;
Unit is chosen, is configured to choose the maximum start context at least one described start context, and by the maximum
Start context be defined as minimum version numbering.
12. a kind of server, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real
The existing method as described in any in claim 1-6.
13. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The method as described in any in claim 1-6 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536594.1A CN107330087B (en) | 2017-07-04 | 2017-07-04 | Page file generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536594.1A CN107330087B (en) | 2017-07-04 | 2017-07-04 | Page file generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107330087A true CN107330087A (en) | 2017-11-07 |
CN107330087B CN107330087B (en) | 2020-11-03 |
Family
ID=60198762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710536594.1A Active CN107330087B (en) | 2017-07-04 | 2017-07-04 | Page file generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107330087B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491740A (en) * | 2018-10-30 | 2019-03-19 | 北京云测信息技术有限公司 | A kind of automatic multi version funnel page selection method based on context information |
CN113157311A (en) * | 2021-04-08 | 2021-07-23 | 上海高顿教育培训有限公司 | H5-based application program version number control method |
CN113467827A (en) * | 2021-07-19 | 2021-10-01 | 上海哔哩哔哩科技有限公司 | Version control method and device for advertisement page |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867890A (en) * | 2015-09-11 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Page display method and device |
CN105988846A (en) * | 2015-03-03 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Page loading method and page loading device |
CN106372214A (en) * | 2016-09-05 | 2017-02-01 | 青岛海信宽带多媒体技术有限公司 | Webpage page display control method and intelligent terminal |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
-
2017
- 2017-07-04 CN CN201710536594.1A patent/CN107330087B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988846A (en) * | 2015-03-03 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Page loading method and page loading device |
CN105867890A (en) * | 2015-09-11 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Page display method and device |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
CN106372214A (en) * | 2016-09-05 | 2017-02-01 | 青岛海信宽带多媒体技术有限公司 | Webpage page display control method and intelligent terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491740A (en) * | 2018-10-30 | 2019-03-19 | 北京云测信息技术有限公司 | A kind of automatic multi version funnel page selection method based on context information |
CN109491740B (en) * | 2018-10-30 | 2021-09-10 | 北京云测信息技术有限公司 | Automatic multi-version funnel page optimization method based on context background information |
CN113157311A (en) * | 2021-04-08 | 2021-07-23 | 上海高顿教育培训有限公司 | H5-based application program version number control method |
CN113467827A (en) * | 2021-07-19 | 2021-10-01 | 上海哔哩哔哩科技有限公司 | Version control method and device for advertisement page |
Also Published As
Publication number | Publication date |
---|---|
CN107330087B (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106980508A (en) | Method and apparatus for generating the page | |
CN107168999A (en) | A kind of method for updating pages and device | |
US11016716B2 (en) | Picture interface display method and apparatus according to jump protocol | |
CN104978358B (en) | The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system | |
CN108509526A (en) | The method and apparatus of interface element for Dynamic Distribution's mobile application | |
CN107295095A (en) | The method and apparatus for pushing and showing advertisement | |
CN110119294A (en) | The generation method of menu page, apparatus and system | |
CN105117491B (en) | Page push method and apparatus | |
CN107066609A (en) | Image display method and device | |
CN109460233A (en) | Primary interface display update method, device, terminal device and the medium of the page | |
CN107656768A (en) | Control the method and its system of page jump | |
CN106874519A (en) | Webpage representation method and apparatus | |
CN106896937A (en) | Method and apparatus for being input into information | |
CN106874471A (en) | Information-pushing method and device | |
CN103823841B (en) | Improve the method and its device of mobile terminal client terminal surfing | |
CN107172685A (en) | The method and apparatus that the information of WAP is shown in mobile terminal | |
CN108132945A (en) | For generating the method and apparatus of report | |
CN107330087A (en) | Pagefile generation method and device | |
CN106960062A (en) | Webpage capture method and system | |
CN106919406A (en) | A kind of desktop application component issue, update method and device | |
CN107330091A (en) | Information processing method and device | |
CN107347093A (en) | Collocation method and device for distributed server system | |
CN105183453A (en) | Webpage-based information acquiring method and apparatus | |
CN114756228A (en) | Page processing method, device, equipment and storage medium | |
CN105373310B (en) | Method and apparatus based on the user's operation real-time update page |
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 |