CN106502646A - The page info processing method and processing device of application - Google Patents
The page info processing method and processing device of application Download PDFInfo
- Publication number
- CN106502646A CN106502646A CN201610848748.6A CN201610848748A CN106502646A CN 106502646 A CN106502646 A CN 106502646A CN 201610848748 A CN201610848748 A CN 201610848748A CN 106502646 A CN106502646 A CN 106502646A
- Authority
- CN
- China
- Prior art keywords
- page
- differential file
- file
- code
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The present invention provides a kind of page info processing method and processing device of application.The method includes:The differential file that the page to be shown is sent to server obtains request;The differential file obtains request to be included:The mark of the page to be shown;Receive the differential file of the page described to be shown that the server sends;The differential file includes:The service code of the page to be shown;The differential file is cached;The variance codes are used for combining the code that default public documents obtain the page to be shown;The public documents include:The infrastructure component of the page to be shown.The present invention can improve the loading velocity and display speed of five application page.
Description
Technical field
A kind of the present invention relates to Internet technical field, more particularly to the page info processing method and processing device of application.
Background technology
Compared with pure localization application (Native app), using web application (Web app) and localization application knot
Run the mixing application (Hybrid APP) that sends out jointly, there can be good renewal iteration.
For the mixing application, the terminal of the mixing application is installed after five application page idsplay order is received, meeting is straight
Connect to server and send request, and the code of the page to be shown of the reception server return, then by running the page to be shown
The code in face, to realize that the corresponding page shows.
When showing five application page every time, the code of the page to be shown obtained from server, actual is the page to be shown
All codes.During this causes the display of page application, from server obtain data volume larger, its acquisition speed compared with
Slowly so that the loading velocity of five application page is slower, then so that the display speed of five application page is slower.
Content of the invention
The present invention provides a kind of page info processing method and processing device of application, can improve five application page loading velocity and
Display speed.
In a first aspect, the present invention provides a kind of page info processing method of application, including:
The differential file that the page to be shown is sent to server obtains request;The differential file obtains request to be included:Institute
State the mark of the page to be shown;
Receive the differential file of the page described to be shown that the server sends;The differential file includes:Described treat
Show the service code of the page;
The differential file is cached;The variance codes be used for reference to default public documents obtain described in wait to show
Show the code of the page;The public documents include:The infrastructure component of the page to be shown.
In due to the method, the differential file of the service code that include the to be shown page only need to be obtained from server, after
And the code that just can obtain the page to be shown is packaged according to default public documents and the differential file, and without the need for from clothes
Business device obtains the code of the page to be shown, reduces the data volume of the file obtained from server, improves file acquisition speed,
The loading velocity of five application page and the display speed of five application page are improved then
Optionally, before the differential file for sending the page to be shown to server obtains request, methods described is also wrapped
Include:
Whether according to the mark of the page to be shown, determining in cache file includes the differential file.
Optionally, the differential file for sending the page to be shown to server obtains request, including:
If not including the differential file in the cache file, directly the differential file is sent to the server
Obtain request.
Optionally, the differential file for sending the page to be shown to server obtains request, including:
If the cache file includes the differential file, according to the file of the page described to be shown for obtaining in advance
Version number, determines that whether the differential file that cached is the latest document of the page to be shown;
If the differential file for having cached latest document not for the page to be shown, sends to the server
The differential file obtains request.
The page info processing method of the application, it is not the page to be shown that can pass through in the differential file for having cached
Latest document, then send the differential file to the server and obtain request, so as to realize the download of the differential file, with time more
The differential file of the new opplication page.
Optionally, the differential file also includes:The entry-into-force time of the differential file;Methods described also includes:
In the case where the entry-into-force time meets, it is packaged according to the public documents and the differential file, is obtained
Obtain the code of the page to be shown.
Optionally, methods described also includes:
The code of the page to be shown is loaded, the page display data of the page to be shown is obtained;
Carried out after view rendering according to the page display data, carry out the page and show.
Optionally, methods described also includes:
If the appearance code loading of the page to be shown is abnormal, show the abnormal prompt page.
The method can also effectively strengthen the robustness of the five application page, i.e., in the case where there are abnormal conditions, abnormal by showing
The prompting page, carries out reasonable, friendly information to user, it is to avoid the impact of the Consumer's Experience that abnormal conditions are brought and use
Processing mode of the family to the application.
Optionally, methods described also includes:
If the code loading frequency of abnormity of the page to be shown deletes the described of caching more than or equal to preset times
Differential file;
The abnormal relevant information of the code loading is sent to the server, so that treating described in server determination
Show the code loading abnormal cause of the page.
In the method, in the case where the code loading frequency of abnormity of the page to be shown is more than or equal to preset times, delete
Except the differential file of caching, the memory space of the differential file occupied terminal of mistake can be avoided, can also be avoided due to the difference
The display exception that file brings, so that improve Consumer's Experience;The related letter of the code loading exception for sending to the server simultaneously
Breath, can cause server selection abnormal cause, provide then accurate differential file, five application page be effectively ensured and just shows
Often, it is ensured that the normal use of application, Consumer's Experience is improved.
Optionally, methods described also includes:
Store the code of the page to be shown.
Optionally, methods described also includes:
After the page shows and terminates, the code of the page described to be shown of storage is deleted.
Show in the page and terminate, that is, after view is removed from screen, delete the code of the page to be shown of storage,
To reduce the disk space shared by the application, the utilization rate of the disk of terminal is improved.
Second aspect, the present invention provide a kind of page information processing apparatus of application, including:
Network management module, obtains request for sending the differential file of the page to be shown to server;The difference text
Part obtains request to be included:The mark of the page to be shown;Receive the difference of the page described to be shown that the server sends
File;The differential file includes:The service code of the page to be shown;
Caching management module, for caching to the differential file;The variance codes are used for combining default public affairs
The code of the page to be shown described in common file acquisition;The public documents include:The infrastructure component of the page to be shown.
Optionally, the caching management module, is additionally operable to described to server transmission in the network management module
Whether before differential file obtains request, according to the mark of the page to be shown, determining in cache file includes the difference
Different article part.
Optionally, the network management module, if specifically for not including the differential file in the cache file,
Directly the differential file is sent to the server obtain request.
Optionally, the network management module, if include the differential file, root specifically for the cache file
According to the fileversion number of the page described to be shown for obtaining in advance, determine that whether the differential file for having cached is described to wait to show
Show the latest document of the page;If the differential file for having cached latest document for the page to be shown, to described
Server sends the differential file and obtains request.
Optionally, the differential file also includes:The entry-into-force time of the differential file;Described device also includes:
Load-on module, in the case of meeting in the entry-into-force time, according to the public documents and difference text
Part is packaged, and obtains the code of the page to be shown.
Optionally, the load-on module, is additionally operable to the code for loading the page to be shown, obtains the page of the page to be shown
Face display data;Carried out after view rendering according to the page display data, carry out the page and show.
Optionally, described device also includes:
Exception processing module, if the appearance code loading for the page to be shown is abnormal, shows abnormal prompt page
Face.
Optionally, described device also includes:
The exception processing module, if be additionally operable to the code loading frequency of abnormity of the page to be shown more than or equal to pre-
If number of times, then delete the differential file of caching;The abnormal relevant information of the code loading is sent to the server, with
So that the server determines the code loading abnormal cause of the page to be shown.
Optionally, the load-on module, is additionally operable to the code for storing the page to be shown.
Optionally, described device also includes:
Life cycle module, for, after the page shows and terminates, deleting the code of the page described to be shown of storage.
The page info processing method and processing device of the application that the present invention is provided, can send to server includes the page to be shown
The differential file of mark obtain request, and receive the differential file of the page to be shown that the server sends;The difference text
Part includes:The service code of the page to be shown, is cached to the differential file then;According to default public documents and should
Differential file is packaged the code that can obtain the page to be shown.In due to the method, only need to obtain from server includes being somebody's turn to do
The differential file of the service code of the page to be shown, is packaged according to default public documents and the differential file then and just may be used
The code of the page to be shown is obtained, and without the need for the code of the page to be shown is obtained from server, is reduced and obtained from server
The data volume of the file for taking, improves file acquisition speed, improves then the loading velocity of five application page and showing for five application page
Show speed.
Description of the drawings
In order to be illustrated more clearly that technical scheme of the invention or of the prior art, below will be to embodiment or prior art
Needed for description, accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are the one of the present invention
A little embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with according to this
A little accompanying drawings obtain other accompanying drawings.
A kind of Organization Chart of network system based on application that Fig. 1 is provided for the present invention;
A kind of flow chart of the page info processing method of application that Fig. 2 is provided for the present invention;
The flow chart of the page info processing method reality of another kind of application that Fig. 3 is provided for the present invention;
A kind of structural representation of the page information processing apparatus of application that Fig. 4 is provided for the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the present invention in accompanying drawing, to this
Technical scheme in invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the invention,
Rather than whole embodiments.Embodiment in based on the present invention, those of ordinary skill in the art are not making creative labor
The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
The page info processing method and processing device of the application that the following each embodiments of the present invention are provided is applicable to based on application
Network system.A kind of Organization Chart of network system based on application that Fig. 1 is provided for the present invention.As shown in figure 1, the network system
System may include:Terminal 101 and server 102.Wireless network can be passed through between terminal 101 and server 102 or cable network connects.
Wherein, the terminal 101 can install the electronic equipment of application for mobile phone, panel computer, notebook computer etc..Server 102
It can be application server.Can be stored with server 102 installation file of application, and the difference text of each page of the application
Part etc..
Application involved by the following each embodiments of the present invention can be local (React Native, the abbreviation RN) component of reaction
The application that compiling is generated.The RN components can for example be that the code call of the default script by being input into is local (native)
Component, generates application so as to compile, and the application can achieve the corresponding function of local (native) component.Wherein, the default script
Language can be with JavaScript scripts, and the local component can be the system component for being encapsulated in end side.
A kind of flow chart of the page info processing method of application that Fig. 2 is provided for the present invention.The method can be by above-mentioned end
Realized by way of software and/or hardware at end 101.As shown in Fig. 2 the method for the present embodiment can include:
S201, difference (Difference, abbreviation Diff) the file acquisition request for sending the page to be shown to server;Should
Differential file obtains request to be included:The mark (IDentification, abbreviation ID) of the page to be shown.
Optionally, the difference (Difference, abbreviation Diff) of the page to be shown is sent to server in above-mentioned S201
Before file acquisition request, the method may also include:
Obtain the mark of the page to be shown.
Specifically, the terminal can be the mark for obtaining the page to be shown from server.
For example, in application start-up course, terminal can be referred to for the startup is input into by the application receiving
After order, resource acquisition request is sent to server, and the response returned according to server obtains the application had at least one
The mark of the page, the page iden-tity can be the mark of arbitrary page of the application.
Application running in, terminal can be after the page idsplay order being input into for the application is received,
Send to server and show request, and the response returned according to server obtains the corresponding page iden-tity of page idsplay order,
The page iden-tity is the mark of the page to be shown.
Wherein, the mark of the page to be shown can be the execution file identification of the page to be shown, for example, can represent
For BundleID.
S202, the differential file for receiving the page to be shown that the server sends;The differential file includes:This is to be shown
The service code of the page.
Specifically, the server can be the mark according to the page to be shown, from default differential file storehouse, determine
Differential file corresponding to the mark of the page to be shown is the differential file of the page to be shown, and the differential file is sent
To the terminal.
S203, the differential file is cached.
Specifically, the terminal, after the differential file is received, can be by the mark of the page to be shown and the difference
Under the corresponding relation of file and the differential file are stored to the default file catalogue of the terminal, so as to realize the differential file
Caching.The default file catalogue is may be located in following arbitrary storage of the terminal:Static RAM (Static
Random Access Memory, abbreviation SRAM), Electrically Erasable Read Only Memory (Electrically Erasable
Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read-only, abbreviation EPROM), read-only storage (Read-Only Memory, abbreviation ROM), flash memory,
At least one in the memories such as disk.
S204, it is packaged according to default public (Common) file and the differential file, obtains the page to be shown
Code, the public documents include:The infrastructure component of the page to be shown.
Specifically, the public documents are predeterminable is stored in the end side.The infrastructure component of the page to be shown can be should
The skeleton code of the page to be shown.May also include in the public documents:The resolver of differential file, the resolver of the differential file
Can be used to be parsed so as to getting in the differential file the included page to be shown in the differential file to receiving
Service code.The code of the page to be shown can be whole (complete) files of the page to be shown.
The page info processing method of the application that the present invention is provided, can send to server includes the mark of the page to be shown
The differential file of knowledge obtains request, and receives the differential file of the page to be shown that the server sends;The differential file bag
Include:The service code of the page to be shown, is cached to the differential file then;According to default public documents and the difference
File is packaged the code that can obtain the page to be shown.In due to the method, only need to obtain from server includes that this waits to show
Show the differential file of the service code of the page, be packaged according to default public documents and the differential file then and be just obtained
The code of the page to be shown, and without the need for obtaining the code of the page to be shown from server, reduce from server acquisition
The data volume of file, improves file acquisition speed, improves then the loading velocity of five application page and the display speed of five application page
Degree.
Optionally, the present invention may also provide a kind of page info processing method of application.Fig. 3 for the present invention provide another
Plant the real flow chart of the page info processing method of application.As shown in figure 3, the page info processing method of the application, as above
Before the differential file that the page to be shown is sent to server in S201 in described method obtains request, the method can also be wrapped
Include:
Whether S301, the mark according to the page to be shown, determining in cache file includes the differential file.
Specifically, in the S301 can be mark according to the page to be shown, whether determine under default file catalogue
Cache file.If there is cache file under the default file catalogue, really to whether including this in the file of the file for having cached
Differential file.Under the default file catalogue, in the file for having cached, the differential file of each page of application can have corresponding mark
Know, the mark corresponding to the differential file of the different pages is different.
Optionally, the differential file for sending the page to be shown to server in S201 in method as above is obtained please
Asking to include:
If S302 this do not include the differential file in cache file, directly send the differential file to the server and obtain
Take request.
As do not included the differential file in this cache file, can be asked by sending differential file acquisition to the server
Ask, the differential file is downloaded from server.
Alternately, the differential file for sending the page to be shown to server in S201 in method as above is obtained
Request can include:
If S303 this cache file include the differential file, according to the file of the page to be shown for obtaining in advance
Version number, determines that whether the differential file that cached is the latest document of the page to be shown.
Specifically, the fileversion number of the page to be shown can be obtained from server by the terminal, the page to be shown
The fileversion number in face can be the latest edition number of the page to be shown.For example, can be to determine in the S303 that this is treated
Show the fileversion number of the page, with whether the version number of the differential file for having cached is identical;If version number is identical, really
The fixed differential file for having cached is the latest document of the page to be shown;If version number is different, it is determined that this has cached
Differential file latest document not for the page to be shown.
If the differential file that S304 has been cached latest document not for the page to be shown, sends to the server
The differential file obtains request.
That is, can be the latest document in the differential file for having cached not for the page to be shown in the method
In the case of, obtain request by the differential file being sent to the server, so as to download the differential file from server.
If the differential file that S305 has been cached is the latest document of the page to be shown, according to the difference for having cached
Different article part and default public documents are packaged, and obtain the code of the page to be shown.
Specifically, in the method can be mark according to the page to be shown, and the corresponding storage of default file catalogue
Under path, the differential file is read, be packaged according to the differential file and default public documents for having cached then, obtained
The code of the page to be shown.
The page info processing method of the application of the present invention, can also be by not treating for this in the differential file for having cached
Show the latest document of the page, then the differential file is sent to the server and obtain request, so as to realize under the differential file
Carry, with the differential file of the five application page that upgrades in time.
Optionally, in five application page processing method as above, the differential file may also include:The life of the differential file
The effect time.The method may also include:
In the case where the entry-into-force time meets, it is packaged according to the public documents and the differential file, obtains this and treat
Show the code of the page.
For example, in the method can according to the entry-into-force time, determine the differential file be this come into force or under secondary
Effect.Such as the differential file this come into force, it is determined that the differential file entry-into-force time this meet;If secondary under differential file
Effect, it is determined that the entry-into-force time of the differential file is in satisfaction next time.
Optionally, the method also includes:
The code of the page to be shown is loaded, the page display data of the page to be shown is obtained;
Carried out after view rendering according to the page display data, carry out the page and show.
Optionally, the method may also include:
If the appearance code loading of the page to be shown is abnormal, show the abnormal prompt page.
Optionally, the method also includes:
If the appearance code loading of the page to be shown is abnormal, the control of the navigation button of application is discharged, with current
In the case of page exception, user can flexibly return previous page.
The method can also effectively strengthen the robustness of the five application page, i.e., in the case where there are abnormal conditions, abnormal by showing
The prompting page, carries out reasonable, friendly information to user, it is to avoid the impact of the Consumer's Experience that abnormal conditions are brought and use
Processing mode of the family to the application.
Optionally, the method may also include:
If the code loading frequency of abnormity of the page to be shown deletes the difference of caching more than or equal to preset times
File;
The relevant information of the code loading exception sent to the server, so that the server determines the page to be shown
Code loading abnormal cause.
In the method, in the case where the code loading frequency of abnormity of the page to be shown is more than or equal to preset times, delete
Except the differential file of caching, the memory space of the differential file occupied terminal of mistake can be avoided, can also be avoided due to the difference
The display exception that file brings, so that improve Consumer's Experience;The related letter of the code loading exception for sending to the server simultaneously
Breath, can cause server selection abnormal cause, provide then accurate differential file, five application page be effectively ensured and just shows
Often, it is ensured that the normal use of application, Consumer's Experience is improved.
Optionally, the method may also include:
Store the code of the page to be shown.
Specifically, can be to show to wait in the code from the generation page to be shown, view rendering, the page in the method
Cheng Zhong, the code of the page to be shown is stored, to ensure the normal display of the page.For example, the page to be shown
Code for example can be stored with the file of JSBundle suffix names.
Optionally, the method may also include:
After the page shows and terminates, the code of the page to be shown of storage is deleted.
Specifically, as the data flow of the code of the page to be shown is generally very big, thus, show in the page and terminate,
After namely view is removed, the code of the to be shown page of storage is deleted from screen, to reduce the disk shared by the application
Space, improves the utilization rate of the disk of terminal.
The present invention also provides a kind of page information processing apparatus of application.A kind of page of application that Fig. 4 is provided for the present invention
The structural representation of surface information processing meanss.The page information processing apparatus of the application can be by way of software and/or hardware
Integrated in the terminal.As shown in figure 4, the page information processing apparatus 400 of the application may include:
Network management module 401, obtains request for sending the differential file of the page to be shown to server;The difference text
Part obtains request to be included:The mark of the page to be shown;Receive the differential file of the page to be shown that the server sends;Should
Differential file includes:The service code of the page to be shown;
Caching management module 402, for caching to the differential file;The variance codes are used for reference to default public
The code of the file acquisition page to be shown;The public documents include:The infrastructure component of the page to be shown.
Optionally, caching management module 402, are additionally operable to send the difference text in network management module 401 to the server
Whether before part obtains request, according to the mark of the page to be shown, determining in cache file includes the differential file.
It should be noted that caching management module 402, the additions and deletions for also carrying out cache file change and the function such as look into.
For example, caching management module 402 for example can be realized by following code:
Optionally, network management module 401, if specifically for not including the differential file in this cache file, directly
The differential file is sent to the server and obtains request.
Optionally, network management module 401, if specifically for this cache file include the differential file, according to pre-
The fileversion number of the page to be shown for first obtaining, determine the differential file that cached be whether the page to be shown most
New file;If the differential file for having cached latest document not for the page to be shown, sends the difference to the server
File acquisition is asked.
For example, the network management module 401 for example can be realized by following code:
Optionally, network management module 401, are additionally operable to the differential file to receiving and are decompressed and verified, be somebody's turn to do
The service code of the page to be shown.
Optionally, the differential file also includes:The entry-into-force time of the differential file;
Optionally, network management module 401 is additionally operable to determine whether the entry-into-force time of the differential file meets.
The page information processing apparatus 400 of the application also include:
Load-on module 403, in the case of meeting in the entry-into-force time, enters according to the public documents and the differential file
Row encapsulation, obtains the code of the page to be shown.
Optionally, load-on module 403, for loading the code of the page to be shown, the page for obtaining the page to be shown shows
Registration evidence;Carried out after view rendering according to the page display data, carry out the page and show.
Optionally, the page information processing apparatus 400 of the application also include:
Exception processing module 404, if the appearance code loading for the page to be shown is abnormal, shows abnormal prompt page
Face.
Optionally, exception processing module 404, if the code loading frequency of abnormity for being additionally operable to the page to be shown is more than or waits
In preset times, then delete the differential file of caching;The abnormal relevant information of the code loading is sent to the server, so that
Obtain the code loading abnormal cause that the server determines the page to be shown.
Optionally, exception processing module 404, if the appearance code loading for being additionally operable to the page to be shown is abnormal, release should
The control of the navigation button, so that, under current page abnormal conditions, user can flexibly return previous page.
Optionally, exception processing module 404, are additionally operable to, in the case where current network state is bad, show Network Abnormal
Information.
For example, exception processing module 404 for example can be realized by following code:
/**
* carrier page demons
*/
-(void)carrierDeamon;
/**
* weak net and without net when retry
*/
-(void)weakNetworkRetry;
Optionally, load-on module 403, are additionally operable to the code for storing the page to be shown.
Optionally, the page information processing apparatus 400 of the application also include:
Life cycle module 405, for after the page shows and terminates, that is, in view Destruction, deletes storage
The page to be shown code.
Optionally, life cycle module 405, is additionally operable to after the completion of application is loaded into, is adding exception-triggered event and prison
Event is listened, was additionally operable to before the view of five application page shows, be that navigation return push-button adds the response time;It is additionally operable in view
After having rendered, default navigation pattern is set and forbids that gesture returns operation;It is additionally operable to show process in view, recovers existing
Navigation pattern and recovery gesture return operation;It is additionally operable to, after view shows, that is, after removing from screen, cancel before this
Monitoring event, reply house dog strategy initial value.
The page information processing apparatus of the application that the present invention is provided, can perform the page info of any of the above-described described application
Processing method, its advantage are similar to the above embodiments, will not be described here.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can be led to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer and can obtain in storage medium.The journey
Sequence upon execution, executes the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, rather than a limitation;To the greatest extent
Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (20)
1. the page info processing method of a kind of application, it is characterised in that include:
The differential file that the page to be shown is sent to server obtains request;The differential file obtains request to be included:Described treat
Show the mark of the page;
Receive the differential file of the page described to be shown that the server sends;The differential file includes:Described to be shown
The service code of the page;
The differential file is cached;The variance codes are used for combining the default public documents acquisition page to be shown
The code in face;The public documents include:The infrastructure component of the page to be shown.
2. method according to claim 1, it is characterised in that the differential file for sending the page to be shown to server
Before obtaining request, methods described also includes:
Whether according to the mark of the page to be shown, determining in cache file includes the differential file.
3. method according to claim 2, it is characterised in that the differential file for sending the page to be shown to server
Request is obtained, including:
If not including the differential file in the cache file, directly the differential file is sent to the server and obtained
Request.
4. method according to claim 2, it is characterised in that the differential file for sending the page to be shown to server
Request is obtained, including:
If the cache file includes the differential file, according to the FileVersion of the page described to be shown for obtaining in advance
Number, determine that whether the differential file that cached is the latest document of the page to be shown;
If the differential file for having cached latest document not for the page to be shown, send to the server described
Differential file obtains request.
5. the method according to any one of claim 1-4, it is characterised in that the differential file also includes:The difference
The entry-into-force time of different article part;Methods described also includes:
In the case where the entry-into-force time meets, it is packaged according to the public documents and the differential file, obtains institute
State the code of the page to be shown.
6. method according to claim 5, it is characterised in that methods described also includes:
The code of the page to be shown is loaded, the page display data of the page to be shown is obtained;
Carried out after view rendering according to the page display data, carry out the page and show.
7. method according to claim 6, it is characterised in that methods described also includes:
If the appearance code loading of the page to be shown is abnormal, show the abnormal prompt page.
8. method according to claim 7, it is characterised in that methods described also includes:
If the code loading frequency of abnormity of the page to be shown deletes the difference of caching more than or equal to preset times
File;
The abnormal relevant information of code loading is sent to the server so that the server determine described to be shown
The code loading abnormal cause of the page.
9. method according to claim 5, it is characterised in that methods described also includes:
Store the code of the page to be shown.
10. method according to claim 9, it is characterised in that methods described also includes:
After the page shows and terminates, the code of the page described to be shown of storage is deleted.
11. a kind of page information processing apparatus of application, it is characterised in that include:
Network management module, obtains request for sending the differential file of the page to be shown to server;The differential file is obtained
Taking request includes:The mark of the page to be shown;Receive the differential file of the page described to be shown that the server sends;
The differential file includes:The service code of the page to be shown;
Caching management module, for caching to the differential file;The variance codes are used for combining default public text
Part obtains the code of the page to be shown;The public documents include:The infrastructure component of the page to be shown.
12. devices according to claim 11, it is characterised in that
The caching management module, is additionally operable to send the differential file acquisition in the network management module to the server
Whether before request, according to the mark of the page to be shown, determining in cache file includes the differential file.
13. devices according to claim 12, it is characterised in that
The network management module, if specifically for not including the differential file in the cache file, directly to described
Server sends the differential file and obtains request.
14. devices according to claim 12, it is characterised in that
The network management module, if including the differential file specifically for the cache file, according to acquisition in advance
The page described to be shown fileversion number, determine the differential file that cached be whether the page to be shown most
New file;If the differential file for having cached latest document not for the page to be shown, sends to the server
The differential file obtains request.
15. devices according to any one of claim 11-14, it is characterised in that the differential file also includes:Described
The entry-into-force time of differential file;Described device also includes:
Load-on module, in the case of meeting in the entry-into-force time, enters according to the public documents and the differential file
Row encapsulation, obtains the code of the page to be shown.
16. devices according to claim 15, it is characterised in that
The load-on module, is additionally operable to the code for loading the page to be shown, obtains the page display data of the page to be shown;
Carried out after view rendering according to the page display data, carry out the page and show.
17. devices according to claim 16, it is characterised in that described device also includes:
Exception processing module, if the appearance code loading for the page to be shown is abnormal, shows the abnormal prompt page.
18. devices according to claim 17, it is characterised in that described device also includes:
The exception processing module, if be additionally operable to the code loading frequency of abnormity of the page to be shown more than or equal to default time
Number, then delete the differential file of caching;The abnormal relevant information of the code loading is sent to the server, so that
The server determines the code loading abnormal cause of the page to be shown.
19. devices according to claim 15, it is characterised in that
The load-on module, is additionally operable to the code for storing the page to be shown.
20. devices according to claim 19, it is characterised in that described device also includes:
Life cycle module, for, after the page shows and terminates, deleting the code of the page described to be shown of storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610848748.6A CN106502646A (en) | 2016-09-23 | 2016-09-23 | The page info processing method and processing device of application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610848748.6A CN106502646A (en) | 2016-09-23 | 2016-09-23 | The page info processing method and processing device of application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106502646A true CN106502646A (en) | 2017-03-15 |
Family
ID=58291096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610848748.6A Pending CN106502646A (en) | 2016-09-23 | 2016-09-23 | The page info processing method and processing device of application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502646A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933694A (en) * | 2017-03-29 | 2017-07-07 | 武汉斗鱼网络科技有限公司 | Application error localization method and device |
CN107515924A (en) * | 2017-08-24 | 2017-12-26 | 南京农纷期电子商务有限公司 | A kind of page info collection method based on react native |
CN108958730A (en) * | 2017-08-23 | 2018-12-07 | 北京五八信息技术有限公司 | Application component sharing method and device, terminal device and readable storage medium storing program for executing |
CN109240842A (en) * | 2018-08-03 | 2019-01-18 | 五八有限公司 | Processing method, device, computer equipment and the readable storage medium storing program for executing of the abnormal page |
CN109343994A (en) * | 2018-10-09 | 2019-02-15 | 五八有限公司 | Self checking method, device, computer equipment and the readable storage medium storing program for executing of functional unit |
CN109408750A (en) * | 2018-09-26 | 2019-03-01 | 中国平安财产保险股份有限公司 | Page display method, device, computer equipment and storage medium |
CN109462632A (en) * | 2018-09-07 | 2019-03-12 | 平安科技(深圳)有限公司 | Method for page jump, device, computer equipment and computer readable storage medium |
CN109814960A (en) * | 2018-12-21 | 2019-05-28 | 北京城市网邻信息技术有限公司 | A kind of page returning method, device, electronic equipment and storage medium |
CN110263275A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海桔子信息技术有限公司 | A kind of method, apparatus, mobile terminal and storage medium accessing webpage |
CN110764905A (en) * | 2019-09-24 | 2020-02-07 | Oppo广东移动通信有限公司 | Network model generation method and device, computer equipment and storage medium |
CN111176765A (en) * | 2019-12-13 | 2020-05-19 | 深圳市麦谷科技有限公司 | Display method and system based on view container assembly and packaging method |
CN112153064A (en) * | 2020-09-28 | 2020-12-29 | 上海缓存命中科技有限公司 | Application store and method of use thereof |
CN113849248A (en) * | 2021-09-28 | 2021-12-28 | 北京京东振世信息技术有限公司 | Applet loading method, apparatus, storage medium and program product |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478429A (en) * | 2009-02-10 | 2009-07-08 | 杭州华三通信技术有限公司 | Method, system and equipment for version upgrade |
CN101815087A (en) * | 2010-02-10 | 2010-08-25 | 北京播思软件技术有限公司 | Method for caching information of mobile communication terminal |
CN102193793A (en) * | 2010-03-02 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Method and device for realizing software reusability |
CN102750406A (en) * | 2012-06-06 | 2012-10-24 | 中国电力科学研究院 | Multi-version management method for model set and difference model-based power grid model |
CN103001963A (en) * | 2011-12-05 | 2013-03-27 | 微软公司 | Minimal download and simulation page navigation characteristic |
CN103237062A (en) * | 2013-04-10 | 2013-08-07 | 何钦淋 | File management system and file management method |
CN103593466A (en) * | 2013-11-26 | 2014-02-19 | 优视科技有限公司 | Webpage loading method, client side and server |
CN103678330A (en) * | 2012-09-04 | 2014-03-26 | 北京新岸线移动多媒体技术有限公司 | Method, system and device for loading webpage data |
CN104765622A (en) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Page resource loading method and device |
CN104915201A (en) * | 2015-05-29 | 2015-09-16 | 北京奇艺世纪科技有限公司 | Interface generating method and device |
-
2016
- 2016-09-23 CN CN201610848748.6A patent/CN106502646A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478429A (en) * | 2009-02-10 | 2009-07-08 | 杭州华三通信技术有限公司 | Method, system and equipment for version upgrade |
CN101815087A (en) * | 2010-02-10 | 2010-08-25 | 北京播思软件技术有限公司 | Method for caching information of mobile communication terminal |
CN102193793A (en) * | 2010-03-02 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Method and device for realizing software reusability |
CN103001963A (en) * | 2011-12-05 | 2013-03-27 | 微软公司 | Minimal download and simulation page navigation characteristic |
CN102750406A (en) * | 2012-06-06 | 2012-10-24 | 中国电力科学研究院 | Multi-version management method for model set and difference model-based power grid model |
CN103678330A (en) * | 2012-09-04 | 2014-03-26 | 北京新岸线移动多媒体技术有限公司 | Method, system and device for loading webpage data |
CN103237062A (en) * | 2013-04-10 | 2013-08-07 | 何钦淋 | File management system and file management method |
CN103593466A (en) * | 2013-11-26 | 2014-02-19 | 优视科技有限公司 | Webpage loading method, client side and server |
CN104765622A (en) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Page resource loading method and device |
CN104915201A (en) * | 2015-05-29 | 2015-09-16 | 北京奇艺世纪科技有限公司 | Interface generating method and device |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933694B (en) * | 2017-03-29 | 2019-12-03 | 武汉斗鱼网络科技有限公司 | Application error localization method and device |
CN106933694A (en) * | 2017-03-29 | 2017-07-07 | 武汉斗鱼网络科技有限公司 | Application error localization method and device |
CN108958730A (en) * | 2017-08-23 | 2018-12-07 | 北京五八信息技术有限公司 | Application component sharing method and device, terminal device and readable storage medium storing program for executing |
CN107515924A (en) * | 2017-08-24 | 2017-12-26 | 南京农纷期电子商务有限公司 | A kind of page info collection method based on react native |
CN109240842A (en) * | 2018-08-03 | 2019-01-18 | 五八有限公司 | Processing method, device, computer equipment and the readable storage medium storing program for executing of the abnormal page |
CN109462632A (en) * | 2018-09-07 | 2019-03-12 | 平安科技(深圳)有限公司 | Method for page jump, device, computer equipment and computer readable storage medium |
CN109408750A (en) * | 2018-09-26 | 2019-03-01 | 中国平安财产保险股份有限公司 | Page display method, device, computer equipment and storage medium |
CN109343994A (en) * | 2018-10-09 | 2019-02-15 | 五八有限公司 | Self checking method, device, computer equipment and the readable storage medium storing program for executing of functional unit |
CN109814960A (en) * | 2018-12-21 | 2019-05-28 | 北京城市网邻信息技术有限公司 | A kind of page returning method, device, electronic equipment and storage medium |
CN110263275A (en) * | 2019-06-14 | 2019-09-20 | 深圳前海桔子信息技术有限公司 | A kind of method, apparatus, mobile terminal and storage medium accessing webpage |
CN110764905A (en) * | 2019-09-24 | 2020-02-07 | Oppo广东移动通信有限公司 | Network model generation method and device, computer equipment and storage medium |
CN111176765A (en) * | 2019-12-13 | 2020-05-19 | 深圳市麦谷科技有限公司 | Display method and system based on view container assembly and packaging method |
CN112153064A (en) * | 2020-09-28 | 2020-12-29 | 上海缓存命中科技有限公司 | Application store and method of use thereof |
CN112153064B (en) * | 2020-09-28 | 2022-11-22 | 上海缓存命中科技有限公司 | Application store and use method thereof |
CN113849248A (en) * | 2021-09-28 | 2021-12-28 | 北京京东振世信息技术有限公司 | Applet loading method, apparatus, storage medium and program product |
CN113849248B (en) * | 2021-09-28 | 2023-09-26 | 北京京东振世信息技术有限公司 | Applet loading method, device, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502646A (en) | The page info processing method and processing device of application | |
CN102830984B (en) | Method, chip and the communication terminal that firmware updates | |
CN103744686B (en) | Control method and the system of installation is applied in intelligent terminal | |
US20110154305A1 (en) | System and method for remotely compiling multi-platform native applications for mobile devices | |
CN107741844B (en) | Method and device for generating application installation package | |
KR20160058673A (en) | Method and apparatus for preventing injection-type attacks in a web based operating system | |
CN104572043A (en) | Method and device for embedding points for controls of client application in real time | |
CN109194606B (en) | Attack detection system, method, computer device and storage medium | |
CN104866341A (en) | Component upgrading method and device and terminal | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
US20120227032A1 (en) | Method, apparatus, and system for invoking widget | |
CN108829477A (en) | Interface jump method, device, computer equipment and storage medium | |
CN107370804B (en) | Software application processing method and device | |
KR20110128632A (en) | Method and device for detecting malicious action of application program for smartphone | |
CN105843653A (en) | TA (trusted application) configuration method and device | |
CN111427596A (en) | Software upgrading method and device and terminal equipment | |
CN108762956A (en) | Obtain method, server, mobile terminal and the storage medium of Native local datas | |
CN105786636B (en) | A kind of system repair and device | |
CN104036194A (en) | Vulnerability detection method and device for revealing private data in application program | |
CN110321504A (en) | A kind of page processing method and device | |
CN111552463A (en) | Page jump method and device, computer equipment and storage medium | |
CN104036193B (en) | Local cross-domain vulnerability detection method and device for application program | |
CN110134410B (en) | Personalized information association method and device for cold-start user and storage medium | |
CN114116078A (en) | Application data processing method, device, equipment and medium based on micro front end | |
CN112965731A (en) | Method, device, equipment and storage medium for Flutter hot update based on Tinker |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |
|
RJ01 | Rejection of invention patent application after publication |