CN110377361A - Data load method, device, computer equipment and storage medium - Google Patents

Data load method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110377361A
CN110377361A CN201910637335.7A CN201910637335A CN110377361A CN 110377361 A CN110377361 A CN 110377361A CN 201910637335 A CN201910637335 A CN 201910637335A CN 110377361 A CN110377361 A CN 110377361A
Authority
CN
China
Prior art keywords
data
display data
local
configuration file
identification
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
CN201910637335.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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910637335.7A priority Critical patent/CN110377361A/en
Publication of CN110377361A publication Critical patent/CN110377361A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application involves a kind of data load method, device, computer equipment and storage mediums.The described method includes: receiving the displaying request of current page, show that request carries the Data Identification that current page identifies display data corresponding at least one, it is requested in response to showing, send data acquisition request, data acquisition request carries the Data Identification for being not stored in local display data, the display data returned according to data acquisition request is received, the display data returned is locally being saved, is showing display data corresponding with current page mark.By storing data in server, when receiving displaying request, just the data that do not download are downloaded, memory headroom are saved, to promote user experience.

Description

Data load method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology more particularly to a kind of data load method, device, computer equipment and deposit Storage media.
Background technique
The resource that mobile terminal uses includes image resource, video resource, audio resource etc., and various resources can be divided into two Class, one is directly obtaining from cloud when using, another kind is stored in local.As mobile terminal business function is more and more, make Resource increasingly increases, and causes the installation of installation kit increasing.By taking picture as an example, common picture include static images and Dynamic picture, static images, such as various icon, footmark, can be stored directly in local, and dynamic picture is typically all to use When directly obtained from cloud, reduce installation kit, but as the development static resource of business is also more and more, the memory of occupancy is got over Come bigger, reduces user experience.
Summary of the invention
In order to solve the above-mentioned technical problem, it this application provides a kind of data load method, device, computer equipment and deposits Storage media.
In a first aspect, this application provides a kind of data load methods, comprising:
The displaying request for receiving current page shows that request carries current page and identifies displaying number corresponding at least one According to Data Identification;
It is requested in response to showing, sends data acquisition request, data acquisition request carrying is not stored in local displaying number According to Data Identification;
The display data returned according to data acquisition request is received, the display data returned is locally being saved;
Show display data corresponding with current page mark.
Second aspect, this application provides a kind of data loading devices, comprising:
Request receiving module, for receive current page displaying request, show request carry current page mark and extremely The Data Identification of a few corresponding display data;
Data transmission blocks send data acquisition request, data acquisition request carrying is not deposited for requesting in response to showing Store up the Data Identification in local display data;
Data reception module is locally saving return for receiving the display data returned according to data acquisition request Display data;
Data display module, for showing display data corresponding with current page mark.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage Computer program, processor perform the steps of when executing the computer program
The displaying request for receiving current page shows that request carries current page and identifies displaying number corresponding at least one According to Data Identification;
It is requested in response to showing, sends data acquisition request, data acquisition request carrying is not stored in local displaying number According to Data Identification;
The display data returned according to data acquisition request is received, the display data returned is locally being saved;
Show display data corresponding with current page mark.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
The displaying request for receiving current page shows that request carries current page and identifies displaying number corresponding at least one According to Data Identification;
It is requested in response to showing, sends data acquisition request, data acquisition request carrying is not stored in local displaying number According to Data Identification;
The display data returned according to data acquisition request is received, the display data returned is locally being saved;
Show display data corresponding with current page mark.
Above-mentioned data load method, device, computer equipment and storage medium.The method passes through according to current page exhibition Show the corresponding display data of the current presentation page in request, determines whether each display data is stored in local, for not protecting In the presence of local display data, corresponding data acquisition request is sent, the data returned according to request are received, so as to protect in local The data deposited include whole display datas, show current page.By storing data in server, asked receiving displaying When asking, just the data that do not download are downloaded, memory headroom are saved, to promote user experience.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the applied environment figure of data load method in one embodiment;
Fig. 2 is the flow diagram of data load method in one embodiment;
Fig. 3 is the flow diagram of data buffer storage in one embodiment;
Fig. 4 is the flow diagram that data update in one embodiment;
Fig. 5 is the structural block diagram of data loading device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Fig. 1 is the applied environment figure of data load method in one embodiment.Referring to Fig.1, the data load method application In data load system.The data load system includes terminal 110 and server 120.Terminal 110 and server 120 pass through net Network connection.Terminal 110 receives the displaying request of current page, and it is corresponding at least one to show that request carries current page mark The Data Identification of display data is requested in response to showing, sends data acquisition request, and data acquisition request carrying is not stored in this The Data Identification of the display data on ground receives the display data that server 120 is returned according to data acquisition request, in local preservation The display data of return shows display data corresponding with current page mark.Terminal 110 specifically can be terminal console or shifting Dynamic terminal, mobile terminal specifically can be at least one of mobile phone, tablet computer, laptop etc..Server 120 can be used The server cluster of independent server either multiple servers composition is realized.
As shown in Fig. 2, in one embodiment, providing a kind of data load method.The present embodiment is mainly in this way It is illustrated applied to the terminal 110 (or server 120) in above-mentioned Fig. 1.Referring to Fig. 2, which is specifically wrapped Include following steps:
Step S201 receives the displaying request of current page.
In this embodiment, show that request carries the number that current page identifies display data corresponding at least one According to mark.
Specifically, comprising one or more pages in terminal, current page is positive any one page accurately shown, such as Application terminal includes multiple service surfaces, and the different business information of each page presentation, current page can be in multiple service surfaces Any one page.By taking homepage as an example, when starting APP, when entering homepage for the first time, receives and show that the displaying of homepage is asked It asks.Current page mark is the mark data for identified page, and page iden-tity can be identified using self-defining data, data mark Knowledge is the mark for identifying display data, and by taking picture as an example, Data Identification includes the uniform resource locator of picture (Uniform Resource Locator, URL), passes through URL mark data and image name etc..Display data refers in terminal On displaying information, show that information includes image data, lteral data, video data and audio data etc..Such as image data Include icon, footmark and occupy-place figure etc..
In one embodiment, the displaying request that automatically generates when the displaying request of current page is into application terminal, It is also possible to the page presentation in page switching, automatically generated request.
In one embodiment, it is same levels that be not stored in local display data, which include at least one and current page, The page at the same level resource to be presented and/or current page at least one junior's page resource to be presented.
Specifically, the page for including in terminal includes multi-interface.The pages at different levels may include one or more.Such as one The grade page includes one or more second level pages, and the corresponding three-level page of each second level page may include one or more.Together The grade page refers to the page of same levels, and as included multiple first level pages in terminal, any one first level pages is current page, Then other first level pages are the page at the same level of current page.Junior's page of the second level page includes that may include one or more The page of rank, it can including the three-level page, the level Four page or Pyatyi page etc..The displaying request pair of each displayed page The resource to be presented answered can be customized.By taking first level pages as an example, after the displaying for receiving first level pages is requested, work as in acquisition When the display data of the preceding page and/or when user browses first level pages, other level-one pages except current page are obtained out The resource to be presented of the corresponding junior's page of the resource to be presented and first level pages in face, acquisition are not stored in local displaying Data, and display data is stored in local.
In one embodiment, before step S201, further includes: the corresponding each page in entire application terminal is corresponding Display data storage beyond the clouds.
Specifically, an application terminal includes multiple pages, includes multiple display datas in each page.By each displaying Data store corresponding position beyond the clouds, are associated with the Data Identification of each page and display data.Store each display data Data address can be used as the Data Identification of each display data.
In one embodiment, the Data Identification of the associated display data of each page iden-tity, it is understood that there may be identical number According to mark, Data Identification A is all such as associated in the page 1 and the page 2.
Step S202 is requested in response to showing, sends data acquisition request.
In this embodiment, data acquisition request carries the Data Identification for being not stored in local display data.
Step S203 receives the display data returned according to data acquisition request, is locally saving the display data returned.
Step S204 shows display data corresponding with current page mark.
Specifically, in response to request is shown, the data of demand are shown on showing interface, send data acquisition request. Wherein carried in the computer instruction not stored when data acquisition request for obtaining the computer instruction of data to server In the Data Identification of local display data.After the downloading installation of application terminal, part display data is with application The downloading process of terminal is locally downloading, is stored in local, or as downloading portion is requested in the displaying after installation Divide display data to locally.
In one embodiment, judge whether the corresponding display data of each Data Identification is stored in local, when any one When the corresponding display data of a Data Identification is not stored in local, data acquisition request is sent.
Specifically, judge whether the corresponding display data of each Data Identification is stored in local, be by each data What the match condition of mark determined.According to the Data Identification of the corresponding display data of page iden-tity of page presentation request and local The Data Identification of storage is matched, and matched mark is stored in local, the storage of the mark that does not match beyond the clouds, need from Cloud downloading.It includes multiple, Data Identification corresponding to any one display data that current page, which identifies corresponding display data, It is all matched, determines the Data Identification for failing to match with local Data Identification, sent and fail and local Data Identification The data acquisition request of the Data Identification matched.
Corresponding data acquisition request is sent to server according to Data Identification, is obtained in server based on data mark pair The display data answered, and display data is back to application terminal, locally saving the display data returned.
It when the corresponding display data of the page iden-tity of current page is stored in local, executes and shows logic, displaying is worked as The preceding page.
In one embodiment, when the corresponding display data of any one Data Identification is stored in local, into exhibition Show display data corresponding with current page mark.
Specifically, when the corresponding display data of the page iden-tity for judging current page stores when local, i.e., it is local can It to find the Data Identification of the corresponding each display data of current page, directly executes and shows logic, show current page.
Above-mentioned data load method, comprising: the displaying request for receiving current page shows that request carries current page mark The Data Identification of display data corresponding at least one, sends data acquisition request, and data acquisition request carrying is not stored in The Data Identification of local display data receives the display data returned according to data acquisition request, is locally saving return Display data shows display data corresponding with current page mark.By showing the current exhibition in request according to current page Show the corresponding display data of the page, determine whether each display data is stored in local, for being not held in local displaying number According to sending corresponding data acquisition request, receive the data returned according to request, so that the data saved in local include all Display data, show current page.By storing data in server, receive show request when, just to not downloading Data be downloaded, save memory headroom, to promote user experience.
In one embodiment, as shown in figure 3, above-mentioned data load method, further includes:
Step S301, obtains local profile, and local profile includes page iden-tity and corresponding preload information With corresponding preload condition.
Step S302 judges whether identify comprising current page in local profile.
Step S303 when in local profile including current page mark, and detects the behaviour in current page When work is matched with preload condition, the data buffer storage request of the corresponding display data of preload information is sent.
Step S304, the display data that cache server is returned according to cache request is obtained.
Specifically, local profile is the configuration file downloaded when application terminal is downloaded, for configuring pre-add information carrying Breath and corresponding preload condition, preload information refer to that, when showing interface, partial data is being opened up since committed memory is larger It is directly obtained from server end when showing, it is slow to will lead to data loading.To influence user experience, in order to accelerate adding for data It carries, improves user experience, can judge whether current page includes preload information, if it exists in advance after showing current page Load information, and detected in current page and when matched operation, then send carrying preload information in preload condition Data buffer storage request to server, server based on data cache request obtains corresponding preload information, and returns to pre-add Information carrying is ceased to local, to need to show corresponding preload information, can directly show pre- displaying information.
In one embodiment, preload condition is the preconfigured condition for trigger data caching, pre-add carrier strip Part customized can be arranged, such as can set triggering gesture, trigger area.
In one embodiment, as shown in figure 4, above-mentioned data load method, further includes:
Step S401 receives the current cloud configuration file that server is sent.
Step S402, it is matched with the Data Identification in local display data from being screened in current cloud configuration file Data Identification.
Step S403 sends the data acquisition request for carrying matched Data Identification.
Step S404 receives the corresponding displaying replacement data of data acquisition request according to matched Data Identification.
Step S405 will show replacement data, replace the display data in local corresponding matched Data Identification pair.
Specifically, current cloud configuration file refers to that server is sent to the configuration file of application terminal, the configuration file In include the information of data that needs to update.Server, which sends cloud configuration file to application terminal, can be active transmission, After can also thinking server request with application terminal, server is according to the configuration file for requesting return.Such as when application terminal starts, Server actively returns to current cloud configuration file or server according to log-on message and matches in the cloud for detecting the presence of update When setting file, cloud configuration file periodically is sent to application terminal.
After receiving cloud configuration file, in the configuration file of cloud Data Identification and the displaying number that locally saves According to Data Identification matched, or displaying replacement data corresponding with matched Data Identification, after being updated as in server Display data, receive server return the corresponding displaying replacement data of matched Data Identification, just with show replacement data Replace the corresponding display data being locally stored.If picture A is A1, the replacement that server returns in the picture version being locally stored Version is A2, then replaces version A1 using version A2, deletes version A1.
In one embodiment, local history cloud configuration file is obtained, judges that the generation time of current configuration file is It is no after the generation time of history cloud configuration file, current configuration file generate the time history cloud configuration file generation After time, into the matched data from screening in current cloud configuration file and the Data Identification in local display data Mark.
Specifically, history cloud configuration file is the cloud configuration file received before current cloud configuration file, configuration File includes to generate the time, is compared to the generation time of current cloud configuration file and history cloud configuration file, when current In the generation time of history cloud configuration file between the generation of cloud configuration file, indicate that the current cloud configuration file generated is New configuration file determines the display data for needing to update according to new configuration file, enters step S402, until according to new The display data that configuration file updates needs is updated.Due to business demand etc., for the display data downloaded into Row updates, so that the display data shown on the page more meets business demand.
In one embodiment, when the history cloud configuration file stored in local includes multiple cloud configuration files, choosing It selects and generates the cloud configuration file of time the latest as history cloud configuration file.Only with history cloud configuration file the latest, mention High data-handling efficiency.
In one embodiment, merges the corresponding configuration information of each Data Identification in each sub- configuration file, obtain currently The corresponding configuration information of each Data Identification in configuration file, wherein when there are identical data marks in different sub- configuration files When knowledge, the configuration information of the Data Identification of generation time sub- configuration file the latest in each sub- configuration file is chosen, as working as The corresponding configuration information of Data Identification in preceding configuration file.
Specifically, current configuration file includes multiple sub- configuration files, the generation time of each sub- configuration file each not phase Together, the Data Identification in each sub- configuration file can be identical or not identical, specifically sees and needs to update in business demand Data whether be identical data, if identical data, then Data Identification is identical, if unacceptable data, then data It identifies not identical.When merging the configuration information of each sub- configuration file, if there are phases in any different sub- configuration file With Data Identification when, select the configuration information for generating time Data Identification rearward to match confidence as current configuration file Breath.For example, current configuration file includes 4 sub- configuration files, according to configuration file the generation time by it is early to evening be sub respectively Configuration file 1, sub- configuration file 2, sub- configuration file 3 and sub- configuration file 4, in neutron configuration file 1 and sub- configuration file 4 It include the configuration information of data A, since sub- configuration file 4 is later than sub- configuration file 1, then by the data A in sub- configuration file 4 Configuration information as the configuration information in current configuration file.Configuration information is determined by chronological order, just can ensure that Configuration information is newest information, and guarantee meets newest business demand.
In a specific embodiment, above-mentioned data load system, comprising: terminal and server.
For ease of description, display data is image.Wherein the downloader of picture is common downloader, including but unlimited In SDWebImage downloader, Picture Downloader downloader etc..
When receiving the displaying request of each image of current page, judge whether the corresponding each picture of current page is protected There are local, specific deterministic process can use picture identification, if picture name is searched, when finding current page institute With displaying image all there is local when, directly show, one or more image is not stored in local if it exists, then use image Downloader download pictures.
Local profile has been locally stored, has been stored classifiedly in local profile and needs to preload the information of picture (such as URL, belong to which business page, downloading condition etc.).In APP starting, local profile is loaded.In each business page It is buried in initial method a little, in service page kept man of a noblewoman time initialization, inquires what needs preloaded from the information of configuration file Pictorial information, download pictures are simultaneously stored to locally, and the picture downloaded is not removed automatically, except non-user deletes APP.
The picture for needing hot repair multiple is updated beyond the clouds, is generated cloud configuration file and is placed on cloud, deposits in the configuration file of cloud The pictorial information (such as URL) for needing hot repair multiple is put, in APP starting, request back office interface obtains profile information, according to The pictorial information for needing hot repair multiple in configuration file is compared, for the figure downloaded one by one in local download pictures Piece is then re-downloaded and is stored.Since the picture shown before is improper, such as easily cause dispute over copyright, updates beyond the clouds easy Cause the picture of dispute over copyright.
Data preload detailed process include:
In APP starting, local profile is loaded.
When burying business page initialization a little, from local acquisition, whether the business interface had downloaded picture Information does not execute any operation if having downloaded.
If not downloading, picture, then the letter from local profile had been downloaded locally recording the business interface It is inquired in breath and needs the pictorial information that preloads, wherein the downloading mode of pictorial information includes: downloading always and only under Wi-Fi It carries.User can customized setting downloading mode according to demand.The data traffic of user can be saved using only Wi-Fi downloading, Improve user experience.According to the downloading mode of each image, current downloading condition is determined, when downloading mode is to download always, It then directly downloads corresponding image and is saved in local, for the picture of only Wi-Fi downloading, then when the network of user is Wi-Fi, Start to download corresponding image, and saves image to locally.
Picture more new technological process in cloud is as follows:
The picture for needing hot repair multiple is updated beyond the clouds, is generated cloud configuration file and is placed on cloud;
In APP starting, request back office interface obtains cloud configuration file, updates in the configuration file of cloud comprising needs The URL and generation temporal information list of image.
The generation time that cloud generates the cloud configuration file of time and the last time being locally stored update is compared, if local The generation time of the cloud configuration file of storage with request the generation time of back office interface cloud configuration file it is identical or later when, It is then not processed, otherwise the content of the newer all cloud configuration files of acquisition time, and the storage of newest generation time is arrived It is local.
The picture and local download pictures for needing to update are compared, and for the picture downloaded, then re-download simultaneously Storage.
Based on the purpose for reducing installation kit size, part resource is moved on to server, when user uses correlation function Carry out picture downloading and displaying.It during cloud on picture, finds on some picture resources after cloud, the exhibition for the first time for function Show that influence is very big, such as: occupy-place figure, the picture for temporarily showing when downloading network picture.Therefore, for this picture Pre-loaded function is provided, guarantees to have downloaded completion before using picture.
On picture after cloud, in order to save customer flow, mobile terminal can only download once upper cloud picture resource, download Picture will not be updated with cloud.In order to preferably support business demand, while user mobile phone flow is saved as far as possible, therefore real The more new function of picture resource is showed.
Fig. 2-4 is the flow diagram of data load method in one embodiment.Although should be understood that Fig. 2's -4 Each step in flow chart is successively shown according to the instruction of arrow, but these steps are not necessarily to indicate according to arrow Sequence successively executes.Unless expressly stating otherwise herein, there is no stringent sequences to limit for the execution of these steps, these steps Suddenly it can execute in other order.Moreover, at least part step in Fig. 2-4 may include multiple sub-steps or multiple Stage, these sub-steps or stage are not necessarily to execute completion in synchronization, but can execute at different times, These sub-steps perhaps the stage execution sequence be also not necessarily successively carry out but can be with other steps or other steps Sub-step or at least part in stage execute in turn or alternately.
In one embodiment, as shown in figure 5, providing a kind of data loading device 200, comprising:
Request receiving module 201, for receive current page displaying request, show request carry current page mark and The Data Identification of at least one corresponding display data.
Data transmission blocks 202 send data acquisition request, data acquisition request carries for requesting in response to showing It is not stored in the Data Identification of local display data.
Data reception module 203 is returned for receiving the display data returned according to data acquisition request locally saving Display data.
Data display module 204, for showing display data corresponding with current page mark.
In one embodiment, above-mentioned data loading device, further includes:
Judgment module, for judging whether the corresponding display data of each Data Identification is stored in local.
Data transmission blocks are also used to when the corresponding display data of any one Data Identification is not stored in local, hair Send data acquisition request.
In one embodiment, above-mentioned data loading device, further includes:
Data display module is also used to when the corresponding display data of any one Data Identification is stored in local, exhibition Show display data corresponding with current page mark.
In one embodiment, above-mentioned data loading device, further includes:
Local profile obtains module, for obtaining local profile, local profile include page iden-tity and Corresponding preload information and corresponding preload condition.
Configuration information judgment module, for whether judging in local profile comprising current page mark.
Cache request sending module is identified comprising current page for working as in local profile, and is detected current When operation in the page is matched with preload condition, the data buffer storage request of the corresponding display data of preload information is sent.
Data cache module, the display data returned for cache server according to cache request is obtained.
In one embodiment, above-mentioned data loading device, further includes:
Cloud configuration file receiving module, for receiving the current cloud configuration file of server transmission.
Data screening module, for from being screened in current cloud configuration file and the Data Identification in local display data Matched Data Identification.
Data transmission blocks are also used to send the data acquisition request for carrying matched Data Identification.
Data reception module is also used to receive the corresponding displaying replacement of data acquisition request according to matched Data Identification Data;
Data replacement module is replaced for that will show replacement data in local corresponding matched Data Identification pair Display data.
In one embodiment, above-mentioned data loading device, further includes:
Configuration file sorting module, for merging the corresponding configuration information of each Data Identification in each sub- configuration file, Obtain the corresponding configuration information of each Data Identification in current configuration file, wherein when there are identical in different sub- configuration files Data Identification when, choose the Data Identification that time sub- configuration file the latest is generated in each sub- configuration file with confidence Breath, as the corresponding configuration information of Data Identification in current configuration file.
In one embodiment, it includes at least one current page that local display data is not stored in data transmission blocks The resource to be presented of at least one junior's page of the resource to be presented and/or current page of the page at the same level in face.
Fig. 6 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be Fig. 1 In terminal 110 (or server 120).As shown in fig. 6, it includes total by system that the computer equipment, which includes the computer equipment, Processor, memory, network interface, input unit and the display screen of line connection.Wherein, memory includes that non-volatile memories are situated between Matter and built-in storage.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer journey Sequence when the computer program is executed by processor, may make processor to realize data load method.It can also be stored up in the built-in storage There is computer program, when which is executed by processor, processor may make to execute data load method.Computer The display screen of equipment can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be display The touch layer covered on screen is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be outer Keyboard, Trackpad or mouse for connecing etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, data loading device provided by the present application can be implemented as a kind of shape of computer program Formula, computer program can be run in computer equipment as shown in FIG. 6.Composition can be stored in the memory of computer equipment should Each program module of data loading device, for example, request receiving module shown in fig. 5 201, data transmission blocks 202, data Receiving module 203 and data display module 204.The computer program that each program module is constituted makes processor execute this explanation Step in the data load method of each embodiment of the application described in book.
For example, computer equipment shown in fig. 6 can receive mould by the request in data loading device as shown in Figure 5 Block 201 executes the displaying request for receiving current page, shows that request carries current page and identifies displaying corresponding at least one The Data Identification of data.Computer equipment can be executed by data transmission blocks 202 and be requested in response to showing, sent data and obtained Request is taken, data acquisition request carries the Data Identification for being not stored in local display data.Computer equipment can pass through number The display data for receiving and returning according to data acquisition request is executed according to receiving module 203, is locally saving the display data returned. Computer equipment can be executed by data display module 204 and show display data corresponding with current page mark.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of reception current page when executing computer program The displaying in face is requested, and shows that request carries the Data Identification that current page identifies display data corresponding at least one, response It is requested in showing, sends data acquisition request, data acquisition request carries the Data Identification for being not stored in local display data, The display data returned according to data acquisition request is received, the display data returned is locally being saved, is showing and current page mark Know corresponding display data.
In one embodiment, it is also realized before sending data acquisition request, when processor executes computer program following Step: judging whether the corresponding display data of each Data Identification is stored in local, when the corresponding exhibition of any one Data Identification When registration evidence is not stored in local, into transmission data acquisition request.
In one embodiment, judge that the corresponding display data of each Data Identification whether there is after local, processing Device also performs the steps of when executing computer program when the corresponding display data of any one Data Identification is stored in local When, into displaying display data corresponding with current page mark.
In one embodiment, acquisition local profile is also performed the steps of when processor executes computer program, When local profile includes page iden-tity and corresponding preload information and the matching of corresponding preload condition carrier strip part, judgement Whether identify comprising current page in local profile, when including that current page identifies in local profile, and detects When operation in current page is matched with default loading environment, the data buffer storage of the corresponding display data of preload information is sent Request, the display data that cache server is returned according to cache request is obtained.
In one embodiment, it is also performed the steps of when processor executes computer program and receives what server was sent Current cloud configuration file, it is matched with the Data Identification in local display data from being screened in current cloud configuration file Data Identification, sends the data acquisition request for carrying matched Data Identification, and reception is obtained according to the data of matched Data Identification The corresponding displaying replacement data of request is taken, will show replacement data, is replaced in local corresponding matched Data Identification pair Display data.
In one embodiment, current configuration file includes to generate the time, and processor is also realized when executing computer program Following steps: obtaining local history cloud configuration file, judges whether the generation time of current configuration file configures in history cloud After the generation time of file, the generation time of current configuration file after the generation time of history cloud configuration file, is executed From the matched Data Identification screened in current cloud configuration file with the Data Identification in local display data.
In one embodiment, when current configuration file includes multiple sub- configuration files, processor executes computer program When also perform the steps of and merge the corresponding configuration information of each Data Identification in each sub- configuration file, be currently configured The corresponding configuration information of each Data Identification in file, wherein when in different sub- configuration files there are when identical Data Identification, The configuration information that the Data Identification of the sub- configuration file of time the latest is generated in each sub- configuration file is chosen, as current-configuration The corresponding configuration information of Data Identification in file.
In one embodiment, it is same levels that be not stored in local display data, which include at least one and current page, The page at the same level resource to be presented and/or current page at least one junior's page resource to be presented.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the displaying request for receiving current page when being executed by processor, show that request carries current page The Data Identification for identifying display data corresponding at least one is requested in response to showing, sends data acquisition request, and data obtain It takes request to carry the Data Identification for being not stored in local display data, receives the displaying number returned according to data acquisition request According in the display data for locally saving return, displaying display data corresponding with current page mark.
In one embodiment, send data acquisition request before, when computer program is executed by processor also realize with Lower step: judging whether the corresponding display data of each Data Identification is stored in local, when any one Data Identification is corresponding When display data is not stored in local, into transmission data acquisition request.
In one embodiment, judge that the corresponding display data of each Data Identification whether there is after local, calculate Machine program also performs the steps of when being executed by processor: when the corresponding display data of any one Data Identification is stored in When local, into displaying display data corresponding with current page mark.
In one embodiment, acquisition is also performed the steps of when computer program is executed by processor, and text is locally configured Part, when local profile includes page iden-tity and corresponding preload information and the matching of corresponding preload condition carrier strip part, Judge in local profile whether to identify comprising current page, when including that current page identifies, and examines in local profile When measuring the operation in current page and matching with default loading environment, the data of the corresponding display data of preload information are sent Cache request, the display data that cache server is returned according to cache request is obtained.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives server transmission Current cloud configuration file, from the matching screened in current cloud configuration file with the Data Identification in local display data Data Identification, send the data acquisition request for carrying matched Data Identification, receive the data according to matched Data Identification The corresponding displaying replacement data of acquisition request will show replacement data, replace in local corresponding matched Data Identification pair Display data.
In one embodiment, current configuration file includes to generate the time, and reality is gone back when computer program is executed by processor Existing following steps: local history cloud configuration file is obtained, judges whether the generation time of current configuration file matches in history cloud After setting the generation time of file, the generation time of current configuration file after the generation time of history cloud configuration file, is held Matched Data Identification of the row from screening in current cloud configuration file and the Data Identification in local display data.
In one embodiment, when current configuration file includes multiple sub- configuration files, computer program is held by processor It is also performed the steps of when row and merges the corresponding configuration information of each Data Identification in each sub- configuration file, currently matched Set the corresponding configuration information of each Data Identification in file, wherein when there are identical Data Identifications in different sub- configuration files When, the configuration information that the Data Identification of the sub- configuration file of time the latest is generated in each sub- configuration file is chosen, as current The corresponding configuration information of Data Identification in configuration file.
In one embodiment, it is same levels that be not stored in local display data, which include at least one and current page, The page at the same level resource to be presented and/or current page at least one junior's page resource to be presented.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and applied principle and features of novelty phase one herein The widest scope of cause.

Claims (11)

1. a kind of data load method, which comprises
The displaying request of current page is received, the displaying request carries current page and identifies displaying number corresponding at least one According to Data Identification;
It is requested in response to the displaying, sends data acquisition request, the data acquisition request carrying is not stored in local exhibition The Data Identification of registration evidence;
The display data returned according to the data acquisition request is received, the display data returned is locally being saved;
Show display data corresponding with current page mark.
2. the method according to claim 1, wherein before the transmission data acquisition request, further includes:
Judge whether the corresponding display data of each Data Identification is stored in local;
When the corresponding display data of any one of Data Identification is not stored in local, into transmission data acquisition request.
3. according to the method described in claim 2, it is characterized in that, described judge the corresponding displaying number of each Data Identification According to the presence or absence of after local, further includes:
When the corresponding display data of any one of Data Identification is stored in local, into displaying and the current page Identify corresponding display data.
4. the method according to claim 1, wherein the method also includes:
Obtain local profile, the local profile includes page iden-tity and corresponding preload information and corresponding pre- Loading environment;
Judge whether identify comprising the current page in the local profile;
When in the local profile include the current page identify, and detect the operation in the current page with When the preload condition matches, the data buffer storage request of the corresponding display data of the preload information is sent;
Cache the display data that the server is returned according to the acquisition cache request.
5. the method according to claim 1, wherein the method also includes:
Receive the current cloud configuration file that the server is sent;
From the matched data screened in the current cloud configuration file with the Data Identification in the local display data Mark;
Send the data acquisition request for carrying the matched Data Identification;
Receive the corresponding displaying replacement data of data acquisition request according to the matched Data Identification;
By the displaying replacement data, the display data in the local corresponding matched Data Identification pair is replaced.
6. according to the method described in claim 5, it is characterized in that, the current configuration file includes to generate time, the side Method further include:
Obtain local history cloud configuration file;
Judge the generation time of the current configuration file whether after the generation time of the history cloud configuration file;
When the generation time of the current configuration file is after the generation time of the history cloud configuration file, into from described The matched Data Identification of screening and the Data Identification in the local display data in the configuration file of current cloud.
7. method according to claim 5 or 6, which is characterized in that when current configuration file includes multiple sub- configuration files, The method also includes:
Merge the corresponding configuration information of each Data Identification in each sub- configuration file, obtains in the current configuration file The corresponding configuration information of each Data Identification, wherein when each there are choosing when identical Data Identification in different sub- configuration files The configuration information that the Data Identification of the sub- configuration file of time the latest is generated in a sub- configuration file, currently matches as described Set the corresponding configuration information of Data Identification in file.
8. the method according to claim 1, wherein it is described be not stored in local display data include at least one It is a with the current page be the resource to be presented of the page at the same level of same levels and/or the current page at least one under The resource to be presented of the grade page.
9. a kind of data loading device, which is characterized in that described device includes:
Request receiving module, the displaying for receiving current page are requested, and displayings request carries current page and identifies and extremely The Data Identification of a few corresponding display data;
Data transmission blocks send data acquisition request, the data acquisition request carries for requesting in response to the displaying It is not stored in the Data Identification of local display data;
Data reception module is locally saving return for receiving the display data returned according to the data acquisition request Display data;
Data display module, for showing display data corresponding with current page mark.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 8 institute when executing the computer program The step of stating method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any item of the claim 1 to 8 is realized when being executed by processor.
CN201910637335.7A 2019-07-15 2019-07-15 Data load method, device, computer equipment and storage medium Pending CN110377361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910637335.7A CN110377361A (en) 2019-07-15 2019-07-15 Data load method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910637335.7A CN110377361A (en) 2019-07-15 2019-07-15 Data load method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110377361A true CN110377361A (en) 2019-10-25

Family

ID=68253265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910637335.7A Pending CN110377361A (en) 2019-07-15 2019-07-15 Data load method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110377361A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806856A (en) * 2019-10-30 2020-02-18 亚信科技(中国)有限公司 Data loading method and device and electronic equipment
CN112181532A (en) * 2020-10-15 2021-01-05 Oppo广东移动通信有限公司 Page resource loading method and device, electronic equipment and readable storage medium
CN112256671A (en) * 2020-10-21 2021-01-22 上海博泰悦臻电子设备制造有限公司 Data storage method and related equipment
CN113221041A (en) * 2021-05-31 2021-08-06 康键信息技术(深圳)有限公司 Page display method, device, equipment and storage medium based on cache mechanism
CN114741147A (en) * 2022-03-30 2022-07-12 阿里巴巴(中国)有限公司 Method for displaying page on mobile terminal and mobile terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1174793A2 (en) * 2000-06-21 2002-01-23 Microsoft Corporation System and method providing multi-tier applications architecture
CN101217507A (en) * 2007-12-29 2008-07-09 深圳市迅雷网络技术有限公司 Method, device and system for providing and altering data on network page
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN105554520A (en) * 2015-12-30 2016-05-04 深圳创维数字技术有限公司 Intelligent television desktop background pushing method and server
CN108595230A (en) * 2018-05-15 2018-09-28 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
WO2018178656A1 (en) * 2017-03-27 2018-10-04 Just Eat Holding Limited Apparatus and methods for use in handling of search queries
CN108804177A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Update method, apparatus, computer equipment and the storage medium of interface view
US20190166393A1 (en) * 2017-11-29 2019-05-30 Vestel Elektronik Sanayi Ve Ticaret A.S. Method, Apparatus and Computer Program for Identifying a Scheduling Mismatch Occurring at a Television Broadcaster

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1174793A2 (en) * 2000-06-21 2002-01-23 Microsoft Corporation System and method providing multi-tier applications architecture
CN101217507A (en) * 2007-12-29 2008-07-09 深圳市迅雷网络技术有限公司 Method, device and system for providing and altering data on network page
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN105554520A (en) * 2015-12-30 2016-05-04 深圳创维数字技术有限公司 Intelligent television desktop background pushing method and server
WO2018178656A1 (en) * 2017-03-27 2018-10-04 Just Eat Holding Limited Apparatus and methods for use in handling of search queries
US20190166393A1 (en) * 2017-11-29 2019-05-30 Vestel Elektronik Sanayi Ve Ticaret A.S. Method, Apparatus and Computer Program for Identifying a Scheduling Mismatch Occurring at a Television Broadcaster
CN108595230A (en) * 2018-05-15 2018-09-28 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108804177A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Update method, apparatus, computer equipment and the storage medium of interface view

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张仁等: "基于Web浏览器的SSL VPN网关系统的设计和实现", 《计算机工程与设计》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806856A (en) * 2019-10-30 2020-02-18 亚信科技(中国)有限公司 Data loading method and device and electronic equipment
CN112181532A (en) * 2020-10-15 2021-01-05 Oppo广东移动通信有限公司 Page resource loading method and device, electronic equipment and readable storage medium
CN112181532B (en) * 2020-10-15 2023-10-20 Oppo广东移动通信有限公司 Page resource loading method and device, electronic equipment and readable storage medium
CN112256671A (en) * 2020-10-21 2021-01-22 上海博泰悦臻电子设备制造有限公司 Data storage method and related equipment
CN112256671B (en) * 2020-10-21 2023-11-24 博泰车联网科技(上海)股份有限公司 Data storage method and related equipment
CN113221041A (en) * 2021-05-31 2021-08-06 康键信息技术(深圳)有限公司 Page display method, device, equipment and storage medium based on cache mechanism
CN114741147A (en) * 2022-03-30 2022-07-12 阿里巴巴(中国)有限公司 Method for displaying page on mobile terminal and mobile terminal
CN114741147B (en) * 2022-03-30 2023-11-14 阿里巴巴(中国)有限公司 Method for displaying page on mobile terminal and mobile terminal

Similar Documents

Publication Publication Date Title
CN110377361A (en) Data load method, device, computer equipment and storage medium
CN107783795B (en) Application program starting method and device, computer equipment and storage medium
US10783211B2 (en) Page processing method and device thereof
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN109032457B (en) Page display method, device, terminal and storage medium
CN109408750A (en) Page display method, device, computer equipment and storage medium
CN110263275A (en) A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN106484383A (en) page rendering method, device and equipment
CN110765379B (en) Method, device, computer equipment and storage medium for loading resource file
CN106528587B (en) Page display method and device in composite webpage system
CN101369280A (en) Method and device for web page browsing in digital television terminal
CN104965717A (en) Method and apparatus for loading page
CN110069264A (en) Construct method, apparatus, computer equipment and the storage medium of resource packet
CN107463613A (en) Page loading method and device
CN109190067B (en) Browser input box display method and device, computer equipment and storage medium
CN108664774A (en) A kind of timely method, apparatus, storage medium and system for generating watermark
CN106446075A (en) Page request processing method and apparatus
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN105872028B (en) Server-side, client and access strategy management method
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
CN113656527A (en) Map resource processing method and device, computer equipment and storage medium
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
CN111090701B (en) Service request processing method, device, readable storage medium and computer equipment
CN106649792B (en) Page access method and device
CN107203915B (en) Data storage method and device

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