CN106155708B - A kind of method and system of dynamically load and update content of pages - Google Patents
A kind of method and system of dynamically load and update content of pages Download PDFInfo
- Publication number
- CN106155708B CN106155708B CN201510129389.4A CN201510129389A CN106155708B CN 106155708 B CN106155708 B CN 106155708B CN 201510129389 A CN201510129389 A CN 201510129389A CN 106155708 B CN106155708 B CN 106155708B
- Authority
- CN
- China
- Prior art keywords
- file
- content
- pages
- subpage frame
- page
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
A kind of dynamically load provided by the present invention and the method and system for updating content of pages, by the way that content of pages file is divided into main interface file, single page layout's file and location contents file according to scheduled layout in advance;After the instruction for receiving user's loading page content, single page layout's file of the page is selected to main interface file, user first and location contents file loads, then it is gradually loaded to the single page layout's file and location contents file of selecting page adjacent page with user, and whether the content of pages file completed at predetermined time intervals to load simultaneously has update to detect;If detecting, content of pages file has update, then the update file of content of pages file is loaded, gradually content of pages file is loaded to realize, dynamic updates the purpose of content of pages, the content of pages file selected due to main load interface file and user first, therefore the waiting time that can shorten user, it is convenient to provide to user's browsing pages.
Description
Technical field
The present invention relates to the information communications field more particularly to a kind of dynamically load and update content of pages method and
System.
Background technique
For comprising complex figure interface application, traditional multi-page shows the load of content, if it is once having loaded
At multi-page, then the load time is long, user needs to wait, and after having loaded completion multi-page, if the single page is again
There are update or certain page local content to have update, then needing long-time whole updating again.
Traditional multi-page shows the load of content, and if it is only load current page every time, user switches after the page again
Load new page.After being switched to new page, it is also desirable to wait the new page to be loaded, cause to wait for a long time, therefore give
The use of user brings inconvenience.
Therefore, the existing technology needs further improvement.
Summary of the invention
In view of the above shortcomings in the prior art, it is an object of the invention to for user provide a kind of dynamically load and
The method and system of content of pages are updated, to solve disposably to load multiple webpages in the prior art or when certain in multi-page
When a page locally has update, load or renewal time are longer, the defect for needing user to fall into a long wait.
In order to solve the above technical problems, the present invention program includes:
A kind of method of dynamically load and update content of pages, wherein include:
A, content of pages file is divided into main interface file, single page layout's file and unit according to scheduled layout in advance
Hold file;
B, the instruction of user's loading page content is received, the single page cloth of subpage frame is successively selected to main interface file, user
Office file and location contents file are loaded;
C, after the completion of the subpage frame load that user selectes, then putting in order according to subpage frame, selects user is arranged in
Single page layout's file of subpage frame and location contents file are gradually loaded before fixed subpage frame and/or after arrangement;
D, whether the content of pages file completed at predetermined time intervals to load has update to detect;If detecting the page
Content file has update, thens follow the steps E;
E, downloading updates file, according to the sequence of main interface file, single page layout's file and single page content file to the page
File in content file with more new content is loaded.
The dynamically load and the method for updating content of pages, wherein the step C further include:
Subpage frame whether is arranged with before C1, the subpage frame for selecting user to detect;If so, then executing C2, otherwise
Execute step C3;
C2, load is arranged in front the single page layout's file and location contents file of subpage frame, after the completion of load, executes step
C3;
C3 is detected to whether the subpage frame that user selectes is arranged with subpage frame later;If so, C4 is thened follow the steps,
If no, thening follow the steps C5;
C4, load are arranged in the single page layout's file and location contents file of rear subpage frame;And it whether there is later
Subpage frame is detected;If it exists, then the page layout file and content of pages file of subpage frame thereafter are gradually loaded;If not depositing
Thening follow the steps C5;
C5, it is detected to whether the subpage frame for loading completion in step C2 is arranged with subpage frame before, if being arranged with
Gradually load arranges the page layout file and content of pages file of subpage frame before it;Otherwise load terminates.
The dynamically load and the method for updating content of pages, wherein the step D further include:
D1, the renewal time for obtaining content of pages file on network, and by its with local page content file it is newest more
The new time is compared, and is later than the renewal time of content of pages file on network when the content of pages file last updated time
When, then download the update file of the content of pages file on network.
The dynamically load and the method for updating content of pages, wherein the step D further include:
D2, it is successively detected to whether main interface file, single page layout's file and location contents file are updated, In
Load skips the content of pages file being wherein updated when updating file.
The dynamically load and the method for updating content of pages, which is characterized in that the step C further include:
C6, when detecting that user loads the instruction of specified subpage frame, then detect single page layout's text of the specified subpage frame
Whether part and location contents file have loaded completion, if not loading completion, preferentially load the specified subpage frame;If having loaded
At then directly skipping the loading procedure of the specified subpage frame.
A kind of system of dynamically load and update content of pages, wherein include: content of pages document definition module, first
Loading module, the second loading module update detection module and update loading module;
The content of pages document definition module, in advance by content of pages file according to it is scheduled layout be divided into main boundary
Face file, single page layout's file and location contents file;
First loading module, the instruction for receiving user's loading page content, successively to main interface file, user
The single page layout's file and location contents file of selected subpage frame are loaded;
After the completion of second loading module, the subpage frame load for selecting as user, then according to the arrangement of subpage frame
Sequentially, to be arranged in front of subpage frame that user selectes and/or after arrangement subpage frame single page layout's file and location contents
File is gradually loaded;
It is described update detection module, at predetermined time intervals to load complete content of pages file whether have update into
Row detection;
If the update loading module, for detecting that content of pages file has update, update file is downloaded, according to master
The sequence of interface file, single page layout's file and single page content file in content of pages file with more new content file into
Row load.
The dynamically load and the system for updating content of pages, wherein second loading module further include: preceding page inspection
Survey unit, preceding page loading unit, rear page detection unit, rear page loading unit and the preceding page gradually loading unit;
Subpage frame whether is arranged with before the preceding page detection unit, the subpage frame for selecting user to examine
It surveys;
The preceding page loading unit, for loading the single page layout's file and location contents text that are arranged in front subpage frame
Part;
Page detection unit after described, whether the subpage frame for selecting to user, which is arranged with subpage frame before, is examined
It surveys;
It is described after the page gradually loading unit, for loading the single page layout's file and location contents that are arranged in rear subpage frame
File;And it is detected to whether there is subpage frame after it;If so, then gradually loading the page layout file of subpage frame thereafter
With content of pages file;
The preceding page gradually loading unit, for before the subpage frame for loading completion in preceding page loading unit whether
It is arranged with subpage frame to be detected, if so, then gradually load arranges in the page layout file and the page of subpage frame before it
Hold file;Otherwise load terminates.
The dynamically load and the system for updating content of pages, wherein the update detection module includes: to update under detection
Carrier unit;
The update detects download unit, for obtaining the renewal time of content of pages file on network, and by it and originally
The latest update time of ground content of pages file is compared, and is later than page on network when the content of pages file last updated time
When the renewal time of face content file, then the update file of the content of pages file on network is downloaded.
The dynamically load and the system for updating content of pages, wherein the update detection module includes: to update file to add
Carrier unit;
The update file loading unit, for successively to main interface file, single page layout's file and location contents file
Whether it is updated and is detected, skips the content of pages file being wherein updated when load updates file.
The dynamically load and the system for updating content of pages, wherein second loading module further include: specified page
Loading unit;
The specified page loading unit, for when detecting that user loads the instruction of specified subpage frame, then detection should
Whether the single page layout's file and location contents file of specified subpage frame have loaded completion, preferential to add if not loading completion
Carry the specified page;If load is completed, the loading procedure of the specified page is directly skipped.
Beneficial effect, a kind of method and system of dynamically load and update content of pages provided by the present invention, by pre-
Content of pages file is first divided into main interface file, single page layout's file and location contents file according to scheduled layout;It receives
After the instruction of user's loading page content, the single page layout's file and list of the page are successively selected to main interface file, user first
First content file is loaded, then to the single page layout's file and location contents file for selecting page adjacent page with user
It is gradually loaded, and whether the content of pages file completed at predetermined time intervals to load simultaneously has update to detect;If
Detect that content of pages file has update, then the update file of content of pages file loaded, thus realize it is gradually right
Content of pages file is loaded, and dynamic updates the purpose of content of pages, since main load interface file and user are selected first
Content of pages file, therefore the waiting time of user can be shortened, it is convenient to provide to user's browsing pages.
Detailed description of the invention
Fig. 1 is a kind of dynamically load provided by the invention and the method and step flow chart for updating content of pages.
Fig. 2 is the content of pages display schematic diagram after being defined in Fig. 1 to content of pages file.
Fig. 3 is the content of pages loading sequence flow chart in Fig. 1.
Fig. 4 is the flow chart that load in Fig. 1 closes on content of pages file.
Fig. 5 is a kind of dynamically load provided by the invention and the system principle structural schematic diagram for updating content of pages.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and do not have to
It is of the invention in limiting.
The present invention provides a kind of methods of dynamically load and update content of pages, as shown in Figure 1, the method includes one
Lower step:
S1, in advance by content of pages file according to it is scheduled layout be divided into main interface file, single page layout's file and unit
Content file.
In order to gradually be loaded according to the level difference of content of pages file distribution to content file, it is necessary first to right
Content of pages file is defined, distinguish which belong to main interface file, which belong to page layout file and which belong to
In location contents file, so as to successively be loaded to file according to the difference of page interface layout.
As shown in Fig. 2, after to be defined in this step to content of pages file, in the main interface text that the page is shown
The location contents file of part, single page layout's file and its single page, specifically, being with 5 pages in schematic diagram shown in Fig. 2
It is illustrated for face, is that the graphical interfaces application software has 5 subpage frames, the label of subpage frame is respectively as follows: video display, religion
Educate, game, application and prefecture, be shown for the main interface, and under the main interface containing video display, education, game, using and
This 5 different subpage frames of prefecture, and all contain different location contents on this 5 different subpage frames, and the list
First content is presented according to location contents file.
Main interface file: description main interface contains 5 subpage frames, the title of each subpage frame, ID, renewal time altogether
Deng.
Set the filename of the main interface file are as follows: main.xml.The main interface file includes the following contents:
<main>
<id>010</id>
<time>201501151005</time>
<page>
<name>video display</name>
<id>110</id>
<time>201501151005</time>
</page>
<page>
<name>education</name>
<id>111</id>
<time>201501151005</time>
</page>
…
</main>
It can be seen that the name that the main interface file in examples detailed above includes: the subpage frame that ID number is 010 from above-mentioned code
Claim: video display, renewal time: 201501151005, the title including the subpage frame that ID number is 110: education, renewal time:
201501151005 etc. information.
Single page layout's file: the location layout information of all location contents of the single page is described.
Set the filename of single page layout's file are as follows: page110.xml, which includes the following contents:
<page>
<name>video display</name>
<id>110</id>
<time>201501151005</time>
< layout>
<absolutelayout >
<node>
<id>210</id>
<time>201501151005</time>
<x>0</x>
<y>0</y>
<w>90</w>
<h>90</h>
</node>
<node>
<id>211</id>
<time>201501151005</time>
<x>100</x>
<y>0</y>
<w>90</w>
<h>90</h>
</node>
...
</absolutelayout>
</layout>
</page>
From above-mentioned code can be seen that in said units topology file include the unit in title, the single page ID, should
The coordinate information of the renewal time of single page, the single page content.
Location contents file: the display content and ancillary data of unit are described.Because there are many unit, according to the page point
Group storage, each page have a corresponding location contents file.
Set the filename of the location contents file are as follows: nodes010.xml, which includes the following contents:
<nodes>
<node>
<id>210</id>
<time>201501151005</time>
<type>poster</type>
<img1>http://www.tcl.com/1.png</img1>
<img2>http://www.tcl.com/2.png </img2>
<name>my poster<name>
</node>
<node>
…
</node>
…
</nodes>
Can be seen that from the code instance of said units content file includes describing showing for the unit in location contents file
Show content and ancillary data, the ancillary data includes: the ID of sub- single page described in the location contents file, the location contents file
Renewal time and the title of the location contents file etc., it is described to be deposited according to banking since there are many location contents
It puts, each page has a corresponding location contents file.
S2, the instruction for receiving user's loading page content successively select the single page cloth of subpage frame to main interface file, user
Office file and location contents file are loaded.
In the specific implementation process, when user is by double-clicking the icon of graphical interfaces application software or by figure circle
After described image interface application is opened in selection in the actions menu of face application software, graphical interfaces application receives user's loaded page
The instruction of face content first loads main interface file, shows the content of the graphical interfaces application main interface, then exists
Single page layout's file that user selectes subpage frame is loaded, the corresponding list of single page layout's file of subpage frame is then selected to user
First content file is loaded, and so as to allow user to browse to the main interface of the website first, avoiding disposable load should
After the full content file of website and webpage, web site contents are just shown, the defect fallen into a long wait is brought to user.
S3, after the completion of the load of the page that user selectes, then putting in order according to single page layout's file, to being arranged in it
Before or after the page single page layout's file and location contents file gradually loaded.
After the completion of the content of pages file of user's specified page has loaded, then it can start the content to other pages
File is loaded.Specifically, when the system is idle, then the content of pages file for illustrating that user specifies has loaded completion, it can
With using the parameter that system is run as reference, such as: when detecting current display frame rate>25, and occupancy<70% of CPU, then
Illustrate that system is in idle condition, the content of pages file load of user's specified page adjacent page can be carried out at this time.Here
The adjacent page can define in specific data structure, define its load and judge serial number, and judged according to the serial number
Whether the page is adjacent page.For example, the application, prefecture subpage frame in Fig. 2 can be the adjacent page of game subpage frame.
In order to preferably be loaded to its adjacent page content file, specifically, in the step S3 further include:
Subpage frame whether is arranged with before S31, the subpage frame for selecting user to detect;If so, S32 is then executed, it is no
Then follow the steps S33;
S32, load are arranged in front the single page layout's file and location contents file of subpage frame, after the completion of load, execute step
Rapid S33;
S33 is detected to whether the subpage frame that user selectes is arranged with subpage frame later;If so, thening follow the steps
S34, it is no to then follow the steps S35;
S34, load are arranged in the single page layout's file and location contents file of rear subpage frame;And it whether there is later
Subpage frame is detected;If so, then gradually loading the page layout file and content of pages file of the page thereafter;If it does not exist,
Then follow the steps S35;
S35, the page before the page for loading completion in step S32 whether there is and detect, if it exists then gradually
Load the page layout file and content of pages file of its preceding page;Then load terminates if it does not exist.
Above method step S31-S35, process are first to user instruction page adjacent page with the presence or absence of progress
Detection is then loaded when detecting page presence, if it does not exist, then enters the content of pages file for detecting the presence of the page
Load, process is before first detecting, then after detecting, when all pages before user's specified page have loaded
At the page loads completion later, then this load terminates.
Whether S4, the content of pages file completed at predetermined time intervals to load have update to detect;If detecting page
Face content file has update;Then follow the steps S5.
It is that first whether detection content of pages file has update first in order to be loaded faster to update file.
In a particular embodiment, if there is update file, update file is downloaded, therefore in this step further includes following step
It is rapid:
S41, the renewal time for obtaining content of pages file on network, and by its with local page content file it is newest more
The new time is compared, and is later than the renewal time of content of pages file on network when the content of pages file last updated time
When, then download the update file of the content of pages file on network.
S42, it is successively detected to whether main interface file, single page layout's file and location contents file are updated,
The content of pages file being wherein updated is skipped when load updates file.
Specifically, if above-mentioned three kinds of page files are updated based on internet, regular check main interface file
Update.It inquires the server main interface file latest update time, can know whether there is update according to local file renewal time.
If there is main interface file has update, then downloading needs new main interface file.New master page file is parsed, which is checked
Page layout file has update, downloads updated single page layout's file and content file.After the completion of all update file downloads,
Start page loading procedure.In page loading procedure, if this subpage frame or location contents had loaded latest edition, that
It is no longer loaded, directly skips progress in next step.So new loading procedure, can only load the page and the update of update
Content element.
S5, downloading update file, according to the sequence of main interface file, single page layout's file and single page content file to the page
File in content file with more new content is loaded.
If having detected update file in step s 4, the content of pages file with update file is updated,
Otherwise the content of pages file for not needing to update is skipped, avoids again loading it, is increased to the completion for updating file
The unnecessary waiting time.
Since during user's browsing pages, user may will do it page turning, therefore also wrap in the step S3
It includes:
S36, when detecting that user loads the instruction of specified subpage frame, then detect single page layout's text of the specified subpage frame
Whether part and location contents file have loaded completion, if not loading completion, preferentially load the specified page;If having loaded
At the then loading procedure of the direct skip load specified page.
Specifically, as shown in figure 3, being the loading sequence flow chart of step S2 and step S3:
K1, when receive user sending load instruction after, enter step K2;
K2, main load interface file and user select the page layout file and location contents file of subpage frame;
K3, whether detection system is idle, when detecting the system free time, thens follow the steps K4, whether empty otherwise carries out system
Not busy detection;
K4, load close on the page layout file and location contents file of subpage frame, when whole subpage frames all load completion,
Then enter k5, load terminates.
Specifically, after it is first the topology file that user specifies subpage frame is completed in load, then start to load the subpage frame
Content file, and gradually carry out load complete subpage frame before subpage frame and later the content of pages file of subpage frame add
It carries, as shown in figure 4, after completing the specified subpage frame of user for load, to the content of pages file of subpage frame before and after it
The specific embodiment flow chart loaded.
H1, start to load the adjacent subpage frame that user specifies subpage frame.
If H2, N are the number of putting in order of current subpage frame, another J=1 judges that the subpage frame of serial number N-J whether there is,
It is that the judgement prevpage adjacent with current subpage frame (user specifies subpage frame) whether there is, and if it exists, H3 is thened follow the steps,
It is no to then follow the steps H4;
H3, the subpage frame for loading serial number N-J, including its topology file and content file after the completion of load, execute step
H4;
H4, judge that the subpage frame of serial number N+J whether there is, be judgement and current subpage frame (user's specified page) phase
Adjacent the next page whether there is, and if it exists, H5 is thened follow the steps, it is no to then follow the steps H6;
H5, the page for loading serial number N+J, including its topology file and content file after the completion of load, execute step
H6;
H6, load judge that the subpage frame of serial number N-J-1 whether there is, and are to judge that (user is specified with current subpage frame
The page) prevpage of adjacent prevpage whether there is, and circuit sequentially, judge that the subpage frame of N+J+1 whether there is, if detection
Exist to subpage frame, then loads, otherwise detecting gradually other adjacent pages whether there is;
H7, when detecting that N-J subpage frame and N+J subpage frame (J=J+1 at this time) be not present, then this load terminates.
The method of the invention carries out successively content of pages file by the loading sequence of above-mentioned content of pages file
Load, gradually loads each file to realize, reduces the purpose of period of reservation of number.
Based on the above method, the present invention also provides the systems of a kind of dynamically load and update content of pages, such as
Shown in Fig. 5, the system comprises: content of pages document definition module 110, the first loading module 120, the second loading module 130,
It updates detection module 140 and updates loading module 150;
The content of pages document definition module 110, in advance by content of pages file according to it is scheduled layout be divided into
Main interface file, single page layout's file and location contents file;
First loading module 120, the instruction for receiving user's loading page content, successively to main interface file,
User selectes single page layout's file of subpage frame and location contents file loads;
After the completion of second loading module 130, the subpage frame load for selecting as user, then according to the row of subpage frame
Column sequence, to being arranged in front of subpage frame that user selectes and/or after arrangement in the single page layout's file and unit of subpage frame
Hold file gradually to be loaded;
It is described to update detection module 140, for whether having more to the content of pages file of load completion at predetermined time intervals
Newly detected;
If the update loading module 150, for detecting that content of pages file has update, update file is downloaded, is pressed
The sequence of license-master's interface file, single page layout's file and single page content file is to the text in content of pages file with more new content
Part is loaded.
Second loading module further include: preceding page detection unit, preceding page loading unit, rear page detection unit,
Page loading unit and the preceding page gradually loading unit afterwards;
Subpage frame whether is arranged with before the preceding page detection unit, the subpage frame for selecting user to examine
It surveys;
The preceding page loading unit, for loading the single page layout's file and location contents text that are arranged in front subpage frame
Part;
Page detection unit after described, whether the subpage frame for selecting to user, which is arranged with subpage frame before, is examined
It surveys;
It is described after the page gradually loading unit, for loading the single page layout's file and location contents that are arranged in rear subpage frame
File;And it is detected to whether there is subpage frame after it;If so, then gradually loading the page layout file of subpage frame thereafter
With content of pages file;
The preceding page gradually loading unit, for before the subpage frame for loading completion in preceding page loading unit whether
It is arranged with subpage frame to be detected, if so, then gradually load arranges in the page layout file and the page of subpage frame before it
Hold file;Otherwise load terminates.
The update detection module includes: to update detection download unit;
The update detects download unit, for obtaining the renewal time of content of pages file on network, and by it and originally
The latest update time of ground content of pages file is compared, and is later than page on network when the content of pages file last updated time
When the renewal time of face content file, then the update file of the content of pages file on network is downloaded.
The update detection module includes: to update file loading unit;
The update file loading unit, for successively to main interface file, single page layout's file and location contents file
Whether it is updated and is detected, skips the content of pages file being wherein updated when load updates file.
Second loading module further include: specified page loading unit;
The specified page loading unit, for when detecting that user loads the instruction of specified subpage frame, then detection should
Whether the single page layout's file and location contents file of specified subpage frame have loaded completion, preferential to add if not loading completion
Carry the specified page;If load is completed, the loading procedure of the specified page is directly skipped.
A kind of dynamically load provided by the present invention and the method and system for updating content of pages, by advance will be in the page
Hold file and main interface file, single page layout's file and location contents file are divided into according to scheduled layout;Receive user's loaded page
After the instruction of face content, the single page layout's file and location contents file of the page are successively selected to main interface file, user first
It is loaded, then the single page layout's file and location contents file for selecting page adjacent page with user gradually add
It carries, and whether the content of pages file completed at predetermined time intervals to load simultaneously has update to detect;If detecting the page
Content file has update, then loads to the update file of content of pages file, to realize gradually to content of pages text
Part is loaded, and dynamic updates the purpose of content of pages, the content of pages selected due to main load interface file and user first
File, therefore the waiting time of user can be shortened, it is convenient to provide to user's browsing pages.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills
Bright design is subject to equivalent substitution or change, and all these changes or replacement all should belong to the guarantor of appended claims of the invention
Protect range.
Claims (8)
1. a kind of dynamically load and the method for updating content of pages characterized by comprising
A, content of pages file is divided into main interface file, single page layout's file and location contents text according to scheduled layout in advance
Part;
B, the instruction of user's loading page content is received, single page layout's text of subpage frame is successively selected to main interface file, user
Part and location contents file are loaded;
C, after the completion of the load of subpage frame that user selectes, then putting in order according to subpage frame, to being arranged in what user selected
Single page layout's file of subpage frame and location contents file are gradually loaded before subpage frame and/or after arrangement;
D, whether the content of pages file completed at predetermined time intervals to load has update to detect;If detecting content of pages
File has update, thens follow the steps E;
E, downloading updates file, according to the sequence of main interface file, single page layout's file and single page content file to content of pages
File in file with more new content is loaded;
The step C includes:
When detecting that user loads the instruction of specified subpage frame, then the single page layout's file and unit of the specified subpage frame are detected
Whether content file has loaded completion, if not loading completion, preferentially loads the specified subpage frame;If load is completed, directly
Connect the loading procedure for skipping the specified subpage frame.
2. the method for dynamically load and update content of pages according to claim 1, which is characterized in that the step C is also wrapped
It includes:
Subpage frame whether is arranged with before C1, the subpage frame for selecting user to detect;If so, then executing C2, otherwise execute
Step C3;
C2, load is arranged in front the single page layout's file and location contents file of subpage frame, after the completion of load, executes step C3;
C3 is detected to whether the subpage frame that user selectes is arranged with subpage frame later;If so, C4 is thened follow the steps, if not having
Have, thens follow the steps C5;
C4, load are arranged in the single page layout's file and location contents file of rear subpage frame;And subpage whether there is later to it
It is detected in face;If it exists, then the page layout file and content of pages file of subpage frame thereafter are gradually loaded;If it does not exist,
Then follow the steps C5;
C5, it is detected to whether the subpage frame for loading completion in step C2 is arranged with subpage frame before, if being arranged with gradually
Load arranges the page layout file and content of pages file of subpage frame before it;Otherwise load terminates.
3. the method for dynamically load and update content of pages according to claim 1, which is characterized in that the step D is also wrapped
It includes:
D1, the renewal time for obtaining content of pages file on network, and when by its latest update with local page content file
Between be compared, when the content of pages file last updated time being later than the renewal time of content of pages file on network, then
Download the update file of the content of pages file on network.
4. the method for dynamically load and update content of pages according to claim 3, which is characterized in that the step D is also wrapped
It includes:
D2, it successively detects, is loading to whether main interface file, single page layout's file and location contents file are updated
The content of pages file being wherein updated is skipped when updating file.
5. a kind of dynamically load and the system for updating content of pages characterized by comprising content of pages document definition module,
First loading module, the second loading module update detection module and update loading module;
The content of pages document definition module, in advance by content of pages file according to it is scheduled layout be divided into main interface text
Part, single page layout's file and location contents file;
First loading module, the instruction for receiving user's loading page content, it is successively selected to main interface file, user
The single page layout's file and location contents file of subpage frame are loaded;
After the completion of second loading module, the subpage frame load for selecting as user, then putting in order according to subpage frame,
To be arranged in front of subpage frame that user selectes and/or after arrangement single page layout's file of subpage frame and location contents file into
Row gradually loads;
It is described to update detection module, for whether thering is update to examine the content of pages file of load completion at predetermined time intervals
It surveys;
If the update loading module, for detecting that content of pages file has update, update file is downloaded, according to main interface
The sequence of file, single page layout's file and single page content file adds the file in content of pages file with more new content
It carries;
Second loading module includes: specified page loading unit;
The specified page loading unit, for when detecting that user loads the instruction of specified subpage frame, then it is specified to detect this
Whether the single page layout's file and location contents file of subpage frame have loaded completion, if not loading completion, preferential load should
Specified page;If load is completed, the loading procedure of the specified page is directly skipped.
6. the system of dynamically load and update content of pages according to claim 5, which is characterized in that the second load mould
Block further include: preceding page detection unit, preceding page loading unit, rear page detection unit, rear page loading unit and the preceding page
Gradually loading unit;
Subpage frame whether is arranged with before the preceding page detection unit, the subpage frame for selecting user to detect;
The preceding page loading unit, for loading the single page layout's file and location contents file that are arranged in front subpage frame;
Page detection unit after described, whether the subpage frame for selecting to user, which is arranged with subpage frame later, is detected;
After described the page gradually loading unit, for load be arranged in rear subpage frame single page layout's file and location contents it is literary
Part;And it is detected to whether there is subpage frame after it;If so, then gradually load subpage frame thereafter page layout file and
Content of pages file;
The preceding page gradually loading unit, for whether being arranged before the subpage frame for loading completion in preceding page loading unit
There is subpage frame to be detected, if so, then gradually the page layout file of subpage frame and content of pages are literary before it for load arrangement
Part;Otherwise load terminates.
7. the system of dynamically load and update content of pages according to claim 5, which is characterized in that the update detects mould
Block includes: to update detection download unit;
The update detects download unit, for obtaining the renewal time of content of pages file on network, and by itself and native page
The latest update time of face content file is compared, and is later than on network in the page when the content of pages file last updated time
When holding the renewal time of file, then the update file of the content of pages file on network is downloaded.
8. the system of dynamically load and update content of pages according to claim 7, which is characterized in that the update detects mould
Block includes: to update file loading unit;
The update file loading unit, for successively to main interface file, single page layout's file and location contents file whether
It is updated and is detected, skip the content of pages file being wherein updated when load updates file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510129389.4A CN106155708B (en) | 2015-03-24 | 2015-03-24 | A kind of method and system of dynamically load and update content of pages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510129389.4A CN106155708B (en) | 2015-03-24 | 2015-03-24 | A kind of method and system of dynamically load and update content of pages |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106155708A CN106155708A (en) | 2016-11-23 |
CN106155708B true CN106155708B (en) | 2019-11-12 |
Family
ID=58063169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510129389.4A Active CN106155708B (en) | 2015-03-24 | 2015-03-24 | A kind of method and system of dynamically load and update content of pages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155708B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874035B (en) * | 2017-01-11 | 2020-06-30 | 深圳中顺易金融服务有限公司 | Method for updating application (app) built-in H5 and framework thereof |
CN106933640B (en) * | 2017-04-26 | 2020-12-25 | 携程旅游网络技术(上海)有限公司 | Method and system for loading Web page in browser of mobile terminal |
CN107391169A (en) * | 2017-06-09 | 2017-11-24 | 口碑控股有限公司 | The dynamic updating method and device of the Android page |
CN109408191A (en) * | 2018-11-06 | 2019-03-01 | 深圳乐信软件技术有限公司 | Method for updating pages, device, equipment and storage medium |
CN111580873B (en) * | 2020-04-01 | 2023-11-07 | 北京小米松果电子有限公司 | Page updating method and device, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023941A (en) * | 2011-09-26 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Terminal application program updating method and system based on Web page |
CN103488504A (en) * | 2013-09-12 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method and device for loading data |
CN104104707A (en) * | 2013-04-12 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Webpage data update method, terminal, cache server and system |
CN104166569A (en) * | 2014-08-15 | 2014-11-26 | 北京彩云动力教育科技有限公司 | Front-end page loading method and system |
-
2015
- 2015-03-24 CN CN201510129389.4A patent/CN106155708B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023941A (en) * | 2011-09-26 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Terminal application program updating method and system based on Web page |
CN104104707A (en) * | 2013-04-12 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Webpage data update method, terminal, cache server and system |
CN103488504A (en) * | 2013-09-12 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method and device for loading data |
CN104166569A (en) * | 2014-08-15 | 2014-11-26 | 北京彩云动力教育科技有限公司 | Front-end page loading method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106155708A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106155708B (en) | A kind of method and system of dynamically load and update content of pages | |
CN106685687B (en) | Gray scale dissemination method and device | |
CN105868096B (en) | For showing the method, device and equipment of web page test result in a browser | |
CN104166569A (en) | Front-end page loading method and system | |
KR20140028029A (en) | Presentation format for an application tile | |
CN103135879B (en) | Display packing, display device and electronic equipment | |
CN105635284B (en) | A kind of page display method and terminal | |
CN105183882A (en) | Application software recommending method and device | |
US20170316112A1 (en) | Intelligent searching method and system based on mobile device | |
CN109298900A (en) | A kind of application fractionation and on-demand loading method, apparatus | |
CN106371881A (en) | Method and system for updating program versions in servers | |
CN110321177A (en) | A kind of mobile application localization loading method, device and electronic equipment | |
CN103678343A (en) | Method and device for prompting webpage loading progress | |
CN102163197B (en) | A kind of skin change method, system and device | |
CN106603672A (en) | Data recommendation method, server and terminal | |
CN105828200A (en) | Program menu updating method and device | |
CN102508892B (en) | System and method for quickly previewing pictures | |
CN105589631B (en) | Information displaying method and device | |
CN105260421A (en) | Webpage loading method and apparatus | |
CN112148395A (en) | Page display method, device, equipment and storage medium | |
CN105224652A (en) | A kind of information recommendation method based on video and electronic equipment | |
CN103036992B (en) | A kind of data download method and device | |
CN109101429B (en) | Method and device for debugging browser page of set top box | |
CN103020245B (en) | For the method and apparatus of downloading data | |
CN105843751A (en) | Image display method and device as well as mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |