Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein identical from beginning to endOr similar label represents same or similar element or the element with same or like function.Retouched below with reference to accompanying drawingThe embodiment stated is exemplary, it is intended to for explaining the application, and it is not intended that limitation to the application.
The application provides a kind of control method of webpage representation stream, and the control process of the webpage representation stream can include:Receive clothesThe ID lists for showing block that business device is sent;Receive i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page;ConnectThe drop-down loading instruction of user is received, and the current page number is obtained according to drop-down loading instruction;Obtain to be added according to the page number and ID listsThe mark for showing block is carried, and the mark to be loaded for showing block is sent to server;And the reception server feedback is to be loadedShow the content-data of block and show in the page.The control method of the webpage representation stream can as an independent application,Such as webpage representation stream shows, or one show block loading procedure to realize the control process of above-mentioned webpage representation stream, i.e.,ID and the current page number according to block is showed obtain showing the mark of block, thus obtain show the corresponding content-data of block and by itsShowed in respective page.
Fig. 1 is the flow chart of the control method of the webpage representation stream according to the embodiment of the present application.
As shown in figure 1, the control method of the webpage representation stream includes:
S110, the ID lists for showing block that the reception server is sent, wherein, ID lists include the M marks for showing block,M is positive integer.In embodiments herein, because the ID for showing block is field, therefore network flow consumption is seldom,The flow of client will not be caused damage.
In one embodiment of the application, user by client carry out request content data first when or client enterWhen row updates, the ID lists that server can show all correlations block are sent to client.Wherein, transmitted by serverAlso include M in all ID lists for showing block and show block identification.The mark for showing block can be server followed by determinationThe corresponding content-data for showing block provides effective foundation, i.e. client and can obtained pair from server according to block identification is showedThat answers shows the content-data of block.For example, client is being loaded when block is showed, the mark to be loaded for showing block need to only be sent outGive server, server can determine to be loaded to show the corresponding content-data of block according to the mark to be loaded for showing block.
It is appreciated that showing the mark of block has uniqueness, show block available for unique mark is corresponding.
In another embodiment of the application, server, can also be by current time while transmission shows the ID lists of blockSent as timestamp to client.Wherein, timestamp is used for the field for marking the current request time.Because server can be rightThe content-data showed in block is updated, therefore is accomplished by recording current timestamp, in order to show block more afterDuring new, reference time stamp is updated, and rear extended meeting describes in detail.
For example, as shown in Fig. 2 server can show the ID lists of block to client transmission and each show the time of blockStamp.For example, referring to shown in Fig. 2, server shows block list (i.e. M=500) to client transmission ID for 1-500,And current time stamp t3, and homepage content.When client receives the ID lists for showing block of server transmission and correspondingTimestamp after, can save it in local, and homepage content-data is presented in the page of client, and record and work asThe preceding page number is 1.
It should be noted that client can be smart mobile phone in the application, PC, the equipment such as tablet personal computer.
S120, receives i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page, wherein, N by the page energy exhibitionThe existing quantity for showing block.
In one embodiment of the application, for request content data first, i-th0To i-thNThe individual content-data for showing blockCan be the homepage content-data of client, such as 1- the 5th shows block, wherein, N is five, is that can show in the pageMaximum shows number of blocks.In another embodiment of the application, during for more new content, i-th0To i-thNIt is individual to showThe content-data of block is determined according to the block that shows of the page up page.Shown in reference picture 2, due to being to ask first, therefore in pageShow homepage content-data, i.e. 1-5 in face and show block.
In another embodiment of the application, in addition it is also necessary to which show 1-M in the page shows block ID lists.
S130, receives the drop-down loading instruction of user, and obtain the current page number according to drop-down loading instruction.
The drop-down gesture that user is directed to the page is received, and according to drop-down gesture generation drop-down loading instruction, and obtain current pageThe current page number in face.
With continued reference to the example shown in Fig. 2, if homepage content-data, which is 1- the 5th, shows block, the current page number of the pageIt is just 1.
S140, the mark to be loaded for showing block is obtained according to the page number and ID lists, and by the mark to be loaded for showing block send toServer.
In embodiments herein, obtaining the mark to be loaded for showing block can be obtained by below equation, for example:[whenPreceding page number * N+1, (the current page number+1) * N], wherein, the quantity for showing block that N can show for the page.As described above,By the way that the mark to be loaded for showing block is sent to server, the corresponding content-data for showing block can be accurately determined, simplyEfficiently.
For example when user browses microblogging, when after the content-data for reading current page, it is necessary to when checking new content, can lead toThe displayed page for crossing drop-down client loads new content.Client is according to drop-down loading instruction according to user's current browse webpageThe page number and the content quantity that shows of the page carry out the mark that correlation computations obtain the content-data of lower one page, and will obtain downThe mark of one page of content data is sent to associated server and inquired about.Server is arranged according to the mark of these content-datas in IDThe content queue of corresponding content data is determined in table, and corresponding content-data snapshot is found out according to corresponding timestamp and is incited somebody to actionIt, which is packaged into, shows in block, returns to client.For example, as shown in Fig. 2 that showed due to homepage is 1-5Show the content-data of block, so as to show the mark formula of block and the page number of homepage by be loaded, can calculate and obtain nextThe mark for showing block of page, i.e. 6-10 show the mark of block, and the obtained mark for showing block are sent to serverShow block to inquire about corresponding block, the i.e. 6-10 of showing.
S150, the content-data to be loaded for showing block of the reception server feedback simultaneously shows in the page.As shown in figure 5, beingShow result in the page.
It is advanced after the content-data to be loaded for showing block that client the reception server is fed back in embodiments hereinRow is rendered, and the content-data after rendering is showed and the page number of the page is updated.
In one embodiment of the application, client receives the upper pulling process of user, and generates pull-up more new command.ClientEnd sends pull-up more new command to server, and the reception server feedback shows the new ID lists of block and new timestamp.Certainly after client is restarted, it is also desirable to which what the reception server was sent shows the new ID lists of block and new timestamp.With continued reference to shown in 2, further, corresponding show is inquired by the above-mentioned 6-10 marks for showing block in serverAfter block, the content-data for showing block is fed back into client, client is being showed after being rendered, and willCurrent page is updated to 2.
Above-mentioned each execution step can be performed by an executive agent or realized by different executive agents, shouldExecutive agent can refer to a program module, or One function module, can have different definition according to concrete scene.
In order that obtaining those skilled in the art is more apparent from the application, citing is illustrated, as shown in figure 3, shouldThe control method of webpage representation stream also includes:
S310, what the reception server was sent each shows the corresponding timestamp of block.
In one embodiment of the application, timestamp is the field for marking the current request time, can be uniquely identified a certainThe time at quarter, it is easy to, when loading more content-datas, find the snapshot for more suitably showing block.
S320, the block corresponding timestamp to be loaded that shows is sent to server so that server determined according to timestamp it is to be loadedShow the corresponding content-data of block.
In embodiments herein, client sends timestamp to server, and server selects corresponding according to timestampContent-data feeds back to client.
Specifically, as shown in figure 4, server determines that the block corresponding content-data to be loaded that shows specifically is wrapped according to timestampInclude:
S410, server according to timestamp judge it is to be loaded show whether block has renewal, for example, judging that this shows in the data of blockWhether appearance is updated after timestamp.
S420, if it is determined that there is renewal, then regard the data of block before timestamp to be loaded that show as content-data.Due toDo not receive the pull-up more new command of user at present, thus it is to be loaded show the corresponding timestamp of block or before server send,If the data content for now showing block is updated, the content for showing block will be not corresponding with other contents for showing block,Therefore judging that server is still by the data feedback before timestamp to client when having renewal.Therefore, the application is implementedExample is solved because displaying block updates the problem of producing.
S430, if it is determined that not updating, then regard the current data to be loaded for showing block as content-data.
The ID lists for showing block that the embodiment of the present application is sent by server, can be according to the current page number and the ID for showing blockList calculates the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing, improveShow the stability that shows of block, and reduce the phenomenon for even avoiding the loss for showing block or repetition.Additionally can be excellentChange the display performance for showing block in the page, lift user experience.
A kind of control system combination accompanying drawing of webpage representation stream of disclosure embodiment is specifically described below, referenceShown in Fig. 6.
Fig. 6 is the structural representation of the control system of the webpage representation stream according to the application.
As shown in fig. 6, the control system 100 of the webpage representation stream includes:Client 110 and server 120.
Wherein, client 110 is used for the ID lists for showing block that the reception server 120 is sent, and receives i-th0To i-thNIndividual exhibitionThe content-data of existing block simultaneously shows in the page, and receives the drop-down loading instruction of user and obtained according to drop-down loading instructionThe current page number, and the mark to be loaded for showing block is obtained according to the page number and ID lists, and the treating of feeding back of the reception server 120Loading shows the content-data of block and showed in the page, wherein, ID lists include the M marks for showing block, and M is justInteger, wherein, the quantity for showing block that N can show for the page.
In embodiments herein, because the ID for showing block is field, therefore network flow consumption is seldom, will not be to visitorThe flow at family end causes damage.
In one embodiment of the application, when user carries out request content data first by client 110 or clientWhen end 110 is updated, server 120 can send the ID lists that all correlations show block to client 110.Wherein,Also include M in all ID lists for showing block transmitted by server 120 and show block identification.Showing the mark of block can beServer 120 is followed by the corresponding effective foundation of content-data offer for showing block is determined, i.e. client 110 can rootThe corresponding content-data for showing block is obtained according to block identification is showed from server 120.For example, client 110 is waited to open up loadingDuring existing block, the mark of block to be showed need to only be sent to server 120, server 120 can be according to the block to be loaded that showsMark determines corresponding to be loaded to show the corresponding content-data of block.
It is appreciated that showing the mark of block has uniqueness, show fast available for unique mark is corresponding.
In another embodiment of the application, server 120 send show the ID lists of block while, can also will currentlyTime is sent to client 110 as timestamp.Wherein, timestamp is used for the field for marking the current request time.Due to clothesBusiness device 120 can be updated to the content-data showed in block, therefore be accomplished by recording current timestamp, in order at itShowing in block renewal process afterwards, reference time stamp is updated, and rear extended meeting describes in detail.For example, such as Fig. 2Shown, server 120 can show the ID lists of block to the transmission of client 110 and each show the timestamp of block.For example, ginsengAccording to shown in Fig. 2, server shows block list (i.e. M=500), and current time to client transmission ID for 1-500Stab t3, and homepage content.When client 110 receive server 120 transmission show block ID lists and it is corresponding whenBetween stab after, can save it in local, and homepage content-data is presented in the page of client 110, and record and work asThe preceding page number is 1.
It should be noted that client 110 can be smart mobile phone in the application, PC, the equipment such as tablet personal computer.
In embodiments herein, for request content data first, i-th0To i-thNThe individual content-data for showing block can beThe homepage content-data of client, such as 1- the 5th shows block, wherein, N is five, is the maximum that can show in the pageShow number of blocks.In another embodiment of the application, during for more new content, i-th0To i-thNThe individual block of showingContent-data is determined according to the block that shows of the page up page.Shown in reference picture 2, due to being to ask first, therefore in the pageShow homepage content-data, i.e. 1-5 and show block.
In another embodiment of the application, in addition it is also necessary to which show 1-M in the page shows block ID lists.
In one embodiment of the application, client 110 receives the drop-down gesture that user is directed to the page, and according to lower handleGesture generation drop-down loading instruction, and obtain the current page number of current page.With continued reference to the example shown in Fig. 2, if firstPage content-data is that 1- the 5th shows block, then the current page number of the page is just 1.
In embodiments herein, obtaining the mark to be loaded for showing block can be obtained by below equation, for example:[whenPreceding page number * N+1, (the current page number+1) * N], wherein, the quantity for showing block that N can show for the page.As described above, logicalCross to send the mark to be loaded for showing block to server 120 and can accurately determine the corresponding content-data for showing block, simplyEfficiently.
Further, in one embodiment of the application, client 110 is additionally operable to each of the transmission of the reception server 120Show the corresponding timestamp of block, and the block corresponding timestamp to be loaded that shows is sent to server 120, so that server 120Determined to be loaded to show the corresponding content-data of block according to timestamp.
For example when user browses microblogging, when after the content-data for reading current page, it is necessary to when checking new content, can lead toThe displayed page for crossing drop-down client 110 loads new content.Client 110 is currently clear according to user according to lower pull instructionThe content quantity that shows of the page number and the page of the page look at carries out the mark that correlation computations obtain the content-data of lower one page, and willTo the mark of lower one page content-data be sent to associated server and inquired about.Server is according to the marks of these content-datasThe content queue of corresponding content data is determined in ID lists, and corresponding content-data is found out according to corresponding timestampSnapshot, which is packaged into, to be showed in block, returns to client 110.For example, as shown in Fig. 2 being showed due to homepageIt is the 1-5 content-datas for showing block, so as to show the mark formula of block and the page number of homepage, Ke Yiji by be loadedThe mark for showing block for obtaining lower one page, the i.e. individual marks for showing block of 6-10 are calculated, and the obtained mark for showing block is sent outDeliver to server and show block to inquire about corresponding block, the i.e. 6-10 of showing.
In embodiments herein, the content-data to be loaded for showing block fed back in the reception server 120 of client 110First rendered afterwards, the content-data after rendering is showed and the page number of the page is updated.
In one embodiment of the application, client 110 receives the upper pulling process of user, and generates pull-up more new command.Client 110 will pull up more new command and send to server 120, and the new ID for the showing block row that the reception server 120 is fed backTable and new timestamp.Certainly after client is restarted, it is also desirable to which what the reception server was sent shows the new ID row of blockTable and new timestamp.As shown in Fig. 2 further, the above-mentioned acquisition 6-10 marks for showing block are passed through in serverInquire it is corresponding show block after, the content-data for showing block is fed back into client, client render laggardRow shows, and current page is updated into 2.
Wherein, server 120 is used to send the ID lists and i-th for showing block to client0To i-thNThe individual content number for showing blockAccording to, and the mark to be loaded for showing block that client is sent is received, and obtain to be loaded according to the mark to be loaded for showing blockShow the content-data of block and send to client.
In one embodiment of the application, server 120 according to timestamp judge it is to be loaded show whether block has renewal, withAnd judge have renewal when using the data to be loaded for showing block before timestamp as content-data, and judge do not updateWhen regard the current data to be loaded for showing block as content-data.
Due to not receiving the pull-up more new command of user at present, therefore the block corresponding timestamp to be loaded that shows still is serviced beforeWhat device was sent, if the data content for now showing block is updated, the content for showing block will show block with othersContent is not corresponded to, therefore is judging that server is still by the data feedback before timestamp to client when having renewal.Therefore,The embodiment of the present application is solved because displaying block updates the problem of producing.
The ID lists for showing block that the embodiment of the present application is sent by server, can be according to the current page number and the ID for showing blockList calculates the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing, improveShow the stability that shows of block, and reduce the phenomenon for even avoiding the loss for showing block or repetition.Additionally can be excellentChange the display performance for showing block in the page, lift user experience.
The embodiment of the present application also proposes a kind of client, is described in greater detail below by accompanying drawing, as shown in Figure 7.Fig. 7It is the structural representation of the client according to the embodiment of the present application.
The client 200 includes:First receiving module 210, the first display module 220, load-on module 230, first are sentThe display module 250 of module 240 and second.
Wherein, the first receiving module 210 is used for the ID lists for showing block that the reception server is sent, wherein, ID list bagsThe M marks for showing block are included, M is positive integer.In embodiments herein, because the ID for showing block is field, becauseThis network flow consumption seldom, will not cause damage to the flow of client 200.
In one embodiment of the application, when user carries out request content data first by client 200 or clientWhen end 200 is updated, the ID lists that server can show all correlations block are sent to client 200.Wherein, takeAlso include M in all ID lists for showing block transmitted by business device and show block identification.The mark for showing block can be serverCan be according to showing block mark followed by determining that the corresponding content-data for showing block provides effective foundation, i.e. client 200Know from server and obtain the corresponding content-data for showing block.For example, client 200 is being loaded when block is showed, only need byThe mark to be loaded for showing block is sent to server, and server can determine to be loaded show according to the mark to be loaded for showing blockThe corresponding content-data of block.
It is appreciated that showing the mark of block has uniqueness, show block available for unique mark is corresponding.
In another embodiment of the application, server, can also be by current time while transmission shows the ID lists of blockSent as timestamp to client 200.Wherein, timestamp is used for the field for marking the current request time.Due to serverThe content-data showed in block can be updated, therefore be accomplished by recording current timestamp, in order to showing afterIn block renewal process, reference time stamp is updated, and rear extended meeting describes in detail.
Further, in one embodiment of the application, as shown in figure 8, the client 200 also includes:Second receivesModule 260.Wherein, the second receiving module 260 is used for each of the reception server transmission and shows the corresponding timestamp of block.In one embodiment of the application, timestamp be mark the current request time field, can uniquely identify certain a moment whenBetween, it is easy to, when loading more content-datas, find the snapshot for more suitably showing block.
For example, as shown in Fig. 2 server can show the ID lists of block to the transmission of client 200 and each show blockTimestamp.For example, referring to shown in Fig. 2, server shows block list (i.e. to the transmission ID of client 200 for 1-500), and current time stamp t3, and homepage content M=500.Show block when what client 200 received server transmissionAfter ID lists and corresponding timestamp, it can save it in locally, and homepage content-data is presented in client 200In the page, and it is 1 to record the current page number.
It should be noted that client 200 can be smart mobile phone in the application, PC, the equipment such as tablet personal computer.
Wherein, the first display module 220 is used to receive i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page,Wherein, the quantity for showing block that N can show for the page.
In one embodiment of the application, for request content data first, i-th0To i-thNThe individual content-data for showing blockCan be the homepage content-data of client 200, such as 1- the 5th shows block, wherein, N is five, by the page energy exhibitionExisting maximum shows number of blocks.In another embodiment of the application, during for more new content, i-th0To i-thNIt is individualThe content-data for showing block is determined according to the block that shows of the page up page.Shown in reference picture 2, due to being to ask first, thereforeShow homepage content-data, i.e. 1-5 in the page and show block.
In another embodiment of the application, in addition it is also necessary to which show 1-M in the page shows block ID lists.
Wherein, load-on module 230 is used for the drop-down loading instruction for receiving user, and obtains current page according to drop-down loading instructionCode.
The drop-down gesture that user is directed to the page is received, and according to drop-down gesture generation drop-down loading instruction, and obtain current pageThe current page number in face.
With continued reference to the example shown in Fig. 2, if homepage content-data, which is 1- the 5th, shows block, the current page number of the pageIt is just 1.
Wherein, the first sending module 240 is used to obtain the mark to be loaded for showing block according to the page number and ID lists, and will be to be addedThe mark that load shows block is sent to server.
In embodiments herein, obtaining the mark to be loaded for showing block can be obtained by below equation, for example:[whenPreceding page number * N+1, (the current page number+1) * N], wherein, the quantity for showing block that N can show for the page.As described above,By the way that the mark to be loaded for showing block is sent to server, the corresponding content-data for showing block can be accurately determined, simplyEfficiently.
For example when user browses microblogging, when after the content-data for reading current page, it is necessary to when checking new content, can lead toThe displayed page for crossing drop-down client 200 loads new content.Client 200 is current according to user according to drop-down loading instructionThe content quantity that the page number and the page of browsing pages are shown carries out the mark that correlation computations obtain the content-data of lower one page, and willThe mark of obtained lower one page content-data is sent to associated server and inquired about.Server is according to the marks of these content-datasKnow the content queue that corresponding content data are determined in ID lists, and corresponding content number is found out according to corresponding timestampIt is packaged into and is showed in block according to snapshot, returns to client 200.For example, as shown in Fig. 2 because homepage showsBe content-datas that 1-5 shows block, can be with so as to show the mark formula of block and the page number of homepage by be loadedCalculate and obtain next page of the mark for showing block, i.e. 6-10 show block mark, and by the obtained mark for showing blockSend and obtain corresponding block, the i.e. 6-10 of showing to server lookup and show block.
Further, in one embodiment of the application, as shown in figure 8, the client 200 also includes:Second sendsModule 270.Wherein, the second sending module 270 is used to send the block corresponding timestamp to be loaded that shows to server, withServer is set to be determined to be loaded to show the corresponding content-data of block according to timestamp.In embodiments herein, client 200Timestamp is sent to server, server selects corresponding content-data to feed back to client 200 according to timestamp.
Wherein, the second display module 250 is used for the content-data to be loaded for showing block of the reception server feedback and in the pageShow.As shown in figure 5, to show result in the page.
In embodiments herein, the reception server of client 200 feed back it is to be loaded show the content-data of block afterFirst rendered, the content-data after rendering is showed and the page number of the page is updated.
Further, in one embodiment of the application, as shown in figure 9, the client 200 also includes:Update module280.Wherein update module 280 is used for the content-data to be loaded for showing block fed back in the reception server and showed in the pageAfterwards, the page number of the page is updated.
Further, in one embodiment of the application, as shown in Figure 10, the client 200 also includes:3rd receivesModule 290, the 3rd sending module 2100 and the 4th receiving module 2110.Wherein, the 3rd receiving module 290 is used to receive and usedThe pull-up at family more new command;3rd sending module 2100, which is used to send to server, updates request;4th receiving module 2110Show the new ID lists of block and corresponding new timestamp for what the reception server was sent.Certainly restarted in client 200Afterwards, it is also desirable to which what the reception server was sent shows the new ID lists of block and new timestamp.As shown in Fig. 2 further,The marks that server shows block by above-mentioned acquisition 6-10 inquire it is corresponding show block after, the content of block will be showedData feedback is to client 200, and client 200 is showed after being rendered, and current page is updated into 2.
The ID lists for showing block that the embodiment of the present application is sent by server, can be according to the current page number and the ID for showing blockList calculates the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing, improveShow the stability that shows of block, and reduce the phenomenon for even avoiding the loss for showing block or repetition.Additionally can be excellentChange the display performance for showing block in the page, lift user experience.
The embodiment of the present application also proposes a kind of server, is described in greater detail below in conjunction with the accompanying drawings, as shown in figure 11, figure11 be the structural representation of the server according to the embodiment of the present application.
The server 300 includes:4th sending module 310, the 5th receiving module 320, acquisition module 330 and the 5th are sent outSend module 340.
Wherein, the 4th sending module 310 is used to send the ID lists and i-th for showing block to client0To i-thNThe individual block of showingContent-data, wherein, the quantity for showing block that N can show for the page of the client.
In one embodiment of the application, user by client carry out request content data first when or client enterWhen row updates, server 300 can send the ID lists that all correlations show block to client.Wherein, server 300Also include M in transmitted all ID lists for showing block and show block identification.The mark for showing block can be server 300Followed by determine the corresponding content-data for showing block provide effective foundation, i.e. client can according to show block identification fromServer 300 obtains the corresponding content-data for showing block.For example, client is being loaded when block is showed, only needing will be to be addedThe mark that load shows block is sent to server 300, and server 300 can determine to be loaded according to the mark to be loaded for showing blockShow the corresponding content-data of block.
It is appreciated that showing the mark of block has uniqueness, show block available for unique mark is corresponding.
In another embodiment of the application, server 300 send show the ID lists of block while, can also will currentlyTime is sent to client as timestamp.Wherein, timestamp is used for the field for marking the current request time.Due to server300 can be updated to the content-data showed in block, therefore be accomplished by recording current timestamp, in order to afterShow in block renewal process, reference time stamp is updated, and rear extended meeting describes in detail.
For example, as shown in Fig. 2 server 300 can show the ID lists of block to client transmission and each show blockTimestamp.For example, referring to shown in Fig. 2, server 300 shows block list (i.e. to client transmission ID for 1-500), and current time stamp t3, and homepage content M=500.Show block when what client received the transmission of server 300It after ID lists and corresponding timestamp, can save it in local, and homepage content-data is presented in the page of clientIn, and it is 1 to record the current page number.
It should be noted that client can be smart mobile phone in the application, PC, the equipment such as tablet personal computer.
Wherein, the 5th receiving module 320 is used for the mark to be loaded for showing block for receiving client transmission.
In embodiments herein, obtaining the mark to be loaded for showing block can be obtained by below equation, for example:[whenPreceding page number * N+1, (the current page number+1) * N], wherein, the quantity for showing block that N can show for the page.As described above,By the way that the mark to be loaded for showing block is sent to server 300, the corresponding content-data for showing block can be accurately determined,It is simple efficient.
For example when user browses microblogging, when after the content-data for reading current page, it is necessary to when checking new content, can lead toThe displayed page for crossing drop-down client loads new content.Client is according to drop-down loading instruction according to user's current browse webpageThe page number and the content quantity that shows of the page carry out the mark that correlation computations obtain the content-data of lower one page, and will obtain downThe mark of one page of content data is sent to associated server 300 and inquired about.Server 300 is according to the marks of these content-datasKnow the content queue that corresponding content data are determined in ID lists, and corresponding content number is found out according to corresponding timestampIt is packaged into and is showed in block according to snapshot, returns to client.For example, as shown in Fig. 2 being due to what homepage showedThe individual content-datas for showing block of 1-5, so as to show the mark formula of block and the page number of homepage by be loaded, can be calculatedThe mark for showing block of lower one page, the i.e. individual marks for showing block of 6-10 are obtained, and the obtained mark for showing block is sentShow block to server 300 to inquire about corresponding block, the i.e. 6-10 of showing.
Wherein, acquisition module 330 is used to obtain the content-data to be loaded for showing block according to the mark to be loaded for showing block.
In one embodiment of the application, server 300 is determined according to the mark of these content-datas in ID listsThe content queue of corresponding content data, and find out corresponding content-data snapshot according to corresponding timestamp and be packaged into and showIn block, client is returned to.
Further, in one embodiment of the application, acquisition module 330 is specifically included:Judging submodule 3310 and obtainSubmodule 3320 is taken, as shown in figure 12.Wherein, judging submodule 3310 is used to be judged to be loaded to show block according to timestampWhether renewal is had, for example, judging that this shows whether the data content of block is updated after timestamp.
Wherein, acquisition submodule 3320 is used for the block to be loaded that shows when judge module judges to have renewal before timestampData regard the current data to be loaded for showing block as content number as content-data, and when judge module judges not updateAccording to.Due to not receiving the pull-up more new command of user at present, therefore the block corresponding timestamp to be loaded that shows still is serviced beforeWhat device was sent, if the data content for now showing block is updated, the content for showing block will show block with othersContent is not corresponded to, therefore is judging that server is still by the data feedback before timestamp to client when having renewal.Therefore,The embodiment of the present application is solved because displaying block updates the problem of producing.
Wherein, the 5th sending module 340 is used to send the content-data to be loaded for showing block to client.As shown in figure 5,To show result in the page.
The ID lists for showing block that the embodiment of the present application is sent by server 300, according to the current page number and can show blockID lists calculate the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing,The stability that shows for showing block is improved, and reduces the phenomenon for even avoiding the loss for showing block or repetition.AdditionallyThe display performance for showing block in the page can be optimized, user experience is lifted.
In the description of the present application, it is to be understood that term " first ", " second " are only used for describing purpose, without being understood thatTo indicate or implying relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, " first ", " are definedAt least one this feature can be expressed or be implicitly included to two " feature.In the description of the present application, " multiple " are meant thatAt least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ",Or the description of " some examples " etc. means to combine specific features, structure, material or the feature bag that the embodiment or example are describedIt is contained at least one embodiment of the application or example.In this manual, to the schematic representation of above-mentioned term necessarilyIt is directed to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be anyCombined in an appropriate manner in individual or multiple embodiments or example.In addition, in the case of not conflicting, the skill of this areaNot be the same as Example or the feature of example and non-be the same as Example or example described in this specification can be combined by art personnelAnd combination.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes oneOr more be used for executable instruction the step of realize specific logical function or process code module, fragment or part,And the scope of the preferred embodiment of the application includes other realization, wherein order that is shown or discussing can not be pressed,Including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application'sEmbodiment person of ordinary skill in the field is understood.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.In above-mentioned realityApply in mode, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage orFirmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardwareAny one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signalDiscrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA) is existingField programmable gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method is carried is canTo instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable recording medium,The program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in the application each embodiment can be integrated in a processing module or eachIndividual unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated module was bothIt can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module withThe form of software function module realize and as independent production marketing or in use, can also be stored in one it is computer-readableTake in storage medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and described aboveEmbodiments herein, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limitation to the application,One of ordinary skill in the art can be changed to above-described embodiment, change, replacing and modification within the scope of application.