CN107679180A - Data display method and device - Google Patents

Data display method and device Download PDF

Info

Publication number
CN107679180A
CN107679180A CN201710910971.3A CN201710910971A CN107679180A CN 107679180 A CN107679180 A CN 107679180A CN 201710910971 A CN201710910971 A CN 201710910971A CN 107679180 A CN107679180 A CN 107679180A
Authority
CN
China
Prior art keywords
page
presented
data
sequence number
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710910971.3A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710910971.3A priority Critical patent/CN107679180A/en
Publication of CN107679180A publication Critical patent/CN107679180A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention provides a data display method and a data display device, wherein the method comprises the following steps: when a page turning request of a user is received, acquiring a serial number of a current page displayed on a client interface; the serial number is the serial number of the current page in the data requested by the client; acquiring page data of a first to-be-displayed page with the minimum difference value between the corresponding serial number and the serial number of the current page from a preset memory; the memory has stored therein: page data of at least one page to be displayed; the pages to be displayed are adjacent pages of the current page, and the serial numbers of the pages to be displayed are all larger than the serial number of the current page, or the serial numbers of the pages to be displayed are all smaller than the serial number of the current page; the first page to be displayed is displayed according to the page data of the first page to be displayed, so that the waiting time of a user during page turning is reduced, the browsing efficiency of the user is improved, and the experience of the user in browsing data is improved.

Description

Method for exhibiting data and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method for exhibiting data and device.
Background technology
At present, when the overabundance of data that client is asked to service end, service end is usually to be joined according to the request of client Data are divided into the data block of equivalent by number, such as the page returns to client.That is, loading of the service end according to client The page data of first page is first returned to client by request, and client is loaded and shown to first page; During user's page turning, client sends load request to service end, and the page data for obtaining second page is loaded and shown, The like.
However, in the prior art, loading data by network needs the time, and in the case that network environment is bad, the page Load time it is long, cause the stand-by period of user long, reduce the browse efficiency of user, influence user browse data Experience.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of method for exhibiting data, for solving page in the prior art The problem of load time in face is long, causes browse efficiency poor, and user browse data experience is poor.
Second object of the present invention is to propose a kind of data display device.
Third object of the present invention is to propose another data display device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
For the above-mentioned purpose, first aspect present invention embodiment proposes a kind of method for exhibiting data, including:
When the page turning for receiving user is asked, the sequence number of the current page shown on client end interface is obtained;
Sequence number of the current page in the data that client is asked described in the Serial No.;
Difference between the sequence number of sequence number and the current page corresponding to being obtained from default memory is minimum First page to be presented page data;
It is stored with the memory:The page data of at least one page to be presented;
The page to be presented is the adjacent page of the current page, and the sequence number of the page to be presented is all higher than The sequence number of the current page, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
First page to be presented is shown according to the page data of described first page to be presented.
Further, it is described according to the page data of described first page to be presented show first page to be presented it Afterwards, in addition to:
Delete the page data of described first page to be presented stored in the memory.
Further, it is described according to the page data of described first page to be presented show first page to be presented it Afterwards, in addition to:
Judge whether to be stored with the page data of the page to be presented in the memory;Or judge in the memory Whether the quantity of the page to be presented meets predetermined number;
When not being stored with the page data of the page to be presented in the memory, or, treated described in the memory When the quantity of displayed page is unsatisfactory for predetermined number, load request is sent to service end, obtains the page data of the page to be presented, So that the quantity of the page to be presented meets the predetermined number in the memory.
Further, before the page turning for receiving user is asked, in addition to:
Detect sliding trace of the user on client end interface;
Judge the sliding trace whether with default page turning path matching;
If the sliding trace and the page turning path matching, it is determined that receive the page turning request of the user.
Further, the page turning track includes:Pre-determined distance is slided from a lateral opposite side of current page.
Further, it is described according to the page data of described first page to be presented show first page to be presented it Before, in addition to:
The default animation of displaying;
It is described that first page to be presented is shown according to the page data of described first page to be presented, including:
When the displaying time of the default animation exceeding preset time value, according to the page of described first page to be presented First page to be presented described in data display.
Further, described method also includes:
Judge whether include image data in the page data of described first page to be presented;
If the page data of first page to be presented includes image data, judge the image data whether be Compressed picture data;
If the image data is compressed picture data, is sent to service end and stop loading instruction, indicate the service End stops loading original image data corresponding to the compressed picture data.
The method for exhibiting data of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented, so as to reduce use The stand-by period during page turning of family, the browse efficiency of user is improved, improve the experience of user browse data.
For the above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of data display device, including:
Acquisition module, for when receiving the page turning request of user, obtaining the current page shown on client end interface Sequence number;Sequence number of the current page in the data that client is asked described in the Serial No.;
The acquisition module, it is additionally operable to the sequence of sequence number and the current page corresponding to being obtained from default memory The page data of first page to be presented of the difference minimum between row number;
It is stored with the memory:The page data of at least one page to be presented;
The page to be presented is the adjacent page of the current page, and the sequence number of the page to be presented is all higher than The sequence number of the current page, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
Display module, for showing first page to be presented according to the page data of described first page to be presented.
Further, described device also includes:
Removing module, for being treated in display module according to the page data of described first page to be presented displaying described first After displayed page, the page data of described first page to be presented stored in the memory is deleted.
Further, described device also includes:
First judge module, for judging whether to be stored with the page data of the page to be presented in the memory;Or Judge whether the quantity of the page to be presented described in the memory meets predetermined number;
First sending module, during page data for not being stored with the page to be presented in the memory, or, institute When stating the quantity of the page to be presented described in memory and being unsatisfactory for predetermined number, load request is sent to service end, obtains and waits to open up Show the page data of the page, so that the quantity of the page to be presented meets the predetermined number in the memory.
Further, described device also includes:
Detection module, for detecting sliding trace of the user on client end interface;
Second judge module, for judge the sliding trace whether with default page turning path matching;
Determining module, in the sliding trace and during the page turning path matching, it is determined that receiving the user's Page turning is asked.
Further, the page turning track includes:Pre-determined distance is slided from a lateral opposite side of current page.
Further, the display module is additionally operable to, and institute is being shown according to the page data of described first page to be presented Before stating first page to be presented, default animation is shown;
The display module is specifically used for, when the displaying time of the default animation exceeding preset time value, according to institute The page data for stating first page to be presented shows first page to be presented.
Further, described device also includes:
3rd judge module, whether include image data in the page data for judging described first page to be presented;
3rd judge module, it is additionally operable to include image data in the page data of described first page to be presented When, judge whether the image data is compressed picture data;
Second sending module, for when the image data is compressed picture data, being sent to service end and stopping loading Instruction, indicate that the service end stops loading original image data corresponding to the compressed picture data.
The data display device of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented, so as to reduce use The stand-by period during page turning of family, the browse efficiency of user is improved, improve the experience of user browse data.
For the above-mentioned purpose, third aspect present invention embodiment proposes another data display device, including memory, Processor and storage on a memory and the computer program that can run on a processor, during the computing device described program Realize method for exhibiting data as described above.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium, when the instruction in the storage medium is executed by processor, realize method as described above.
For the above-mentioned purpose, sixth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction processing unit in machine program product performs, a kind of method for exhibiting data is performed, methods described includes:
When the page turning for receiving user is asked, the sequence number of the current page shown on client end interface is obtained;It is described Sequence number of the current page described in Serial No. in the data that client is asked;
Difference between the sequence number of sequence number and the current page corresponding to being obtained from default memory is minimum First page to be presented page data;
It is stored with the memory:The page data of at least one page to be presented;
The page to be presented is the adjacent page of the current page, and the sequence number of the page to be presented is all higher than The sequence number of the current page, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
First page to be presented is shown according to the page data of described first page to be presented.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is a kind of schematic flow sheet of method for exhibiting data provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another method for exhibiting data provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of data display device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another data display device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another data display device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another data display device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another data display device provided in an embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method for exhibiting data and device of the embodiment of the present invention are described.
Fig. 1 is a kind of schematic flow sheet of method for exhibiting data provided in an embodiment of the present invention.As shown in figure 1, the data Methods of exhibiting comprises the following steps:
S101, when the page turning for receiving user is asked, obtain the sequence number of current page shown on client end interface; Sequence number of the Serial No. current page in the data that client is asked.
The executive agent of method for exhibiting data provided by the invention is data display device, and data display device specifically can be with Client or software on the terminal device is either installed for terminal device, such as using shop or application wall etc..This reality Apply in example, in the overabundance of data that client is asked to service end, service end is usually by number according to the required parameter of client Client is returned to according to the data block for being divided into equivalent, such as the page.The Serial No. current page of current page is in client institute Sequence number in the data of request, i.e. current page are which page in the data of request.
In the present embodiment, data display device can gather finger of user etc. in real time in client by pressure sensor etc. The sliding trace slided on the interface of end;Judge sliding trace whether with default page turning path matching;In sliding trace and page turning During path matching, it is determined that receiving the page turning request of user.In addition, when sliding trace does not match with page turning track, it is determined that not Receive the page turning request of user.Wherein, page turning track can be, from a lateral opposite side of current page slide it is default away from From.For example, pre-determined distance is slided above from the predeterminable area below current page to current page.In addition, page turning track may be used also Think, user clicks on the preset function button on current page, such as downslide button, page-turning button etc..
S102, the difference from default memory corresponding to acquisition between sequence number and the sequence number of current page are minimum First page to be presented page data;It is stored with memory:The page data of at least one page to be presented;It is to be presented The page is the adjacent page of current page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, wait to open up Show that the sequence number of the page is respectively less than the sequence number of current page.
The page data of at least one page to be presented is previously stored with the present embodiment, in memory, and in memory The quantity of the page to be presented of storage is less than or equal to predetermined number.Wherein, predetermined number sets for the terminal with reference to belonging to client The quantity obtained after the COMPREHENSIVE CALCULATINGs such as standby performance parameter, network bandwidth, user's surfing.
If in addition, when not getting the page data of first page to be presented from default memory, such as memory In be not stored with the page data of the page to be presented, then client can send load request to service end, obtain current page The page data of the page shown is needed afterwards.
S103, according to the page data of first page to be presented show first page to be presented.
In the present embodiment, because first page to be presented has shown that completion, the page data of first page to be presented is Moved to from memory in buffer etc., therefore, after step 103, described method can also include:Delete and stored in memory First page to be presented page data.
In the present embodiment, in order to ensure having the page data of the page to be presented of predetermined number, step 103 in memory Afterwards, described method can also include:Judge whether to be stored with the page data of the page to be presented in memory;Or sentence Whether the quantity of the page to be presented meets predetermined number in disconnected memory;It is not stored with the page of the page to be presented in memory Data, or, when the quantity of the page to be presented is unsatisfactory for predetermined number in memory, load request is sent to service end, is obtained The page data of the page to be presented, so that the quantity of the page to be presented meets predetermined number in memory.
In addition, before step 103, described method can also include:The default animation of displaying.Corresponding, step 103 is specific Can be, when the displaying time of default animation exceeding preset time value, to be shown according to the page data of first page to be presented First page to be presented.In the present embodiment, before first page to be presented is shown, default animation is shown, meets user's saving The psychology of flow, and user is given with the sensation of smoothness.Wherein, animation is preset for example, loading animation etc. of turn-taking.
For example, using predetermined number as 1, current page is first page, and first page to be presented is that second page is Example illustrates, and when user is sliding out page turning track on client end interface, client obtains the sequence number of first page, The page data of second page is obtained from memory according to sequence number, according to the page data displaying second of second page The individual page;During user browses second page, client sends load request to service end, obtains the 3rd page Page data, so as to when user needs page turning, show the 3rd page, so as to reduce stand-by period during user's page turning, The browse efficiency of user is improved, improves the experience of user browse data.
The method for exhibiting data of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented, so as to reduce use The stand-by period during page turning of family, the browse efficiency of user is improved, improve the experience of user browse data.
Fig. 2 is the schematic flow sheet of another method for exhibiting data provided in an embodiment of the present invention, as shown in Fig. 2 in Fig. 1 On the basis of illustrated embodiment, before step 103 or after step 103, described method can also comprise the following steps:
S104, judge whether include image data in the page data of first page to be presented.
If S105, the page data of first page to be presented include image data, judge whether image data is pressure Contract drawing sheet data.
In the present embodiment, when the page to be presented includes picture, service end can be set according to the terminal belonging to client Standby request of performance or client etc., the original image data treated in displayed page are compressed, and obtain compressed picture Data, the original image data in page data are replaced with into compressed picture data, and the page that will include compressed picture data Data are sent to client, after being sent completely, are sent original image data according to the occupancy situation selection time of network bandwidth To client, so as to which the compressed picture stored in client data are replaced with into original image data.
If S106, image data are compressed picture data, are sent to service end and stop loading instruction, instruction service end is stopped Only load original image data corresponding to compressed picture data.
In the present embodiment, when showing first page to be presented, if the page data of first page to be presented includes figure Sheet data, then data display device need to judge whether image data is compressed picture data;If image data is compressed picture Data, then it represents that service end does not also send over corresponding original image data, therefore, in order to reduce volume of transmitted data, subtracts The occupancy of few bandwidth, client can be sent to service end stops loading instruction, and instruction service end stops loading compressed picture number According to corresponding original image data.If image data is original image data, then it represents that service end sends out original image data Bring, then need not be sent to service end and stop loading instruction.
In addition, it is also necessary to illustrate, when showing first page to be presented, if the page of first page to be presented Data include compressed picture data, and now in order to improve the viewing experience of user, client can also be sent to service end to be added Request is carried, original image data is obtained, is shown.
The method for exhibiting data of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented;Judge that first treats Whether include image data in the page data of displayed page;If the page data of first page to be presented includes picture number According to then judging whether image data is compressed picture data;If image data is compressed picture data, sends and stop to service end Only loading instruction, instruction service end stops original image data corresponding to loading compressed picture data, so as to reduce user's page turning When stand-by period, improve the browse efficiency of user, improve the experience of user browse data.
Fig. 3 is a kind of structural representation of data display device provided in an embodiment of the present invention.As shown in figure 3, including:Obtain Modulus block 31 and display module 32.
Wherein, acquisition module 31, for when receiving the page turning request of user, what is shown on acquisition client end interface to work as The sequence number of the preceding page;Sequence number of the current page in the data that client is asked described in the Serial No.;
The acquisition module 31, sequence number corresponding to acquisition and the current page are additionally operable to from default memory The page data of first page to be presented of the difference minimum between sequence number;It is stored with the memory:It is at least one to treat The page data of displayed page;The page to be presented is the adjacent page of the current page, and the page to be presented Sequence number is all higher than the sequence number of the current page, or, the sequence number of the page to be presented is respectively less than the current page The sequence number in face;
Display module 32, for showing first page to be presented according to the page data of described first page to be presented Face.
Data display device provided by the invention is specifically as follows the client of terminal device or installation on the terminal device End or software, such as using shop or application wall etc..In the present embodiment, in the overabundance of data that client is asked to service end When, service end is usually that data are divided into the data block of equivalent according to the required parameter of client, such as the page returns to client End.Sequence number of the Serial No. current page of current page in the data that client is asked, i.e. current page are request Data in which page.
The page data of at least one page to be presented is previously stored with the present embodiment, in memory, and in memory The quantity of the page to be presented of storage is less than or equal to predetermined number.Wherein, predetermined number sets for the terminal with reference to belonging to client The quantity obtained after the COMPREHENSIVE CALCULATINGs such as standby performance parameter, network bandwidth, user's surfing.
If in addition, when not getting the page data of first page to be presented from default memory, such as memory In be not stored with the page data of the page to be presented, then client can send load request to service end, obtain current page The page data of the page shown is needed afterwards.
Further, in the present embodiment, because first page to be presented has shown that completion, the page of first page to be presented Data are moved in buffer etc. from memory, and therefore, described device also includes:Removing module, in display module After showing first page to be presented according to the page data of described first page to be presented, delete and deposited in the memory The page data of described first page to be presented of storage.
Further, in the present embodiment, in order to ensure there being the page number of the page to be presented of predetermined number in memory According to reference to reference to figure 4, on the basis of embodiment illustrated in fig. 3, described device also includes:First judge module 33 and first Sending module 34.
Wherein, the first judge module 33, for judging whether to be stored with the page number of the page to be presented in the memory According to;Or judge whether the quantity of the page to be presented described in the memory meets predetermined number;
First sending module 34, for not being stored with the page data of the page to be presented in the memory, or, institute When stating the quantity of the page to be presented described in memory and being unsatisfactory for predetermined number, load request is sent to service end, obtains and waits to open up Show the page data of the page, so that the quantity of the page to be presented meets the predetermined number in the memory.
Further, the display module 32 is additionally operable to, and is shown according to the page data of described first page to be presented Before first page to be presented, default animation is shown.Corresponding, the display module 32 is specifically used for, described default When the displaying time of animation exceedes preset time value, treated according to the page data of described first page to be presented displaying described first Displayed page.In the present embodiment, before first page to be presented is shown, default animation is shown, meets user and saves flow Psychology, and user is given with the sensation of smoothness.Wherein, animation is preset for example, loading animation etc. of turn-taking.
Further, with reference to reference to figure 5, on the basis of embodiment illustrated in fig. 4, described device also includes:Detect mould Block 35, the second judge module 36 and determining module 37.
Wherein, detection module 35, for detecting sliding trace of the user on client end interface;
Second judge module 36, for judge the sliding trace whether with default page turning path matching;
Determining module 37, in the sliding trace and during the page turning path matching, it is determined that receiving the user Page turning request.
Wherein, page turning track can be to slide pre-determined distance from a lateral opposite side of current page.For example, from current Predeterminable area below the page slides pre-determined distance to current page top.In addition, page turning track can also be, user, which clicks on, to be worked as Preset function button on the preceding page, such as downslide button, page-turning button etc..
The data display device of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented, so as to reduce use The stand-by period during page turning of family, the browse efficiency of user is improved, improve the experience of user browse data.
Further, with reference to reference to figure 6, on the basis of embodiment illustrated in fig. 3, described device also includes:3rd sentences The disconnected sending module 39 of module 38 and second.
Wherein, the 3rd judge module 38, whether figure is included in the page data for judging described first page to be presented Sheet data;
3rd judge module 38, it is additionally operable to when the page data of described first page to be presented includes image data, Judge whether the image data is compressed picture data;
Second sending module 39, for when the image data is compressed picture data, being sent to service end and stopping adding Instruction is carried, indicates that the service end stops loading original image data corresponding to the compressed picture data.
In the present embodiment, when the page to be presented includes picture, service end can be set according to the terminal belonging to client Standby request of performance or client etc., the original image data treated in displayed page are compressed, and obtain compressed picture Data, the original image data in page data are replaced with into compressed picture data, and the page that will include compressed picture data Data are sent to client, after being sent completely, are sent original image data according to the occupancy situation selection time of network bandwidth To client, so as to which the compressed picture stored in client data are replaced with into original image data.
In the present embodiment, when showing first page to be presented, if the page data of first page to be presented includes figure Sheet data, then data display device need to judge whether image data is compressed picture data;If image data is compressed picture Data, then it represents that service end does not also send over corresponding original image data, therefore, in order to reduce volume of transmitted data, subtracts The occupancy of few bandwidth, client can be sent to service end stops loading instruction, and instruction service end stops loading compressed picture number According to corresponding original image data.If image data is original image data, then it represents that service end sends out original image data Bring, then need not be sent to service end and stop loading instruction.
In addition, it is also necessary to illustrate, when showing first page to be presented, if the page of first page to be presented Data include compressed picture data, and now in order to improve the viewing experience of user, client can also be sent to service end to be added Request is carried, original image data is obtained, is shown.
The data display device of the embodiment of the present invention, when the page turning for receiving user is asked, obtain on client end interface The sequence number of the current page of displaying;Sequence number of the Serial No. current page in the data that client is asked;From default Memory in obtain corresponding to difference between sequence number and the sequence number of current page minimum first page to be presented Page data;It is stored with memory:The page data of at least one page to be presented;The page to be presented is the phase of current page The adjacent page, and the sequence number of the page to be presented is all higher than the sequence number of current page, or, the sequence number of the page to be presented is small In the sequence number of current page;First page to be presented is shown according to the page data of first page to be presented;Judge that first treats Whether include image data in the page data of displayed page;If the page data of first page to be presented includes picture number According to then judging whether image data is compressed picture data;If image data is compressed picture data, sends and stop to service end Only loading instruction, instruction service end stops original image data corresponding to loading compressed picture data, so as to reduce user's page turning When stand-by period, improve the browse efficiency of user, improve the experience of user browse data.
Fig. 7 is the structural representation of another data display device provided in an embodiment of the present invention.The data display device Including:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the method for exhibiting data provided in above-described embodiment when performing described program.
Further, data display device also includes:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for depositing the computer program that can be run on processor 1002.
Memory 1001 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002, the method for exhibiting data described in above-described embodiment is realized during for performing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..For ease of representing, only represented in Fig. 7 with a thick line, it is not intended that an only bus or a type of Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one Realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 is probably a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that The program realizes method for exhibiting data as described above when being executed by processor.
The present embodiment also provides a kind of computer program product, when the instruction processing unit in the computer program product is held During row, a kind of method for exhibiting data is performed, methods described includes:
When the page turning for receiving user is asked, the sequence number of the current page shown on client end interface is obtained;It is described Sequence number of the current page described in Serial No. in the data that client is asked;
Difference between the sequence number of sequence number and the current page corresponding to being obtained from default memory is minimum First page to be presented page data;It is stored with the memory:The page data of at least one page to be presented;Institute The adjacent page that the page to be presented is the current page is stated, and the sequence number of the page to be presented is all higher than the current page The sequence number in face, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
First page to be presented is shown according to the page data of described first page to be presented.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, 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 of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

  1. A kind of 1. method for exhibiting data, it is characterised in that including:
    When the page turning for receiving user is asked, the sequence number of the current page shown on client end interface is obtained;
    Sequence number of the current page in the data that client is asked described in the Serial No.;
    Difference corresponding to being obtained from default memory between the sequence number of sequence number and the current page it is minimum the The page data of one page to be presented;
    It is stored with the memory:The page data of at least one page to be presented;
    The page to be presented is the adjacent page of the current page, and the sequence number of the page to be presented be all higher than it is described The sequence number of current page, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
    First page to be presented is shown according to the page data of described first page to be presented.
  2. 2. according to the method for claim 1, it is characterised in that the page data according to described first page to be presented After showing described first page to be presented, in addition to:
    Delete the page data of described first page to be presented stored in the memory.
  3. 3. method according to claim 1 or 2, it is characterised in that the page according to described first page to be presented After first page to be presented described in data display, in addition to:
    Judge whether to be stored with the page data of the page to be presented in the memory;
    Or judge whether the quantity of the page to be presented described in the memory meets predetermined number;
    When not being stored with the page data of the page to be presented in the memory, or, it is to be presented described in the memory When the quantity of the page is unsatisfactory for predetermined number, load request is sent to service end, obtains the page data of the page to be presented, so that The quantity of the page to be presented meets the predetermined number in the memory.
  4. 4. according to the method for claim 1, it is characterised in that before the page turning for receiving user is asked, in addition to:
    Detect sliding trace of the user on client end interface;
    Judge the sliding trace whether with default page turning path matching;
    If the sliding trace and the page turning path matching, it is determined that receive the page turning request of the user.
  5. 5. according to the method for claim 4, it is characterised in that the page turning track includes:One from current page is lateral Another Slideslip pre-determined distance.
  6. 6. according to the method for claim 1, it is characterised in that the page data according to described first page to be presented Before showing described first page to be presented, in addition to:
    The default animation of displaying;
    It is described that first page to be presented is shown according to the page data of described first page to be presented, including:
    When the displaying time of the default animation exceeding preset time value, according to the page data of described first page to be presented Show described first page to be presented.
  7. 7. according to the method for claim 1, it is characterised in that also include:
    Judge whether include image data in the page data of described first page to be presented;
    If the page data of first page to be presented includes image data, judge whether the image data is compression Image data;
    If the image data is compressed picture data, is sent to service end and stop loading instruction, indicate that the service end is stopped Only load original image data corresponding to the compressed picture data.
  8. A kind of 8. data display device, it is characterised in that including:
    Acquisition module, for when receiving the page turning request of user, obtaining the sequence of the current page shown on client end interface Row number;Sequence number of the current page in the data that client is asked described in the Serial No.;
    The acquisition module, it is additionally operable to the sequence number of sequence number and the current page corresponding to being obtained from default memory Between minimum first page to be presented of difference page data;
    It is stored with the memory:The page data of at least one page to be presented;
    The page to be presented is the adjacent page of the current page, and the sequence number of the page to be presented be all higher than it is described The sequence number of current page, or, the sequence number of the page to be presented is respectively less than the sequence number of the current page;
    Display module, for showing first page to be presented according to the page data of described first page to be presented.
  9. 9. device according to claim 8, it is characterised in that also include:
    Removing module, for be presented according to the page data of described first page to be presented displaying described first in display module After the page, the page data of described first page to be presented stored in the memory is deleted.
  10. 10. device according to claim 8 or claim 9, it is characterised in that also include:
    First judge module, for judging whether to be stored with the page data of the page to be presented in the memory;Or judge Whether the quantity of the page to be presented meets predetermined number described in the memory;
    First sending module, during page data for not being stored with the page to be presented in the memory, or, it is described to deposit When the quantity of the page to be presented is unsatisfactory for predetermined number described in reservoir, load request is sent to service end, obtains page to be presented The page data in face, so that the quantity of the page to be presented meets the predetermined number in the memory.
CN201710910971.3A 2017-09-29 2017-09-29 Data display method and device Pending CN107679180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710910971.3A CN107679180A (en) 2017-09-29 2017-09-29 Data display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710910971.3A CN107679180A (en) 2017-09-29 2017-09-29 Data display method and device

Publications (1)

Publication Number Publication Date
CN107679180A true CN107679180A (en) 2018-02-09

Family

ID=61138385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710910971.3A Pending CN107679180A (en) 2017-09-29 2017-09-29 Data display method and device

Country Status (1)

Country Link
CN (1) CN107679180A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902244A (en) * 2019-01-17 2019-06-18 平安城市建设科技(深圳)有限公司 Page loading method, device, equipment and computer readable storage medium
CN111199136A (en) * 2018-10-30 2020-05-26 北京金山办公软件股份有限公司 Document content display method, device and equipment
CN114564455A (en) * 2022-02-25 2022-05-31 苏州浪潮智能科技有限公司 Data set display method, device, equipment and storage medium of distributed system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006046286A1 (en) * 2004-10-27 2008-08-07 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Data distribution system and method
CN102479198A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Data paging method, device and system
CN102968322A (en) * 2012-11-22 2013-03-13 用友软件股份有限公司 Data loading device and data loading method
CN106570097A (en) * 2016-10-31 2017-04-19 华为技术有限公司 Sequence generating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006046286A1 (en) * 2004-10-27 2008-08-07 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Data distribution system and method
CN102479198A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Data paging method, device and system
CN102968322A (en) * 2012-11-22 2013-03-13 用友软件股份有限公司 Data loading device and data loading method
CN106570097A (en) * 2016-10-31 2017-04-19 华为技术有限公司 Sequence generating method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111199136A (en) * 2018-10-30 2020-05-26 北京金山办公软件股份有限公司 Document content display method, device and equipment
CN111199136B (en) * 2018-10-30 2024-03-19 北京金山办公软件股份有限公司 Document content display method, device and equipment
CN109902244A (en) * 2019-01-17 2019-06-18 平安城市建设科技(深圳)有限公司 Page loading method, device, equipment and computer readable storage medium
CN114564455A (en) * 2022-02-25 2022-05-31 苏州浪潮智能科技有限公司 Data set display method, device, equipment and storage medium of distributed system
CN114564455B (en) * 2022-02-25 2024-01-19 苏州浪潮智能科技有限公司 Data set display method, device and equipment of distributed system and storage medium

Similar Documents

Publication Publication Date Title
CN105528408B (en) Page display method and device
CN104239495B (en) Searching method and searcher
CN106874520A (en) Webpage loading method, device and electronic equipment
CN108491529A (en) Information recommendation method and device
CN107317853A (en) Method, device and system for displaying dynamic effect of message popup window
CN110221747B (en) Presentation method of e-book reading page, computing device and computer storage medium
CN104199603B (en) Browser webpage control method and device and terminal
CN107679180A (en) Data display method and device
CN107562636A (en) Method and device for testing starting time of application software
CN110062262A (en) Transcoding control method, device, electronic equipment and the storage medium of video data
CN106469183A (en) Page rendering method and device, page data processing method and client
CN107391295A (en) The processing method and processing device of application exception
CN110347493A (en) Processing method, display methods, device, equipment and the storage medium of page data
CN107657011A (en) Video contents search method, apparatus and its equipment
CN104735062A (en) Network user registration method and server
CN109582882A (en) Search result shows method, apparatus and electronic equipment
CN105589631B (en) Information displaying method and device
CN107220063A (en) Dynamic wallpaper generation method and device
CN107332991A (en) Screen locking interface information processing method and device
CN107608737A (en) Animation playing method and device
CN107341097A (en) Information pushing method and device
CN107645605A (en) Screen theme page acquisition method and device and terminal equipment
CN106716326A (en) Control method, control apparatus and electronic device
CN109242758A (en) A kind of storage of material parameters, material parameters acquisition methods and device
CN112712394A (en) Client thread sharing method, system, computer and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209