CN110362776A - Browser front-end data storage method, device, equipment and readable storage medium storing program for executing - Google Patents

Browser front-end data storage method, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110362776A
CN110362776A CN201910667449.6A CN201910667449A CN110362776A CN 110362776 A CN110362776 A CN 110362776A CN 201910667449 A CN201910667449 A CN 201910667449A CN 110362776 A CN110362776 A CN 110362776A
Authority
CN
China
Prior art keywords
data
indexdb
warehouse
target data
browser
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
CN201910667449.6A
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910667449.6A priority Critical patent/CN110362776A/en
Publication of CN110362776A publication Critical patent/CN110362776A/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention discloses a kind of browser front-end data storage method, device, equipment and readable storage medium storing program for executing, it is related to financial technology (Fintech) technical field, this method comprises: judging whether the warehouse IndexDB is hole capital after selling all securities library when detecting data requesting instructions;If the warehouse IndexDB is not hole capital after selling all securities library, judge whether the independent tables of data is cached with the corresponding target data of the data requesting instructions;If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target data is obtained, target data rendering is become into the page to be shown.The present invention solves browser front end data storage management confusion in the prior art, the technical problem for causing front end data show process slack-off.

Description

Browser front-end data storage method, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to a kind of browser front end data storage sides Method, device, equipment and readable storage medium storing program for executing.
Background technique
With financial technology (Fintech), the especially continuous development of internet techno-financial, more and more technologies are answered Used in financial field.Wherein, the browser front end data storing process in financial field is related to numerous technical applications, however, Currently, mainly the API such as LocalStorage of data is locally stored using browser to cache front end data in browser, wherein The storage mode of LocalStorage are as follows: data are buffered in local browser by way of key-value pair, data are passed through When the form of key-value pair is buffered in local browser, in the source web page difference page and same page different function module Data share a data warehouse all at LocalStorage, this causes browser front end data storage management chaotic, and causes Keep front end data show process slack-off.
Summary of the invention
The main purpose of the present invention is to provide a kind of browser front-end data storage method, device, equipment and readable deposit Storage media, it is intended to solve browser front end data storage management confusion in the prior art, cause front end data show process slack-off The technical issues of.
To achieve the above object, the embodiment of the present invention provides a kind of browser front-end data storage method, in browser sheet The warehouse IndexDB is provided in ground database, the functional module based on browser front end page is established in the warehouse IndexDB Independent tables of data, the browser front-end data storage method include:
When detecting data requesting instructions, judge whether the warehouse IndexDB is hole capital after selling all securities library;
If the warehouse IndexDB is not hole capital after selling all securities library, judge whether the independent tables of data is cached with the data The corresponding target data of request instruction;
If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target is obtained Target data rendering is become the page to be shown by data.
Optionally, described when detecting data requesting instructions, judge whether the warehouse IndexDB is hole capital after selling all securities library step Include: later
If the warehouse IndexDB is hole capital after selling all securities library, the request of data is obtained from browser corresponding server end Instruct corresponding target data;
Target data rendering is become and initializes the page to be shown, and the target data is buffered in described In the warehouse IndexDB.
Optionally, described the target data is buffered in step in the warehouse IndexDB to include:
The target data homologous page locating under origin policy is obtained, and obtains the target data described same Objective function module locating for the page of source;
Based on the incidence relation of preset the objective function module and independent tables of data, the target data is cached In the corresponding target matrix in the warehouse IndexDB.
Optionally, if the independent tables of data is cached with the corresponding target data of the data requesting instructions, The target data is obtained, by target data rendering as after page step to be shown further include:
It is if receiving when carrying out the operation of editor's classification to the page of the browser, the page after the operation is corresponding Data be stored in the warehouse IndexDB, wherein the corresponding data of the page after the operation include label, log letter Breath, historical record, global variable information, user-defined data table field information, function information content.
Optionally, if the independent tables of data is cached with the corresponding target data of the data requesting instructions, The target data is obtained, by target data rendering as after page step to be shown further include:
If detect the clearance order being purged to the data in the warehouse IndexDB, obtains the removing and refer to Entrained content to be cleaned in order;
It treats to clear contents and is purged processing.
Optionally, if the independent tables of data is cached with the corresponding target data of the data requesting instructions, The target data is obtained, by target data rendering as after page step to be shown further include:
If detect the action event to the functional module in the warehouse IndexDB, judge that the action event is No is coupling operation event;
If the action event is coupling operation event, based on preset decoupling method pair in the warehouse IndexDB Other function module carries out decoupling processing.
Optionally, if the independent tables of data is cached with the corresponding target data of the data requesting instructions, The target data is obtained, includes: after target data rendering is become page step to be shown
If receive the more new command of the corresponding target data of the data requesting instructions, to the warehouse IndexDB In target data be updated processing.
The present invention also provides a kind of browser front end data storage devices, are provided in browser local data base The warehouse IndexDB, the functional module based on browser front end page establishes independent tables of data, institute in the warehouse IndexDB Stating browser front end data storage device includes:
First judgment module, for when detecting data requesting instructions, judging whether the warehouse IndexDB is hole capital after selling all securities Library;
Second judgment module judges that the independent tables of data is if be not hole capital after selling all securities library for the warehouse IndexDB It is no to be cached with the corresponding target data of the data requesting instructions;
First obtains module, if being cached with the corresponding number of targets of the data requesting instructions for the independent tables of data According to, then obtain the target data, by the target data rendering become the page to be shown.
Optionally, the browser front end data storage device further include:
Second obtains module, if be hole capital after selling all securities library for the warehouse IndexDB, from browser corresponding server end Obtain the corresponding target data of the data requesting instructions;
Cache module initializes the page to be shown for becoming target data rendering, and by the target data It is buffered in the warehouse IndexDB.
Optionally, the cache module includes:
Acquiring unit for obtaining the target data homologous page locating under origin policy, and obtains the mesh Mark data objective function module locating for the homologous page;
Cache unit, for the incidence relation based on preset the objective function module and independent tables of data, by institute Target data is stated to be buffered in the corresponding target matrix in the warehouse IndexDB.
Optionally, the browser front end data storage device further include:
Storage unit, if carry out the operation of editor's classification for receiving the page to the browser, by the behaviour The corresponding data of the page after work are stored in the warehouse IndexDB, wherein the corresponding data packet of the page after the operation Include label, log information, historical record, global variable information, user-defined data table field information, function information content.
Optionally, the browser front end data storage device further include:
Third obtains module, if for detecting the clearance order being purged to the data in the warehouse IndexDB When, obtain content to be cleaned entrained in the clearance order;
Module is removed, is purged processing for treating to clear contents.
Optionally, the browser front end data storage device further include:
Detection module, if judging institute when for detecting the action event to the functional module in the warehouse IndexDB State whether action event is coupling operation event;
Processing module is decoupled, if be coupling operation event for the action event, based in the warehouse IndexDB Preset decoupling method carries out decoupling processing to other function module.
Optionally, the browser front end data storage device further include:
Processing module is updated, if when more new command for receiving the corresponding target data of the data requesting instructions, Processing is updated to the target data in the warehouse IndexDB.
The present invention also provides a kind of readable storage medium storing program for executing, it is stored with browser front end data on the readable storage medium storing program for executing and deposits Program is stored up, the browser front end data storage program realizes that above-mentioned browser front end data such as stores when being executed by processor The step of method.
The present invention is provided with the warehouse IndexDB in browser local data base, is based on browsing in the warehouse IndexDB The functional module of device front end page establishes independent tables of data, when detecting data requesting instructions, judges the storehouse IndexDB Whether library is hole capital after selling all securities library;If the warehouse IndexDB is not hole capital after selling all securities library, judge whether the independent tables of data caches State the corresponding target data of data requesting instructions;If the independent tables of data is cached with the corresponding mesh of the data requesting instructions Data are marked, then obtain the target data, target data rendering is become into the page to be shown.In this application, due to The warehouse IndexDB, and the function based on browser front end page in the warehouse IndexDB are provided in browser local data base Energy module establishes independent tables of data, rather than the storage of data is carried out based on the entire homologous page, thus, it is possible to When the warehouse IndexDB is not hole capital after selling all securities library, if detect data requesting instructions, mesh can be orderly obtained based on independent tables of data Data are marked, and obtain the page to be shown.Namely in this application, since the functional module based on browser front end page is established solely Vertical tables of data realizes orderly display front end data, promotes the show process of front end data.
Detailed description of the invention
Fig. 1 is the flow diagram of browser front-end data storage method first embodiment of the present invention;
Fig. 2 be browser front-end data storage method second embodiment of the present invention in when detecting data requesting instructions, Judge whether the warehouse IndexDB is refinement flow diagram after the step of hole capital after selling all securities library;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of browser front-end data storage method, in one embodiment of browser front-end data storage method In, referring to Fig.1, it is provided with the warehouse IndexDB in browser local data base, is based on browser in the warehouse IndexDB The functional module of front end page establishes independent tables of data, and the browser front-end data storage method includes:
Step S10 judges whether the warehouse IndexDB is hole capital after selling all securities library when detecting data requesting instructions;
Step S20 judges whether the independent tables of data is cached with if the warehouse IndexDB is not hole capital after selling all securities library The corresponding target data of the data requesting instructions;
Step S30 is obtained if the independent tables of data is cached with the corresponding target data of the data requesting instructions Target data rendering is become the page to be shown by the target data.
Specific step is as follows:
Step S10 judges whether the warehouse IndexDB is hole capital after selling all securities library when detecting data requesting instructions;
It should be noted that browser front-end data storage method is applied to browser, wherein browser front end data is deposited Storage generally refers to the caching of browser front end data, in order to orderly be cached to browser front end data, in the present embodiment In, it is provided with the warehouse IndexDB, specifically, in browser is provided with Dexie management tool, it can be with by Dexie management tool The quickly creation warehouse IndexDB, specifically, using warehouse creation module preset in Dexie management tool, (present invention is in the storehouse Library creation module is previously provided with the creation program of structuring), the creation in the warehouse IndexDB is carried out, that is, in a browser, It, can be by Dexie management tool in browser local when receiving the data in server for the first time to show content of pages The end creation warehouse IndexDB.And in the prior art, the storage mode of LocalStorage are as follows: data are passed through into key-value pair Form is buffered in local browser, when data are buffered in local browser by way of key-value pair, When in the storage mode of LocalStorage, all with the data in the source web page difference page and same page different function module A data warehouse is shared at LocalStorage, for example, with the source web page difference page A page and the B page, the of the B page One sub-function module and the second sub-function module all do not distinguish in the local database and, make using LocalStorage It is, when needing to store data, to pass through LocalStorage.setItem (keyName, keyValue) for the principle of caching Method (keyName: customized key name, keyValue:(key assignments), this value is only character string type), so that it may data are protected There are local browsers can pass through LocalStorage.setItem when entering back into the page or carrying out same operation next time (keyName) method obtains desirable value, and data are not carried out with the differentiation of structuring.That is, browser in the prior art The warehouse LocalStorage and IndexDB difference is that the warehouse IndexDB is that have the storage mode of structuring rather than pass through The storage mode of key-value pair carries out the caching of data, and the warehouse IndexDB is that have the storage mode of structuring rather than pass through key The storage mode of value pair can distinguish the data in the same source web page difference page and same page different function module.
In addition, SessionStorage exists only in browser session period, the survival phase is short, and LocalStorage data Storage time is long, but the memory space of browser assignment small is 5M or so, and IndexDB can store a large amount of structuring numbers According to, and support that establishing index improves the speed for searching data, IndexDB memory space is much larger than SessionStorage, IndexDB memory space is substantially to rely on browser to calculate distribution, and different between browser, desktop version browser Generally all in tens GB.
It should be noted that LocalStorage storage form be it is synchronous, the read-write of the traversal of mass data can block into Journey, and in this application, since the structuring in the warehouse IndexDB is arranged, thus, it is possible to carry out the read-write of data, orderly to keep away Exempt from the obstruction of process.
It specifically, in the present embodiment, is the differentiation for carrying out data structured for the warehouse IndexDB, That is, existing under the warehouse IndexDB using project as the warehouse of the entitled bdp-ide of Structure Creating, in the storehouse for creating entitled bdp-ide Behind library, the tabs tables of data that functional module under the project is structural units can be created, which is separate table, There are the particular contents of corresponding function module under separate table.
When detecting data requesting instructions, judge whether the warehouse IndexDB is hole capital after selling all securities library, that is, described in judgement The warehouse IndexDB whether there is data content, specifically judge whether user is the page for first entering browser, if user is The page of browser is first entered, then the warehouse IndexDB is hole capital after selling all securities library, if user is the non-page for first entering browser Face, then the warehouse IndexDB is not hole capital after selling all securities library.
Step S20 judges whether the independent tables of data is cached with if the warehouse IndexDB is not hole capital after selling all securities library The corresponding target data of the data requesting instructions;
If the warehouse IndexDB is not hole capital after selling all securities library, it is obvious that user is the non-page for first entering browser, this When judge whether the independent tables of data is cached with the corresponding target data of the data requesting instructions, judge described independent The mode whether tables of data is cached with the corresponding target data of the data requesting instructions includes: corresponding by data requesting instructions Structure locating for the target data of request (structure title determines), which whether there is, determines whether there is corresponding target data, or Corresponding number of targets is determined whether there is by the way that whether page-tag locating for target data (bookmark name determines) corresponds to exist According to.
It is described when detecting data requesting instructions referring to Fig. 2, judge whether the warehouse IndexDB is hole capital after selling all securities library step Include: after rapid
Step S21, if the warehouse IndexDB is hole capital after selling all securities library, described in the acquisition of browser corresponding server end The corresponding target data of data requesting instructions;
In the present embodiment, if the warehouse IndexDB is hole capital after selling all securities library, it is obvious that user is to first enter browser The page, the corresponding target data of the data requesting instructions is obtained from browser corresponding server end at this time, that is, connecing Receive the corresponding target data of the data requesting instructions that browser corresponding server end obtains.
Target data rendering is become and initializes the page to be shown, and the target data is buffered in by step S22 In the warehouse IndexDB.
In the present embodiment, after obtaining target data, target data rendering is become and initializes the page to be shown, Wherein, target data rendering is become and initializes the page to be shown, belonged to the prior art, do not illustrate herein, Target data rendering is become after initializing the page to be shown, carries out the creation of task, be in the warehouse IndexDB into The target data is buffered in the warehouse IndexDB by the creation of row task.
It is described the target data is buffered in step in the warehouse IndexDB to include:
Step S221 obtains the target data homologous page locating under origin policy, and obtains the number of targets According to the objective function module locating for the homologous page;
Step S222, based on the incidence relation of preset the objective function module and independent tables of data, by the mesh Scalar data cache is in the corresponding target matrix in the warehouse IndexDB.
In the present embodiment, the target data is buffered in the warehouse IndexDB is by the target data knot Be buffered in structure in the warehouse IndexDB rather than unordered caching, thus, after obtaining target data, need to pass through The page-tag and module tag carried in target data determines the structure bit that target data caches in the warehouse IndexDB It sets, that is, obtaining the target data homologous page locating under origin policy first to determine target data in IndexDB Initial configuration position (being determined according to page-tag) in warehouse, and the target data is obtained locating for the homologous page Objective function module, to determine final structure position of the target data in the warehouse IndexDB.
After obtaining objective function module, being associated with based on the preset objective function module and independent tables of data System, the target data is buffered in the corresponding target matrix in the warehouse IndexDB.Specifically, for example, obtaining mesh After marking functional module A, based on the incidence relation of preset the objective function module and independent tables of data, by the number of targets According to being buffered in the corresponding A target matrix in the warehouse IndexDB.
Step S30 is obtained if the independent tables of data is cached with the corresponding target data of the data requesting instructions Target data rendering is become the page to be shown by the target data.
In the present embodiment, if the independent tables of data is cached with the corresponding target data of the data requesting instructions, The target data is then obtained by structured way, target data rendering is become into the page to be shown namely the mesh Mark data can be rendered as the page to be shown, wherein rendering belongs to the prior art, does not illustrate herein.
The present invention is provided with the warehouse IndexDB in browser local data base, is based on browsing in the warehouse IndexDB The functional module of device front end page establishes independent tables of data, when detecting data requesting instructions, judges the storehouse IndexDB Whether library is hole capital after selling all securities library;If the warehouse IndexDB is not hole capital after selling all securities library, judge whether the independent tables of data caches State the corresponding target data of data requesting instructions;If the independent tables of data is cached with the corresponding mesh of the data requesting instructions Data are marked, then obtain the target data, target data rendering is become into the page to be shown.In this application, due to The warehouse IndexDB, and the function based on browser front end page in the warehouse IndexDB are provided in browser local data base Energy module establishes independent tables of data, rather than the storage of data is carried out based on the entire homologous page, thus, it is possible to When the warehouse IndexDB is not hole capital after selling all securities library, if detect data requesting instructions, mesh can be orderly obtained based on independent tables of data Data are marked, and obtain the page to be shown.Namely in this application, since the functional module based on browser front end page is established solely Vertical tables of data realizes orderly display front end data, promotes the show process of front end data.
Further, the present invention provides another embodiment of browser front-end data storage method, in this embodiment, described If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target data is obtained, it will The target data rendering becomes after page step to be shown further include:
Step S40, if receive to the page of the browser carry out editor classification operation when, after the operation The corresponding data of the page are stored in the warehouse IndexDB, wherein the corresponding data of the page after the operation include mark Label, log information, historical record, global variable information, user-defined data table field information, function information content.
In the present embodiment, user can also be in the operation of the enterprising edlin classification of the page, specifically, for example, in the page Enterprising edlin mission script information newly opens the operation such as Shipping Options Page, at this point, can be corresponding by the page after the operation Data are stored in the warehouse IndexDB.It, can be with to form a process that required function data are back and forth saved and utilized Network consumption is reduced, user's habit is saved, increases user experience, wherein the corresponding data of the page after the operation include mark Label, log information, historical record, global variable information, user-defined data table field information, function information content.
In the present embodiment, if carry out the operation of editor's classification by receiving the page to the browser, by institute The corresponding data of the page after stating operation are stored in the warehouse IndexDB, wherein the corresponding number of the page after the operation According to include label, log information, historical record, global variable information, user-defined data table field information, function information content.? In the present embodiment, the technical effect for reducing network consumption is realized.
Further, the present invention provides another embodiment of browser front-end data storage method, in this embodiment, described If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target data is obtained, it will The target data rendering becomes after page step to be shown further include:
If step S50 obtains institute detect the clearance order being purged to the data in the warehouse IndexDB State content to be cleaned entrained in clearance order;
Step S60 treats to clear contents being purged processing.
In the present embodiment, also support can remove manually it is data cached, that is, work as page long-time operation, caching Data volume will be very huge, will cause IndexDB read-write slowly, and user can periodically remove caching manually, and enhancing IndexDB is rung Speed is answered, specifically, if detect the clearance order being purged to the data in the warehouse IndexDB, described in acquisition Entrained content to be cleaned, treats to clear contents being purged processing in clearance order.
In the present embodiment, it if detect the clearance order being purged to the data in the warehouse IndexDB, obtains Take content to be cleaned entrained in the clearance order;It treats to clear contents and is purged processing.Realize that promoting data shows Efficiency.
Further, the present invention provides another embodiment of browser front-end data storage method, in this embodiment, described If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target data is obtained, it will The target data rendering becomes after page step to be shown further include:
If step S70 judges the behaviour detect the action event to the functional module in the warehouse IndexDB Make whether event is coupling operation event;
Step S80, if the action event is coupling operation event, based on preset solution in the warehouse IndexDB Coupling method carries out decoupling processing to other function module.
In the present embodiment, if detect the action event to the functional module in the warehouse IndexDB, judge institute State whether action event is coupling operation event, that is, judging whether the action event is adapted to other modules.If being adapted to it His module then synchronizes processing to other modules correspondence, namely specifically, in the warehouse IndexDB of the present embodiment, exists Preset function module prestores default coupling procedure section in the preset function module, which is detecting not There are when coupled relation, be based on presetting the corresponding default decoupling of coupling procedure section in the warehouse IndexDB for congenerous intermodule Method carries out decoupling processing to other function module.
In the present embodiment, if sentencing when by detecting the action event to the functional module in the warehouse IndexDB Whether the action event that breaks is coupling operation event;If the action event is coupling operation event, based on described Preset decoupling method carries out decoupling processing to other function module in the warehouse IndexDB.In the present embodiment, by preset Decoupling method carries out decoupling processing to other function module, improves data-handling efficiency.
Further, the present invention provides another embodiment of browser front-end data storage method, in this embodiment, described If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the target data is obtained, it will The target data rendering becomes page step to be shown and includes: later
Step S90, if receive the more new command of the corresponding target data of the data requesting instructions, to described Target data in the warehouse IndexDB is updated processing.
In the present embodiment, if receive the more new command of the corresponding target data of the data requesting instructions, to institute It states the target data in the warehouse IndexDB and is updated processing, to cache newest target data.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Browser front end data of the embodiment of the present invention storage equipment can be PC, be also possible to smart phone, tablet computer, The terminal devices such as portable computer.
As shown in figure 3, browser front end data storage equipment may include: processor 1001, such as CPU, memory 1005, communication bus 1002.Wherein, communication bus 1002 is logical for realizing the connection between processor 1001 and memory 1005 Letter.Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), example Such as magnetic disk storage.Memory 1005 optionally can also be the storage equipment independently of aforementioned processor 1001.
Optionally, browser front end data storage equipment can also include target user interface, network interface, camera shooting Head, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface can be with Including display screen (Display), input unit such as keyboard (Keyboard), optional target user interface can also include standard Wireline interface, wireless interface.Network interface optionally may include that (such as WI-FI connects standard wireline interface and wireless interface Mouthful).
It will be understood by those skilled in the art that the storage device structure of browser front end data shown in Fig. 3 is not constituted Restriction to browser front end data storage equipment may include than illustrating more or fewer components, or the certain portions of combination Part or different component layouts.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe that module and browser front end data store program.Operating system be manage and control browser front end data storage equipment it is hard The program of part and software resource supports the operation of browser front end data storage program and other softwares and/or program.Network Communication module stores in equipment for realizing the communication between the 1005 each component in inside of memory, and with browser front end data It is communicated between other hardware and softwares.
In browser front end data storage equipment shown in Fig. 3, processor 1001 is deposited in memory 1005 for executing The step of browser front end data of storage stores program, realizes browser front-end data storage method described in any of the above embodiments.
Browser front end data storage equipment specific embodiment of the present invention and above-mentioned browser front-end data storage method Each embodiment is essentially identical, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of browser front end data storage device, the present invention also provides a kind of clear It lookes at device front end data storage device, is provided with the warehouse IndexDB in browser local data base, in the warehouse IndexDB Functional module based on browser front end page establishes independent tables of data, and the browser front end data storage device includes:
First judgment module, for when detecting data requesting instructions, judging whether the warehouse IndexDB is hole capital after selling all securities Library;
Second judgment module judges that the independent tables of data is if be not hole capital after selling all securities library for the warehouse IndexDB It is no to be cached with the corresponding target data of the data requesting instructions;
First obtains module, if being cached with the corresponding number of targets of the data requesting instructions for the independent tables of data According to, then obtain the target data, by the target data rendering become the page to be shown.
Optionally, the browser front end data storage device further include:
Second obtains module, if be hole capital after selling all securities library for the warehouse IndexDB, from browser corresponding server end Obtain the corresponding target data of the data requesting instructions;
Cache module initializes the page to be shown for becoming target data rendering, and by the target data It is buffered in the warehouse IndexDB.
Optionally, the cache module includes:
Acquiring unit for obtaining the target data homologous page locating under origin policy, and obtains the mesh Mark data objective function module locating for the homologous page;
Cache unit, for the incidence relation based on preset the objective function module and independent tables of data, by institute Target data is stated to be buffered in the corresponding target matrix in the warehouse IndexDB.
Optionally, the browser front end data storage device further include:
Storage unit, if carry out the operation of editor's classification for receiving the page to the browser, by the behaviour The corresponding data of the page after work are stored in the warehouse IndexDB, wherein the corresponding data packet of the page after the operation Include label, log information, historical record, global variable information, user-defined data table field information, function information content.
Optionally, the browser front end data storage device further include:
Third obtains module, if for detecting the clearance order being purged to the data in the warehouse IndexDB When, obtain content to be cleaned entrained in the clearance order;
Module is removed, is purged processing for treating to clear contents.
Optionally, the browser front end data storage device further include:
Detection module, if judging institute when for detecting the action event to the functional module in the warehouse IndexDB State whether action event is coupling operation event;
Processing module is decoupled, if be coupling operation event for the action event, based in the warehouse IndexDB Preset decoupling method carries out decoupling processing to other function module.
Optionally, the browser front end data storage device further include:
Processing module is updated, if when more new command for receiving the corresponding target data of the data requesting instructions, Processing is updated to the target data in the warehouse IndexDB.
Browser front end data storage device specific embodiment of the present invention and above-mentioned browser front-end data storage method Each embodiment is essentially identical, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of browser front end data storage equipment, equipment include: memory 109, The browser front end data storage program that processor 110 and being stored in can be run on memory 109 and on processor 110, it is clear Device front end data of looking at stores when program is executed by processor 110 and realizes above-mentioned each embodiment of browser front-end data storage method The step of.
In addition, the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage Having one, perhaps more than one program the one or more programs can also be by one or more than one processor The step of executing with embodiment each for realizing above-mentioned browser front-end data storage method.
In the expansion of present device and the specific embodiment of readable storage medium storing program for executing (i.e. computer readable storage medium) Appearance is essentially identical with above-mentioned each embodiment of browser front-end data storage method, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of browser front-end data storage method, which is characterized in that be provided with IndexDB in browser local data base Warehouse, the functional module based on browser front end page establishes independent tables of data, the browser in the warehouse IndexDB Front-end data storage method includes:
When detecting data requesting instructions, judge whether the warehouse IndexDB is hole capital after selling all securities library;
If the warehouse IndexDB is not hole capital after selling all securities library, judge whether the independent tables of data is cached with the request of data Instruct corresponding target data;
If the independent tables of data is cached with the corresponding target data of the data requesting instructions, the number of targets is obtained According to by target data rendering as the page to be shown.
2. browser front-end data storage method as described in claim 1, which is characterized in that described to detect request of data When instruction, judge whether the warehouse IndexDB is that hole capital after selling all securities library step includes: later
If the warehouse IndexDB is hole capital after selling all securities library, the data requesting instructions are obtained from browser corresponding server end Corresponding target data;
Target data rendering is become and initializes the page to be shown, and the target data is buffered in the IndexDB In warehouse.
3. browser front-end data storage method as claimed in claim 2, which is characterized in that described to delay the target data There are steps in the warehouse IndexDB to include:
The target data homologous page locating under origin policy is obtained, and obtains the target data in the homologous page Objective function module locating for face;
Based on the incidence relation of preset the objective function module and independent tables of data, the target data is buffered in institute It states in the corresponding target matrix in the warehouse IndexDB.
4. browser front-end data storage method as described in claim 1, which is characterized in that if the independent data Table cache has the corresponding target data of the data requesting instructions, then obtains the target data, and the target data is rendered After page step to be shown further include:
If receive to the page of the browser carry out editor classification operation when, by the corresponding number of the page after the operation According to being stored in the warehouse IndexDB, wherein the corresponding data of the page after the operation include label, log information, go through Records of the Historian record, global variable information, user-defined data table field information, function information content.
5. browser front-end data storage method as described in claim 1, which is characterized in that if the independent data Table cache has the corresponding target data of the data requesting instructions, then obtains the target data, and the target data is rendered After page step to be shown further include:
If detect the clearance order being purged to the data in the warehouse IndexDB, obtain in the clearance order Entrained content to be cleaned;
It treats to clear contents and is purged processing.
6. browser front-end data storage method as described in claim 1, which is characterized in that if the independent data Table cache has the corresponding target data of the data requesting instructions, then obtains the target data, and the target data is rendered After page step to be shown further include:
If detect the action event to the functional module in the warehouse IndexDB, judge the action event whether be Coupling operation event;
If the action event is coupling operation event, based on preset decoupling method in the warehouse IndexDB to other Functional module carries out decoupling processing.
7. browser front-end data storage method as claimed in any one of claims 1 to 6, which is characterized in that if described only Vertical tables of data is cached with the corresponding target data of the data requesting instructions, then obtains the target data, by the target Data render becomes page step to be shown
If receive the more new command of the corresponding target data of the data requesting instructions, in the warehouse IndexDB Target data is updated processing.
8. a kind of browser front end data storage device, which is characterized in that be provided with IndexDB in browser local data base Warehouse, the functional module based on browser front end page establishes independent tables of data, the browser in the warehouse IndexDB Front end data storage device includes:
First judgment module, for when detecting data requesting instructions, judging whether the warehouse IndexDB is hole capital after selling all securities library;
Second judgment module judges whether the independent tables of data is delayed if be not hole capital after selling all securities library for the warehouse IndexDB There is the corresponding target data of the data requesting instructions;
First obtains module, if being cached with the corresponding target data of the data requesting instructions for the independent tables of data, The target data is then obtained, target data rendering is become into the page to be shown.
9. a kind of browser front end data stores equipment, which is characterized in that the equipment includes: memory, processor and storage On the memory and can run on the processor browser front end data storage program, browser front end number Realize that the browser front end data as described in any one of claims 1 to 7 is deposited when being executed according to storage program by the processor The step of method for storing.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with the storage of browser front end data on the readable storage medium storing program for executing Program, the browser front end data storage program are realized as described in any one of claims 1 to 7 when being executed by processor The step of browser front-end data storage method.
CN201910667449.6A 2019-07-23 2019-07-23 Browser front-end data storage method, device, equipment and readable storage medium storing program for executing Pending CN110362776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910667449.6A CN110362776A (en) 2019-07-23 2019-07-23 Browser front-end data storage method, device, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910667449.6A CN110362776A (en) 2019-07-23 2019-07-23 Browser front-end data storage method, device, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110362776A true CN110362776A (en) 2019-10-22

Family

ID=68219762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910667449.6A Pending CN110362776A (en) 2019-07-23 2019-07-23 Browser front-end data storage method, device, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110362776A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125280A (en) * 2019-12-04 2020-05-08 深圳震有科技股份有限公司 Map cache processing method, system and equipment based on IndexDB
CN114237806A (en) * 2021-12-29 2022-03-25 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125280A (en) * 2019-12-04 2020-05-08 深圳震有科技股份有限公司 Map cache processing method, system and equipment based on IndexDB
CN114237806A (en) * 2021-12-29 2022-03-25 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium
CN114237806B (en) * 2021-12-29 2024-03-12 瀚云科技有限公司 Page information display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102111448B (en) Data prefetching method of DHT memory system and node and system
CN110674432B (en) Second-level caching method, device and computer readable storage medium
US9916390B2 (en) Managing web browser cache for offline browsing
US9110568B2 (en) Browser tab management
US9817879B2 (en) Asynchronous data replication using an external buffer table
US20170323025A1 (en) Browser acceleration method and browser device having accelerator
US20120054445A1 (en) Method and system for inserting cache blocks
CN104320448B (en) A kind of caching of the calculating equipment based on big data and prefetch acceleration method and device
CN104123238A (en) Data storage method and device
CN102047231A (en) Data storage and access
CN104657435B (en) A kind of memory management method and Network Management System using data
CN103500213B (en) Page hot-spot resource updating method and device based on pre-reading
CN101557427A (en) Method for providing diffluent information and realizing the diffluence of clients, system and server thereof
CN104182482B (en) A kind of news list page determination methods and the method for screening news list page
WO2016115957A1 (en) Method and device for accelerating computers and intelligent devices for users and applications
CN105260388A (en) Optimization method of distributed vertical crawler service system
CN105721538A (en) Data access method and apparatus
CN104484235A (en) Memory optimization method and device based on waterfall stream technology
CN110362776A (en) Browser front-end data storage method, device, equipment and readable storage medium storing program for executing
US20230409398A1 (en) Resource pre-fetch using age threshold
CN106201237A (en) A kind of information collection method and device
CN101188521A (en) A method for digging user behavior data and website server
US11223528B2 (en) Management of cloud-based shared content using predictive cost modeling
CN103455547B (en) A kind of method and device for webpage loading
CN103843384A (en) Geolocation-based load balancing

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