CN107463313A - A kind of method of preloaded list - Google Patents

A kind of method of preloaded list Download PDF

Info

Publication number
CN107463313A
CN107463313A CN201710681908.7A CN201710681908A CN107463313A CN 107463313 A CN107463313 A CN 107463313A CN 201710681908 A CN201710681908 A CN 201710681908A CN 107463313 A CN107463313 A CN 107463313A
Authority
CN
China
Prior art keywords
data
page
page data
user
server module
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
CN201710681908.7A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710681908.7A priority Critical patent/CN107463313A/en
Publication of CN107463313A publication Critical patent/CN107463313A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of preloaded list method, including:Client modules request accesses the page data of server module the 1st, and local data library unit is inquired about after server module respond request, returns to the paged content of page 1 to client;Client modules receive the data that server module returns, and show user by list, and be buffered in local data cache module;Client modules backstage is automatic to obtain the page data of server module the 2nd, and client modules receive the 2nd page data, and are buffered in local data cache module.When user's slide downward, and when will slide into the end of the 1st page data, the 2nd page data is automatically added in the afterbody of list;When user formally slips down to 2 page data, client modules backstage obtains the page data of server module the 3rd automatically again.By that analogy.The present invention just can rapid requests server data, be quickly presented to user, moreover it is possible to avoid internal memory overflow problem, realize optimal user experience.

Description

A kind of method of preloaded list
Technical field
The present invention relates to computer software fields, and in particular to the preloaded list technology in computer software.
Background technology
In software development, the situation for needing to load mass data record is frequently encountered.In this case, it is limited Screen is difficult often that once display is complete.So, it will usually using the list mode that can be slided come display data.But due to Data volume is big, and once just from if server obtains total data, speed may be very slow, and asking the probability of failure can also increase Greatly.Therefore, generally data can be filled using the method that paging loads again.But traditional paging loading, simply will largely it count According to simple paging, such as 1000 datas are carried out, every page loads 50, when page presentation has arrived the end of current 50, Go to load following 50, such Consumer's Experience is not still fine.And on mobile terminals, either once load, also It is traditional paging loading, if data volume is very big, is loaded into after certain amount, it is easy to internal memory spilling occur.
The content of the invention
In view of the above-mentioned problems, the embodiments of the invention provide a kind of preloading technology of list, its core is to exist all the time The page data of local cache 3 (can be respectively designated as PreviousPage, CurrentPage, NextPage), wherein CurrentPage data are used to be presented in hardware screen, when user slides up and down, only need dynamic to change PreviousPage, CurrentPage, NextPage value can.Each page data can be n bars, and n can be with theory 1 natural number is greater than, it is preferred that n datas can fill 2-3 hardware screen.This method includes client modules, clothes End module of being engaged in and local data cache module.
This method comprises the steps of:
A kind of preloaded list method, comprises the following steps:
Step 1:Client modules request accesses the page data of server module the 1st, is inquired about after server module respond request Local data library unit, the paged content of page 1 is returned to client;
Step 2:Client modules receive the data that server module returns, and show user by list, and be buffered in In local data cache module;
Step 3:Client modules backstage is automatic to obtain the page data of server module the 2nd, and client modules receive page 2 Data, and be buffered in local data cache module.Now the 1st page data is CurrentPage data, and the 2nd page data is NextPage data;
Step 4:It is automatic in the afterbody of list when user's slide downward, and when will slide into the end of the 1st page data Add the 2nd page data;
Step 5:When user formally slips down to 2 page data, client modules backstage obtains service end automatically again The page data of module the 3rd.Now the 1st page data is PreviousPage data, and the 2nd page data is CurrentPage data, 3rd page data is NextPage data;
Step 6:So on, when user formally slips down to 3 page data, client modules backstage is automatic again Obtain the page data of server module the 4th.Now the 2nd page data is PreviousPage data, and the 3rd page data is CurrentPage data, the 4th page data are NextPage data;The downslide operation of user is performed by this rule.
Step 7:Now, if sliding operation in user's execution, when user will on slide into the top of the 3rd page data When, PreviousPage data, namely the 2nd page data are automatically added on the head of list.
Step 8:When sliding into 2 page data on user is formal, client modules backstage is automatic to obtain server module the 1 page data.Now the data that the 1st page data is PreviousPage will be become again, the 2nd page data is CurrentPage number According to the 3rd page data is NextPage data.
Further scheme is:
Local data cache module asks to access the page data of server module the 1st, or last page in client modules During data, current page and NextPage data are only cached, or only caches current page and PreviousPage data, in visitor When end module request in family accesses server module except the 1st page data and last page data, cache current page and PreviousPage data, NextPage data totally 3 page data,
The current page is CurrentPage data.
Further scheme is:
Each page data is n bars, and n is greater than 1 natural number.
Further scheme is:
The data of described n bars can fill 2 to 3 hardware screens.
Further scheme is:
The preloaded list method does not limit the computer language of realization, can be C language, Java, JavaScript Deng.
It should be noted that PreviousPage, CurrentPage, NextPage be intended merely to convenient narration and to this The name or other titles of the 3 page datas life of ground caching, can't have a negative impact to technical scheme.
By the above method, just can rapid requests server data, be quickly presented to user, moreover it is possible to avoid internal memory from overflowing Problem, realize that optimal user is experienced, allow the process of user's almost imperceptible data loading.
Brief description of the drawings
Fig. 1 is schematic flow sheet of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is done below in conjunction with the accompanying drawings further It is described in detail on ground.
As shown in figure 1, the core of this method is (to be respectively designated as in the page data of local cache 3 all the time PreviousPage, CurrentPage, NextPage), wherein CurrentPage data are used to be presented in hardware screen, When user slides up and down, dynamic is only needed to change PreviousPage, CurrentPage, NextPage value can. Each page data can be n bars, and n may be greater than 1 natural number in theory, it is preferred that n datas can fill 2-3 firmly Part screen.This method includes client modules, server module and local data cache module.
Specifically, client modules are responsible for reception user operation instruction, to service end request data, display data etc., take End module of being engaged in provides data, and it is (main that local data cache module is responsible for the data that cache client module obtains from server end For 3 page datas mentioned above).
Operating process is as follows:
Step 1:Client modules request accesses the page data of server module the 1st, is inquired about after server module respond request Local data library unit, the paged content of page 1 is returned to client;
Step 2:Client modules receive the data that server module returns, and show user by list, and be buffered in In local data cache module;
Step 3:Client modules backstage is automatic to obtain the page data of server module the 2nd, and client modules receive page 2 Data, and be buffered in local data cache module.Now the 1st page data is CurrentPage data, and the 2nd page data is NextPage data;
Step 4:It is automatic in the afterbody of list when user's slide downward, and when will slide into the end of the 1st page data Add the 2nd page data;
Step 5:When user formally slips down to 2 page data, client modules backstage obtains service end automatically again The page data of module the 3rd.Now the 1st page data is PreviousPage data, and the 2nd page data is CurrentPage data, 3rd page data is NextPage data;
Step 6:So on, when user formally slips down to 3 page data, client modules backstage is automatic again Obtain the page data of server module the 4th.Now the 2nd page data is PreviousPage data, and the 3rd page data is CurrentPage data, the 4th page data are NextPage data;The downslide operation of user is performed by this rule.
Step 7:Now, if sliding operation in user's execution, when user will on slide into the top of the 3rd page data When, PreviousPage data, namely the 2nd page data are automatically added on the head of list.
Step 8:When sliding into 2 page data on user is formal, client modules backstage is automatic to obtain server module the 1 page data.Now the data that the 1st page data is PreviousPage will be become again, the 2nd page data is CurrentPage number According to the 3rd page data is NextPage data.
Although reference be made herein to invention has been described for explanatory embodiment of the invention, and above-described embodiment is only this hair Bright preferable embodiment, embodiments of the present invention are simultaneously not restricted to the described embodiments, it should be appreciated that people in the art Member can be designed that a lot of other modifications and embodiment, and these modifications and embodiment will fall in principle disclosed in the present application Within scope and spirit.

Claims (5)

  1. A kind of 1. preloaded list method, it is characterised in that:Comprise the following steps:
    Step 1:Client modules request accesses the page data of server module the 1st, is inquired about after server module respond request local Database Unit, the paged content of page 1 is returned to client;
    Step 2:Client modules receive the data that server module returns, and show user by list, and be buffered in local In data cache module;
    Step 3:Client modules backstage is automatic to obtain the page data of server module the 2nd, and client modules receive the 2nd page data, And it is buffered in local data cache module.Now the 1st page data is CurrentPage data, and the 2nd page data is NextPage data;
    Step 4:When user's slide downward, and when will slide into the end of the 1st page data, it is automatically added in the afterbody of list 2nd page data;
    Step 5:When user formally slips down to 2 page data, client modules backstage obtains server module automatically again 3rd page data.Now the 1st page data is PreviousPage data, and the 2nd page data is CurrentPage data, the 3rd Page data is NextPage data;
    Step 6:So on, when user formally slips down to 3 page data, client modules backstage is automatic again to be obtained The page data of server module the 4th.Now the 2nd page data is PreviousPage data, and the 3rd page data is CurrentPage Data, the 4th page data is NextPage data;The downslide operation of user is performed by this rule.
    Step 7:Now, if sliding operation in user's execution, when user will on slide into the top of the 3rd page data when, The head of list is automatically added to PreviousPage data, namely the 2nd page data.
    Step 8:When sliding into 2 page data on user is formal, client modules backstage is automatic to obtain server module page 1 Data.Now the data that the 1st page data is PreviousPage will be become again, the 2nd page data is CurrentPage data, 3rd page data is NextPage data.
  2. 2. preloaded list method according to claim 1, it is characterised in that:
    Local data cache module asks to access the page data of server module the 1st, or last page data in client modules When, current page and NextPage data are only cached, or current page and PreviousPage data are only cached, in client Module request access server module except the 1st page data and last page data when, cache current page and PreviousPage data, NextPage data totally 3 page data,
    The current page is CurrentPage data.
  3. 3. preloaded list method according to claim 1 or claim 2, it is characterised in that:
    Each page data is n bars, and n is greater than 1 natural number.
  4. 4. preloaded list method according to claim 3, it is characterised in that:
    The data of described n bars can fill 2 to 3 hardware screens.
  5. 5. preloaded list method according to claim 1, it is characterised in that:
    The preloaded list method does not limit the computer language of realization.
CN201710681908.7A 2017-08-10 2017-08-10 A kind of method of preloaded list Pending CN107463313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710681908.7A CN107463313A (en) 2017-08-10 2017-08-10 A kind of method of preloaded list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710681908.7A CN107463313A (en) 2017-08-10 2017-08-10 A kind of method of preloaded list

Publications (1)

Publication Number Publication Date
CN107463313A true CN107463313A (en) 2017-12-12

Family

ID=60548778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710681908.7A Pending CN107463313A (en) 2017-08-10 2017-08-10 A kind of method of preloaded list

Country Status (1)

Country Link
CN (1) CN107463313A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358790A (en) * 2018-09-27 2019-02-19 努比亚技术有限公司 Interface display method, mobile terminal and computer readable storage medium
CN109643241A (en) * 2018-05-14 2019-04-16 优视科技新加坡有限公司 Display processing method, device, storage medium and electric terminal
CN110765380A (en) * 2019-09-29 2020-02-07 五八有限公司 Data loading method and terminal for list page
CN110806910A (en) * 2018-07-18 2020-02-18 深圳市鸿合创新信息技术有限责任公司 Method and system for optimizing carousel map and electronic equipment
CN115344184A (en) * 2022-08-29 2022-11-15 杭州安司源科技有限公司 Unlimited scrolling list control on computer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN103677554A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Method and device for sliding screen smoothly
CN103853729A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Page loading method and system
CN104793945A (en) * 2015-04-27 2015-07-22 深圳市美贝壳科技有限公司 Large-batch picture displaying method for preventing memory overflow and device thereof
CN106294609A (en) * 2016-07-29 2017-01-04 北京小米移动软件有限公司 page loading method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN103677554A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Method and device for sliding screen smoothly
CN103853729A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Page loading method and system
CN104793945A (en) * 2015-04-27 2015-07-22 深圳市美贝壳科技有限公司 Large-batch picture displaying method for preventing memory overflow and device thereof
CN106294609A (en) * 2016-07-29 2017-01-04 北京小米移动软件有限公司 page loading method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109643241A (en) * 2018-05-14 2019-04-16 优视科技新加坡有限公司 Display processing method, device, storage medium and electric terminal
CN109643241B (en) * 2018-05-14 2022-06-24 阿里巴巴(中国)有限公司 Display processing method, device, storage medium and electronic terminal
CN110806910A (en) * 2018-07-18 2020-02-18 深圳市鸿合创新信息技术有限责任公司 Method and system for optimizing carousel map and electronic equipment
CN109358790A (en) * 2018-09-27 2019-02-19 努比亚技术有限公司 Interface display method, mobile terminal and computer readable storage medium
CN110765380A (en) * 2019-09-29 2020-02-07 五八有限公司 Data loading method and terminal for list page
CN115344184A (en) * 2022-08-29 2022-11-15 杭州安司源科技有限公司 Unlimited scrolling list control on computer

Similar Documents

Publication Publication Date Title
CN107463313A (en) A kind of method of preloaded list
US11032388B2 (en) Methods for prerendering and methods for managing and configuring prerendering operations
US11019179B2 (en) Access to network content
US8745212B2 (en) Access to network content
RU2632128C1 (en) Method and system of downloading image fragments to client device
CN111639289A (en) Webpage loading method and device
CN102591963A (en) Method and device for controlling webpage content loading
US20150347615A1 (en) Active Web Page Consolidator and Internet History Management System
US9367211B1 (en) Interface tab generation
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN109829077A (en) A kind of page display method, device and equipment
CN107329910A (en) A kind of web front end data based on localStorage are locally stored and access method
CN105808221A (en) Card type desktop realization method and apparatus
CN111966938B (en) Configuration method and system for realizing loading speed improvement of front-end page of cloud platform
CN106202368B (en) Preloading method and device
CN110309463B (en) Floor page optimization method and device, computer storage medium and network equipment
CN108196904A (en) Calculate the method, apparatus and computer storage media of page response duration
CN112052420A (en) Page sharing picture generation method and device and page sharing method and device
US20130016108A1 (en) Information processing apparatus, information processing method, and program
CN105653724A (en) Page exposure monitoring method and device
RU2632150C1 (en) Method and system of downloading the image to the customer's device
CN111858612B (en) Data accelerated access method and device based on graph database and storage medium
US10834195B2 (en) Information processing device, information processing method, program, and storage medium
CN117130792A (en) Processing method, device, equipment and storage medium for cache object
US20140331117A1 (en) Application-based dependency graph

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: 20171212