Movatterモバイル変換


[0]ホーム

URL:


CN107196980A - The control method of webpage representation stream, system and its apparatus - Google Patents

The control method of webpage representation stream, system and its apparatus
Download PDF

Info

Publication number
CN107196980A
CN107196980ACN201610143255.2ACN201610143255ACN107196980ACN 107196980 ACN107196980 ACN 107196980ACN 201610143255 ACN201610143255 ACN 201610143255ACN 107196980 ACN107196980 ACN 107196980A
Authority
CN
China
Prior art keywords
block
loaded
server
data
show
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610143255.2A
Other languages
Chinese (zh)
Other versions
CN107196980B (en
Inventor
陆操
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding LtdfiledCriticalAlibaba Group Holding Ltd
Priority to CN201610143255.2ApriorityCriticalpatent/CN107196980B/en
Publication of CN107196980ApublicationCriticalpatent/CN107196980A/en
Application grantedgrantedCritical
Publication of CN107196980BpublicationCriticalpatent/CN107196980B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The disclosure a kind of control method and its system of webpage representation stream, method comprise the following steps:The ID lists for showing block that the reception server is sent;Receive i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page, the quantity for showing block that wherein N can show for the page;The drop-down loading instruction of user is received, and the current page number is obtained according to drop-down loading instruction;According to the page number and ID lists obtain it is to be loaded show the mark of block, and the mark to be loaded for showing block is sent to server;And the reception server feedback the content-data to be loaded for showing block and show in the page.By the method for the embodiment of the present application, it can be effectively improved and show the stability that block shows sequence in the page, and reduce the phenomenon for even avoiding the loss for showing block or repetition, while optimization shows the performance that shows of block, lift the usage experience of user.Disclosed herein as well is a kind of server and client side.

Description

The control method of webpage representation stream, system and its apparatus
Technical field
The application is related to Internet technical field, more particularly to a kind of control method of webpage representation stream, system and its apparatus.
Background technology
Generally, application software client (such as wechat) can have a large amount of content-datas, in order to show these content-datas,Feed streams (i.e. displaying stream) would generally be used to realize that display shows block according to the time sequencing updated the data.Due to Feed streamsIt is generally all long, it is impossible to carry out the display of content-data well, therefore in order to optimize the form that performance generally uses pagingCarry out displays content data.
At present, the paging mode of existing Feed streams is broadly divided into two classes:One class is to carry out paging based on the page number.Client is everyWhen secondary paging, server can be transmitted to using the current page number as parameter, server is further according to the every number of pages appointedThe data of nextpage are inquired about according to amount, and the data of inquiry are returned into client and are loaded.Client is returned receiving serverShow in Feed stream modes after the data returned and update the page number, be that paging next time is prepared.Another kind of is to be based on lastBar shows block ID and carries out paging.Client is when each paging, and the last item for obtaining current Feed streams shows blockID, and be transmitted to server using it as parameter.Under server is obtained further according to the ID received with order backward afterwardsPage of data is simultaneously back to client and loaded.Client receive after data with Feed stream mode show lower page of dataContent revealing comes out.
But, above two paging mode when unstable situation is now sorted in Feed outflows, that is, shows that the order of block is real-timeWhen changing, two kinds of paging modes can have problem.For example in Feed streams, there is a, b, c, d, e, f, g, h, i, j, kSeveral to show block, it is assumed that every page of display shows number of blocks for 4, now first page shows block as a, b, c, d.IfBefore paging next time is carried out, the state for showing block e is changed, according to rule, and the page can be placed in by showing block eTop, i.e., new Feed streams order is e, a, b, c, d, f, g, h, i, j, k.If carrying out paging according to the page number, second pageData are d, f, g, h, so occur that a repetition shows block f, if showing block ID according to the last item carries out paging, theThe data of page two are f, g, h, i, so can then miss one and show block e.Therefore, two kinds of traditional paging modes can not all expireThe demand that sufficient Feed streams show.
The content of the invention
The purpose of the application is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the application is to propose a kind of control method of webpage representation stream, this method can be effectively improvedShow the stability that block shows sequence in the page, and reduce the phenomenon for even avoiding the loss for showing block or repetition, togetherWhen can optimize the display performance for showing block, lift the usage experience of user.
Second purpose of the application is to propose a kind of control system of webpage representation stream.
The 3rd purpose of the application is to propose a kind of client.
The 4th purpose of the application is to propose a kind of server.
For up to above-mentioned purpose, a kind of control method of the webpage representation stream proposed according to the application first aspect embodiment, includingFollowing steps: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;Receive i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page, wherein, N is page institute energyWhat is showed shows the quantity of block;The drop-down loading instruction of user is received, and the current page number is obtained according to drop-down loading instruction;RootAccording to the page number and ID lists obtain it is to be loaded show the mark of block, and the mark to be loaded for showing block is sent to server;AndThe content-data to be loaded for showing block of the reception server feedback simultaneously shows in the page.
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.
For up to above-mentioned purpose, a kind of control system of the webpage representation stream proposed according to the second aspect embodiment of the application is wrappedInclude:Including client and server, wherein, client, the ID lists for showing block sent for the reception server are receivedI-th0To i-thNThe individual content-data for showing block simultaneously shows in the page, and the drop-down loading of reception user is instructed and underDraw loading instruction to obtain the current page number, and the mark to be loaded for showing block is obtained according to the page number and ID lists, and receive serviceThe content-data to be loaded for showing block of device feedback simultaneously shows in the page, wherein, ID lists include the M marks for showing block,M is positive integer, wherein, the quantity for showing block that N can show for the page;And server, for being sent to clientShow the ID lists and i-th of block0To i-thNThe individual content-data for showing block, and receive to be loaded the showing of client transmissionThe mark of block, and the content-data to be loaded for showing block is obtained according to the mark to be loaded for showing block and sent to client.
The embodiment of the present application shows block ID lists by what server was sent, can be arranged according to the current page number with the ID for showing blockTable calculates the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing, improve exhibitionShow the stability that shows of block, and reduce the phenomenon for even avoiding the loss for showing block or repetition.It can additionally optimizeShow the display performance of block in the page, lift user experience.
For up to above-mentioned purpose, a kind of client proposed according to the third aspect embodiment of the application, including:First receives mouldBlock, the ID lists for showing block sent for the reception server, wherein, ID lists include the M marks for showing block, MFor positive integer;First display module, for receiving i-th0To i-thNThe individual content-data for showing block simultaneously shows in the page, itsIn, the quantity for showing block that N can show for the page;Load-on module, the drop-down for receiving user loads instruction, and rootThe current page number is obtained according to drop-down loading instruction;First sending module, to be loaded shows block for being obtained according to the page number and ID listsMark, and the mark to be loaded for showing block is sent to server;And second display module, it is anti-for the reception serverThe content-data to be loaded for showing block of feedback simultaneously shows in the page.
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.
For up to above-mentioned purpose, a kind of server proposed according to the fourth aspect embodiment of the application, including:Including:4thSending module, the ID lists and i-th of block are showed for being sent to client0To i-thNThe individual content-data for showing block, wherein,The quantity for showing block that N can show for the page of client;5th receiving module, for receiving the to be added of client transmissionCarry the mark for showing block;Acquisition module, for obtaining the content-data to be loaded for showing block according to the mark to be loaded for showing block;5th sending module, for the content-data to be loaded for showing block to be sent to client.
The embodiment of the present application sends the ID lists for showing block by server, can be arranged according to the current page number with the ID for showing blockTable calculates the mark to be loaded for showing block.Therefore show on the premise of block shows form in the page not changing, improve exhibitionShow the stability that shows of block, and reduce the phenomenon for even avoiding the loss for showing block or repetition.It can additionally optimizeShow the display performance of block in the page, lift user experience.
The aspect and advantage that the application is added will be set forth in part in the description, and partly will become bright from the following descriptionIt is aobvious, or recognized by the practice of the application.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the application will be apparent from description of the accompanying drawings below to embodiment is combined andIt is readily appreciated that, wherein:
Fig. 1 is the flow chart of the control method of the webpage representation stream according to the embodiment of the present application;
Fig. 2 is the schematic diagram of a specific webpage representation stream according to the embodiment of the present application;
Fig. 3 is the flow chart of the control method of a webpage representation stream according to the embodiment of the present application;
Fig. 4 is according to timestamp to determine the flow chart to be loaded for showing the corresponding data of block according to the server of the embodiment of the present application;
Fig. 5 is the schematic diagram for showing content-data quantity according to a microblog page of the embodiment of the present application;
Fig. 6 is the structural representation of the control system of the webpage representation stream according to the embodiment of the present application;
Fig. 7 is the structural representation of the customer side according to the embodiment of the present application;
Fig. 8 is the structural representation of a client according to the embodiment of the present application;
Fig. 9 is the structural representation of another client according to the embodiment of the present application;
Figure 10 is the structural representation of another client according to the embodiment of the present application;
Figure 11 is the structural representation of the server according to the embodiment of the present application;And
Figure 12 is the structural representation of the acquisition module according to the embodiment of the present application.
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.

Claims (19)

CN201610143255.2A2016-03-142016-03-14Method, system and device for controlling page display flowActiveCN107196980B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610143255.2ACN107196980B (en)2016-03-142016-03-14Method, system and device for controlling page display flow

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610143255.2ACN107196980B (en)2016-03-142016-03-14Method, system and device for controlling page display flow

Publications (2)

Publication NumberPublication Date
CN107196980Atrue CN107196980A (en)2017-09-22
CN107196980B CN107196980B (en)2020-11-13

Family

ID=59871220

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610143255.2AActiveCN107196980B (en)2016-03-142016-03-14Method, system and device for controlling page display flow

Country Status (1)

CountryLink
CN (1)CN107196980B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108108400A (en)*2017-12-052018-06-01厦门哨子科技有限公司A kind of methods of API based on local data increment
CN108595080A (en)*2018-03-302018-09-28深圳市富途网络科技有限公司A kind of the information fusion layout system and method for mobile client
CN108683716A (en)*2018-04-262018-10-19网宿科技股份有限公司 Business logic learning, protection methods and learning, and protection devices based on big data
CN108829809A (en)*2018-06-072018-11-16连尚(新昌)网络科技有限公司A kind of information displaying method and its terminal device, the network equipment
CN109885729A (en)*2019-02-202019-06-14北京奇艺世纪科技有限公司A kind of method, apparatus and system showing data

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040010423A1 (en)*2002-04-032004-01-15Joseph SamehWebsite messaging system for providing healthcare to a patient
CN102682093A (en)*2012-04-252012-09-19广州市动景计算机科技有限公司Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN102929846A (en)*2012-10-262013-02-13北京小米科技有限责任公司Method and device for processing long text
CN103309891A (en)*2012-03-152013-09-18阿里巴巴集团控股有限公司Information display method and equipment
CN103778135A (en)*2012-10-182014-05-07厦门雅迅网络股份有限公司Method for distribution storage and paging querying of real-time data
CN103927383A (en)*2014-04-292014-07-16车智互联(北京)科技有限公司Web page presenting device and method
CN104216695A (en)*2013-06-032014-12-17阿里巴巴集团控股有限公司 Method and system for providing page information to be displayed and displaying page information
WO2015010466A1 (en)*2013-07-252015-01-29小米科技有限责任公司Information display method and apparatus, and mobile terminal
CN104462455A (en)*2014-12-162015-03-25北京京东尚科信息技术有限公司Method and device for displaying and processing network data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040010423A1 (en)*2002-04-032004-01-15Joseph SamehWebsite messaging system for providing healthcare to a patient
CN103309891A (en)*2012-03-152013-09-18阿里巴巴集团控股有限公司Information display method and equipment
CN102682093A (en)*2012-04-252012-09-19广州市动景计算机科技有限公司Web page sectionally-loading method and web page sectionally-loading system for mobile browser
CN103778135A (en)*2012-10-182014-05-07厦门雅迅网络股份有限公司Method for distribution storage and paging querying of real-time data
CN102929846A (en)*2012-10-262013-02-13北京小米科技有限责任公司Method and device for processing long text
CN104216695A (en)*2013-06-032014-12-17阿里巴巴集团控股有限公司 Method and system for providing page information to be displayed and displaying page information
WO2015010466A1 (en)*2013-07-252015-01-29小米科技有限责任公司Information display method and apparatus, and mobile terminal
CN103927383A (en)*2014-04-292014-07-16车智互联(北京)科技有限公司Web page presenting device and method
CN104462455A (en)*2014-12-162015-03-25北京京东尚科信息技术有限公司Method and device for displaying and processing network data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨毅: "《一种Web数据分页显示技术》", 《科技资讯》*
罗云芳: "《PHP中分页显示查询记录的实现方法》", 《广西职业技术学院学报》*

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108108400A (en)*2017-12-052018-06-01厦门哨子科技有限公司A kind of methods of API based on local data increment
CN108595080A (en)*2018-03-302018-09-28深圳市富途网络科技有限公司A kind of the information fusion layout system and method for mobile client
CN108683716A (en)*2018-04-262018-10-19网宿科技股份有限公司 Business logic learning, protection methods and learning, and protection devices based on big data
CN108829809A (en)*2018-06-072018-11-16连尚(新昌)网络科技有限公司A kind of information displaying method and its terminal device, the network equipment
WO2019233095A1 (en)*2018-06-072019-12-12连尚(新昌)网络科技有限公司Information presenting method, and terminal device and network device thereof
CN109885729A (en)*2019-02-202019-06-14北京奇艺世纪科技有限公司A kind of method, apparatus and system showing data
CN109885729B (en)*2019-02-202021-07-20北京奇艺世纪科技有限公司Method, device and system for displaying data

Also Published As

Publication numberPublication date
CN107196980B (en)2020-11-13

Similar Documents

PublicationPublication DateTitle
CN107196980A (en)The control method of webpage representation stream, system and its apparatus
CN103699576B (en)A kind of method and apparatus for being used to provide search result
US10897449B2 (en)Social media messaging platform for creating and sharing moments
CN104811816B (en)A kind of is the method, apparatus and system that the object in video pictures plays barrage label
CN103778236B (en)Web data distribution processing method and device and auto-building html files treating method and apparatus
CN104199597B (en)New Shipping Options Page deployment method and device
CN106156189A (en)A kind of label generating method and device, information getting method and device
CN103841004B (en)Method for information display and information server
CN104866522A (en)Method and device for providing answer information for questioner
CN103164404A (en)Search result display method and search result display device
CN103412748B (en)Display control method, the apparatus and system of the user interface of embedded platform
CN102496120B (en)System and method for displaying commodity information on electronic tag screens, issuer and manager
CN103096138B (en) TV advertising product information display system and method
CN105205072B (en)The methods of exhibiting and system of webpage information
CN109492607A (en)A kind of information-pushing method, information push-delivery apparatus and terminal device
CN104702703B (en)A kind of data-updating method and device
CN106815751A (en)A kind of merchandise display system and method
CN106651992A (en)Method and system for optimizing Android resource picture
DE112017000811T5 (en) Graphical user interface of a product display
CN106294339A (en)The method and device Loaded Image in application
CN113420243A (en)Page processing method and device and electronic equipment
CN102867001A (en)Method and device for acquiring information
CN103198073A (en)Picture processing method and system
CN105404669A (en)Method, apparatus, terminal and server for displaying webpage comment
JP6064019B1 (en) Display method, information processing apparatus, information processing terminal, display program

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
REGReference to a national code

Ref country code:HK

Ref legal event code:DE

Ref document number:1244594

Country of ref document:HK

TA01Transfer of patent application right
TA01Transfer of patent application right

Effective date of registration:20201013

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after:Innovative advanced technology Co.,Ltd.

Address before:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before:Advanced innovation technology Co.,Ltd.

Effective date of registration:20201013

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after:Advanced innovation technology Co.,Ltd.

Address before:A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before:Alibaba Group Holding Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp