CN109800374A - Temporary page data processing method, device, computer equipment and storage medium - Google Patents

Temporary page data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109800374A
CN109800374A CN201811527536.3A CN201811527536A CN109800374A CN 109800374 A CN109800374 A CN 109800374A CN 201811527536 A CN201811527536 A CN 201811527536A CN 109800374 A CN109800374 A CN 109800374A
Authority
CN
China
Prior art keywords
application
browser
page data
memory variable
mixing
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
CN201811527536.3A
Other languages
Chinese (zh)
Inventor
高林龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811527536.3A priority Critical patent/CN109800374A/en
Publication of CN109800374A publication Critical patent/CN109800374A/en
Priority to PCT/CN2019/116272 priority patent/WO2020119342A1/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

Abstract

This application discloses a kind of temporary page data processing method, device, computer equipment and storage mediums, it effectively reduces when not supporting sessionstorage due to the browser of terminal device of operation mixing application, the case where function of sessionstorage can not be utilized, improve the applicability of scheme.Method part includes: when operation mixing in application, generating memory variable, and the memory variable is unique corresponding with the operation mixing application;The memory variable is bridged into the browser in the mixing application;The temporary page data of the target labels page of the browser are stored in the memory variable;When meeting preset cleared condition, the memory variable is removed to remove the temporary page data.

Description

Temporary page data processing method, device, computer equipment and storage medium
Technical field
This application involves technical field of World Wide Web more particularly to a kind of temporary page data processing methods, device, computer Equipment and storage medium.
Background technique
Mixing application is combined with the application program of native applications and WWW (World Wide Web, web) application, Wherein, native applications are directly to run on the application program of terminal device current operation system, and web application refers to needs clear The web application run look in device, and current web application is developed based on being typically based on HTML5, wherein Sessionstorage is a kind of session storage object of HTML5, for temporarily saving the data of same Shipping Options Page, in same mark The data that will be will be deleted on sessionstorage after label page.
Traditionally, using mixing in application, since sessionstorage is the data storage object of a Shipping Options Page, When the browser on the terminal device of operation mixing application does not support sessionstorage, existing can not be utilized The correlation function that sessionstorage is realized, such as save and obtain the temporary page data on Shipping Options Page, it is seen then that traditional scheme Applicability is poor.
Summary of the invention
This application provides a kind of temporary page data processing method, device, computer equipment and storage mediums, effectively Reduce when not supporting sessionstorage due to the browser of terminal device of operation mixing application, can not utilize The case where function of sessionstorage, improves the applicability of scheme.
A kind of temporary page data processing method, comprising:
When operation mixing in application, generate memory variable, the memory variable with run it is described mix apply process only One is corresponding;
The memory variable is bridged into the browser in the mixing application;
The temporary page data of the target labels page of the browser are stored in the memory variable;
When meeting preset cleared condition, the memory variable is removed to remove the temporary page data.
A kind of temporary page data processing equipment, comprising:
Generation module, for, in application, generating memory variable, the memory variable described to be mixed with operation when operation mixing The process of application uniquely corresponds to;
Bridge module, the memory variable for generating the generation module bridge to clear in the mixing application Look at device;
Preserving module, for being stored in the temporary page data of the target labels page of the browser by the bridge joint Module bridges in the memory variable of the browser;
Module is removed, for when meeting preset cleared condition, then removing the memory variable so that described in removing Temporary page data.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned temporary page data processing side when executing the computer program Method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes above-mentioned temporary page data processing method when being executed by processor.
In the scheme that above-mentioned temporary page data processing method, device, computer equipment and storage medium are realized, with biography System scheme is compared, using mixing in application, effectively reduce due to operation mixing application terminal device browser not When supporting sessionstorage, the case where function of sessionstorage can not be utilized, for example, temporarily saving Shipping Options Page The case where temporary page data, improves the applicability of scheme.
Detailed description of the invention
It, below will be to attached needed in the description of the present application in order to illustrate more clearly of the technical solution of the application Figure is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for this field For those of ordinary skill, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is one system framework schematic diagram of temporary page data processing method in the application;
Fig. 2 is temporary page data processing method one embodiment flow diagram in the application;
Fig. 3 is another embodiment flow diagram of temporary page data processing method in the application;
Fig. 4 is another embodiment flow diagram of temporary page data processing method in the application;
Fig. 5 is another embodiment flow diagram of temporary page data processing method in the application;
Fig. 6 is one example structure schematic diagram of temporary page data processing equipment in the application;
Fig. 7 is one example structure schematic diagram of temporary page data processing equipment in the application;
Fig. 8 is computer equipment one embodiment structural schematic diagram in the application.
Specific embodiment
Below in conjunction with the attached drawing in the application, the technical solution in the application is clearly and completely described, is shown So, described embodiment is some embodiments of the present application, instead of all the embodiments.Based on the implementation in the application Example, shall fall in the protection scope of this application.
This application provides a kind of temporary page data processing methods, can be applicable in application environment as shown in Figure 1, In, terminal device can be communicated by network with server, wherein server, which refers to, provides the service of mixing application service Device, including providing the server of native applications service and the server of web application.Terminal device, which refers to installation and runs, mixing The equipment of application, including but not limited to various personal computers, laptop, smart phone, tablet computer and portable Wearable device.The communication of terminal device and server, available corresponding native applications service or web application service.Separately Outside, server can be realized with the server cluster of the either multiple server compositions of independent server, not limited specifically It is fixed.Wherein, in above-mentioned temporary page data processing method, when operation mixing in application, generating memory variable, the memory becomes It measures and runs the unique corresponding of the mixing application;The memory variable is bridged into the browser in the mixing application;It will The temporary page data of the target labels page of the browser are stored in the memory variable;Whether judge the mixing application It is closed;If judging, the mixing application has been closed, and removes the memory variable so that removing the temporary page Data.It can be seen that temporary page data processing method provided by the present application is using mixing application compared with traditional scheme When, it effectively reduces when not supporting sessionstorage due to the browser of terminal device of operation mixing application, it can not Using sessionstorage function the case where, for example, temporarily save Shipping Options Page temporary page data the case where, improve The applicability of scheme.The embodiment of the present application is described in detail below, as shown in Fig. 2, the embodiment of the present application provides one kind Temporary page data processing method, specifically comprises the following steps:
S10: when operation mixing in application, generating memory variable, the process that memory variable mixes application with operation is uniquely right It answers.
It is appreciated that mixing application, be combined with native applications and web application application program, moreover, native applications with Web application operates in different running environment (running container in other words), and native applications are the operating system with terminal device As the application of running environment, and web application is the application using browser as running environment, as long as installing terminal equipment has browsing Device can run above-mentioned web application.It is appreciated that when terminal device operation mixing is in application, terminal device will create for transporting The process of row mixing application, in the embodiment of the present application, when operation mixing is in application, a memory variable, the memory can be generated Variable and the process of operation mixing application are uniquely corresponding, illustratively, it is assumed that and having terminal device currently to run has mixing to apply 1, At this point, can generate 1 memory variable when terminal device runs above-mentioned mixing and applies 1, be set as memory variable a, memory variable a 1 unique correspondence is applied with the mixing.It should be noted that the mixing application run on terminal device may by multiple, at this point, It can generate and mix application unique corresponding memory variable respectively with multiple operations.Illustratively, it is assumed that there is terminal device currently to transport Row has mixing, using 2, at this point, 2 memory variables can be generated, to be set as memory variable a and memory variable 2, memory using 1 and mixing Variable a and operation mixing are uniquely corresponded to using 1 process, and memory variable b is unique corresponding using 2 with operation mixing.It additionally needs Illustrate, which is the memory variable for occupying some fixed memory size of process of operation mixing application.This is interior Depositing variable and occupying the fixed memory size of the process to be configured according to the actual situation, illustratively, can for 4M, 5M, Deng specifically here without limitation.
S20: memory variable is bridged into the browser in mixing application.
It has been observed that when operation mixing in application, one and the unique corresponding memory variable of operation mixing application can be generated, separately Outside, which is the memory variable for occupying some fixed memory size of the process, it will be understood that process is terminal device Operating system carry out Resource Distribution and Schedule basic unit, memory variable is some the fixed memory size for the process that occupies again Memory variable, therefore, in order to enable when the web application in mixing application can use above-mentioned memory variable namely browser Above-mentioned memory variable can be used, needs to bridge to memory variable in the browser in mixing application in the embodiment of the present application.Cause Memory variable can be bridged to the browser in mixing application after generating memory variable by this.
S30: the temporary page data of the target labels page of browser are stored in memory variable.
It has been observed that mixing application, be combined with native applications and web application application program, operation mixing in application, It can also be applied by browser execution web, actually to run web application by way of browser opens some Shipping Options Page, In the embodiment of the present application, for ease of description, any one Shipping Options Page that browser is opened in mixing application is known as target Shipping Options Page, the embedded web of target labels page operation mixing application are corresponded in application, can have some target labels pages in browser Temporary page data, can in the present embodiment since the memory variable of generation has bridged to the browser of mixing application The corresponding temporary page data of target labels page existing for the browser of mixing application to be stored in memory variable.It needs Bright, the corresponding temporary page data of the so-called target labels page of the embodiment of the present application refer to only in current goal Shipping Options Page The data or information for needing temporarily to save when being opened.For example, such as: mixing application browser some log in page The log-on message inputted when face is logged in can be described as the log-on message of user, the log-on message of above-mentioned user Therefore the log-on message can be stored in this memory variable by the temporary page data of the login page.In addition to this, Above-mentioned temporary page data further include the data or information that other need temporarily to save when current goal Shipping Options Page is opened, Specifically here without limitation, for example, user may be whithin a period of time in same home Web site for some shopping class websites Different commodity are selected in the page, these information can all be written in memory variable, to extract information in complete payment.
S40: when meeting preset cleared condition, memory variable is removed to remove the temporary page data.
In the embodiment of the present application, when meeting preset cleared condition, memory variable is removed to remove the interim page Face data.Such as system crash cause operation mixing application carry out the factor of interrupting etc., memory variable can be removed at this time, due to clear In addition to memory variable, it will be understood that the information or data for being stored in memory variable can be also disposed of, including above-mentioned target labels The corresponding temporary page data of page.
Thus, the embodiment of the present application provides a kind of temporary page data processing method, compared with traditional scheme, Using mixing in application, efficiently avoiding not supporting due to the browser of the terminal device of operation mixing application When sessionstorage, can not utilize sessionstorage function the case where, for example, temporarily save Shipping Options Page it is interim The case where page data, improves the applicability of scheme.
It should be noted that it is above-mentioned be by mix application in open a browser window under target labels page for into Row explanation, but actually use in mixing application, multiple browser windows may be opened simultaneously, at this point, under each browser The disposition of the temporary page data of Shipping Options Page is similar, here not expansion description one by one.
It is further to note that in practical applications, terminal device may run multiple and different mixing simultaneously and answer With, it is all the same for the processing mode of each mixing application at this time, it does not repeat to repeat here one by one.
In one embodiment, the preset cleared condition, including in following at least one of:
The mixing application is closed;
There are the corresponding homologous Shipping Options Page of the target labels page in the Shipping Options Page of the browser, and the target labels Page and the homologous Shipping Options Page have been closed;
The corresponding homologous Shipping Options Page of the target labels page, and the target mark are not present in the Shipping Options Page of the browser Label page is closed.
Above-mentioned several preset cleared conditions are introduced separately below;
About the first, the mixing application is closed, that is to say, that if judging, the Shipping Options Page of browser is closed, and is said It is bright when meeting preset cleared condition, then memory variable is removed to remove the temporary page data.Such as system crash causes Operation mixing application carries out the factor of interrupting etc., memory variable can be removed at this time, due to removing memory variable, it will be understood that The information or data for being stored in memory variable can be also disposed of, including the corresponding temporary page data of above-mentioned target labels page.
About second, there are the corresponding homologous Shipping Options Pages of the target labels page in the Shipping Options Page of the browser, and The target labels page and the homologous Shipping Options Page have been closed, and are described in detail in the form of step below:
If the process of judgement operation mixing application is not closed, illustrate that active user does not exit mixing application at this time, and And cause mixing application to be closed without other factors, at this point, continuing to judge in the Shipping Options Page of browser with the presence or absence of target mark Sign the corresponding homologous Shipping Options Page of page.That is, the embodiment of the present application may determine that in browser in addition to opening target labels page Outside, if there are also the corresponding homologous Shipping Options Pages of its target labels page.If judging, there are target labels in the Shipping Options Page of browser The corresponding homologous Shipping Options Page of page, then judge whether target labels page and homologous Shipping Options Page are closed;
Wherein, the corresponding homologous Shipping Options Page of target labels page refer to target labels page have identical Internet protocol, Same hostname, the Shipping Options Page of identical Internet Port.Illustratively, if target labels page are as follows: http: // Www.test.com, then https: //www.test.com is not the homologous Shipping Options Page of target labels page, because of Internet protocol It is different;Http:// my.test.com is also not the homologous Shipping Options Page of target labels page, because host name is different;http:// Www.test.com:8080 is also not the homologous Shipping Options Page of target labels page, because Internet Port is different.It needs to illustrate It is, it is above-mentioned only to illustrate, the embodiment of the present application is not constituted and is limited.When judge in browser in addition to open target Outside Shipping Options Page, there are also the homologous Shipping Options Page that other are opened, then it will continue to judge target labels page and homologous Shipping Options Page Whether it has been closed, for example, setting target labels page are as follows: http://www.test.com, the homologous Shipping Options Page being opened is also Https: //www.test.com, http://my.test.com, http://www.test.com:8080 then will continue to sentence It is disconnected: http://www.test.com, https: //www.test.com, http://my.test.com and http: // Whether www.test.com:8080 has been closed.If judging, target labels page and homologous Shipping Options Page have been closed, Illustrate to meet preset cleared condition, then removes the corresponding temporary page data of the target labels page saved in memory variable, and And the corresponding temporary page data of homologous label can be cleared up.
Still by taking above-mentioned example as an example, if http://www.test.com, https: //www.test.com, http: // My.test.com and http://www.test.com:8080 have been closed, then remove the target mark saved in memory variable Sign page and the corresponding temporary page data of homologous label.That is, target labels page and target labels page are corresponding at this time The temporary page data that homologous Shipping Options Page is stored in memory variable have been eliminated, so that memory variable plays interim protection The function of Shipping Options Page temporary page data.
About the third, the corresponding homologous Shipping Options Page of the target labels page is not present in the Shipping Options Page of the browser, And the target labels page is closed.That is, the corresponding homologous Shipping Options Page of the target labels page is not beaten in a browser It opens, only judges whether the target labels page is closed at this time;If judging, target labels page is closed, and illustrates to meet preset Cleared condition then removes the corresponding temporary page data of the target labels page saved in memory variable.If judging target labels Page is not closed, then continues the corresponding temporary page data of target labels page for keeping saving in memory variable, face to play The purpose of Shi Baocun Shipping Options Page temporary page data.
For example, set target labels page as http://www.test.com, and current browser is not opened The corresponding homologous Shipping Options Page of http://www.test.com then can judge always whether http://www.test.com is closed It closes, when http://www.test.com is closed, then the http://www.test.com for removing memory variable preservation is corresponding Temporary page data.
As shown in figure 3, in step S20, memory variable is also bridged into the browser in mixing application, specifically include as Lower step:
S21: by jsBridge technology establish browser with operation mix apply operating system between duplex channel.
S22: memory variable is bridged to by the browser mixed in application by duplex channel.
JsBridge refers to the browser for realizing mixing application, between the terminal device operating system that application is mixed with operation Intermediate module browser can be made to call above-mentioned memory variable, so that in browser using jsBridge technology The temporary page data of target pages label can be saved into memory variable, therefore, can be first passed through jsBridge technology and be built Vertical browser mixes duplex channel between the operating system of application with operation.
In one embodiment, as shown in figure 4, in step S30 namely the target labels page by the browser faces When page data be stored in the memory variable, include the following steps:
S31: generating and save request, saves request for requesting operating system that temporary page data are stored in memory variable In.
S32: being transmitted to operating system by duplex channel and save request, so that operating system will face according to request is saved When page data be stored in memory variable.
The duplex channel between establish browser by jsBridge technology with operation mix the operating system applied, can be with Memory variable is bridged into the browser in mixing application by the duplex channel of foundation, at this point, the browser of terminal device can It is transmitted by duplex channel to operating system and saves request, it is described to request operating system to be stored in the temporary page data In memory variable, after the preservation request for receiving browser hair transmission, operating system can be requested according to saving by institute operating system Temporary page data are stated to be stored in the memory variable.Furthermore it is possible to which the memory of the operating system of operation mixing application is arranged The entitled name of the attribute of variable (being here example), then browser uses the function of memory variable using jsBridge technology bridge joint Can, it fixes tentatively as natvie.getsession method, is arranged and obtains the variable stored in native using js.Citing: it obtains The method of the value of memory variable key field is natvie.getsession (key);The key field of the memory variable is set Worth method is then natvie.setsession (key).
In one embodiment, as shown in figure 5, in step S21 namely described establishing the browsing by jsBridge technology Device with it is described mix application duplex channel, include the following steps:
S211: the system type for currently running the operating system of the mixing application is determined.
It is appreciated that the operating system of present terminal equipment installation may be Android operation system or Apple Macintosh operating system, Even other operating systems, and the release type of operating system may also be different, that is to say, that it is run in terminal device mixed The type for closing the operating system of application is likely to be any one above-mentioned operating system, therefore, is passing through jsBridge skill Art establishes the browser with before the duplex channel for mixing application, need to first determine the behaviour for currently running the mixing application Make the system type of system.
S212: according to the system type and the jsBridge technology establish the browser with it is described mix application Duplex channel.
After the system type for determining the operating system for currently running the mixing application, according to system type and and institute It states jsBridge technology and establishes the browser and the duplex channel for mixing application.For example, if system type is Android system System then establishes the browser and the duplex channel for mixing application according to Android system and the jsBridge technology;If System type is ios system, then establishes the browser according to ios system and the jsBridge technology and mix application with described Duplex channel.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
In one embodiment, a kind of temporary page data processing equipment is provided, the temporary page data processing equipment with it is upper The temporary page data processing method stated in embodiment corresponds.As shown in fig. 6, the temporary page data processing equipment 10 wraps It includes generation module 101, bridge module 102, preserving module 103 and removes module 104.Detailed description are as follows for each functional module:
Generation module 101, for mixing when operation in application, described in generation memory variable, the memory variable and operation Mix unique correspondence of application;In the embodiment of the present application, when operation mixing is in application, a memory variable, the memory can be generated Variable and the process of operation mixing application are uniquely corresponding.
Bridge module 102, the memory variable for generating the generation module 101 bridge to the mixing application In browser;In order to enable in mixing application web application is when can use above-mentioned memory variable namely browser can be used To above-mentioned memory variable, need to bridge to memory variable in the browser in mixing application in the embodiment of the present application.Therefore, in life After memory variable, memory variable can be bridged to the browser in mixing application.
Preserving module 103, for being stored in the temporary page data of the target labels page of the browser by described Bridge module 102 bridges in the memory variable of the browser;In the embodiment of the present application, for ease of description, will Any one Shipping Options Page that browser is opened in mixing application is known as target labels page, and the operation mixing application of target labels page is embedded Web in application, can have the corresponding temporary page data of some target labels pages in browser, due to the memory variable of generation The browser of mixing application is bridged to, therefore in the embodiment of the present application, it can be by mesh existing for the browser of mixing application The corresponding temporary page data of mark Shipping Options Page are stored in memory variable.
Module 104 is removed, for when meeting preset cleared condition, then removing the memory variable so that removing institute State temporary page data.
In one embodiment, bridge module 102 is specifically used for:
Unit 1021 is established, for establishing the browser and the two-way for mixing application by jsBridge technology Road;
Bridge-jointing unit 1022, for being bridged the memory variable by the duplex channel for establishing unit foundation Browser into the mixing application.
In one embodiment, the unit 1021 of establishing is specifically used for:
Determine the system type for currently running the operating system of the mixing application;
The browser, which is established, according to the system type and the jsBridge technology mixes the two-way of application with described Channel.
Thus, the embodiment of the present application provides a kind of temporary page data processing equipment, terminal device can be applied to In, compared with traditional scheme, using mixing in application, efficiently avoid due to due to operation mixing application terminal device Browser when not supporting sessionstorage, the case where function of sessionstorage can not be utilized, for example, interim protect The case where depositing the temporary page data of Shipping Options Page, improves the applicability of scheme.
Specific about page data processing unit limits the limit that may refer to above for page data processing method Fixed, details are not described herein.Modules in above-mentioned page data processing unit can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 8.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external server by network connection.When the computer program is executed by processor with Realize a kind of aforementioned temporary page data processing method.
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 when executing computer program
When operation mixing in application, generate memory variable, the memory variable with run it is described mix apply process only One is corresponding;
The memory variable is bridged into the browser in the mixing application;
The temporary page data of the target labels page of the browser are stored in the memory variable;
When meeting preset cleared condition, the memory variable is removed to remove the temporary page data.
Thus, the embodiment of the present application provides a kind of computer equipment, compared with traditional scheme, answered using mixing Used time, when efficiently avoiding not supporting sessionstorage due to the browser of the computer equipment of operation mixing application, The case where function of sessionstorage can not be utilized, for example, the case where temporarily saving the temporary page data of Shipping Options Page, mentions The high applicability of scheme.
It should be noted that specifically seeing preceding method reality in the step of processor is realized when executing computer program Apply the description in example, here not repeated description.
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 when being executed by processor
When operation mixing in application, generate memory variable, the memory variable with run it is described mix apply process only One is corresponding;
The memory variable is bridged into the browser in the mixing application;
The temporary page data of the target labels page of the browser are stored in the memory variable;
When meeting preset cleared condition, the memory variable is removed to remove the temporary page data.
Thus, the embodiment of the present application provides a kind of computer readable storage medium, can be applied in terminal device, Compared with traditional scheme, using mixing in application, efficiently avoid due to operation mixing application terminal device browsing When device does not support sessionstorage, can not utilize sessionstorage function the case where, for example, temporarily saving label The case where temporary page data of page, improve the applicability of scheme.
It should be noted that being realized in the step of following steps are realized when computer program is executed by processor, specifically may be used Refering to the description in preceding method embodiment, here not repeated description.
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 computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable 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), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of temporary page data processing method characterized by comprising
When operation mixing in application, generating memory variable, the memory variable and the operation process for mixing application are uniquely right It answers;
The memory variable is bridged into the browser in the mixing application;
The temporary page data of the target labels page of the browser are stored in the memory variable;
When meeting preset cleared condition, the memory variable is removed to remove the temporary page data.
2. temporary page data processing method as described in claim 1, which is characterized in that the preset cleared condition, packet Include at least one in following:
The mixing application is closed;
There are the corresponding homologous Shipping Options Page of the target labels page in the Shipping Options Page of the browser, and the target labels page with And the homologous Shipping Options Page has been closed;
The corresponding homologous Shipping Options Page of the target labels page, and the target labels page are not present in the Shipping Options Page of the browser It is closed.
3. temporary page data processing method as described in claim 1, which is characterized in that described to bridge the memory variable Browser into the mixing application, comprising:
The browser and the duplex channel for mixing application are established by jsBridge technology;
The memory variable is bridged into the browser mixed in application by the duplex channel.
4. temporary page data processing method as claimed in claim 3, which is characterized in that described to be built by jsBridge technology Found the browser and the duplex channel for mixing application, comprising:
Determine the system type for currently running the operating system of the mixing application;
The browser and the duplex channel for mixing application are established according to the system type and the jsBridge technology.
5. temporary page data processing method as claimed in claim 3, which is characterized in that the target by the browser The temporary page data of Shipping Options Page are stored in the memory variable, comprising:
It generates and saves request, the preservation request is for requesting operating system that the temporary page data are stored in the memory In variable;
The preservation request is transmitted to the operating system by the duplex channel, so that the operating system is according to It saves request the temporary page data are stored in the memory variable.
6. a kind of temporary page data processing equipment characterized by comprising
Generation module, for, in application, generating memory variable, the memory variable described to mix application with operation when operation mixing Process uniquely correspond to;
Bridge module, the memory variable for generating the generation module bridge to the browsing in the mixing application Device;
Preserving module, for being stored in the temporary page data of the target labels page of the browser by the bridge module Bridge joint is in the memory variable of the browser;
Module is removed, for when meeting preset cleared condition, then removing the memory variable so that removing described interim Page data.
7. temporary page data processing equipment as claimed in claim 6, which is characterized in that the bridge module includes:
Unit is established, for establishing the browser and the duplex channel for mixing application by jsBridge technology;
Bridge-jointing unit, it is described mixed for being bridged to the memory variable by the duplex channel for establishing unit foundation Close the browser in application.
8. temporary page data processing equipment as claimed in claim 7, which is characterized in that the unit of establishing is specifically used for:
Determine the system type for currently running the operating system of the mixing application;
The browser and the duplex channel for mixing application are established according to the system type and the jsBridge technology.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realizes such as claim 1-5 when executing the computer program Any one of described in temporary page data processing method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In temporary page data of the realization as described in any one of claim 1-5 when the computer program is executed by processor Processing method.
CN201811527536.3A 2018-12-13 2018-12-13 Temporary page data processing method, device, computer equipment and storage medium Pending CN109800374A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811527536.3A CN109800374A (en) 2018-12-13 2018-12-13 Temporary page data processing method, device, computer equipment and storage medium
PCT/CN2019/116272 WO2020119342A1 (en) 2018-12-13 2019-11-07 Temporary page data processing method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527536.3A CN109800374A (en) 2018-12-13 2018-12-13 Temporary page data processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109800374A true CN109800374A (en) 2019-05-24

Family

ID=66556646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527536.3A Pending CN109800374A (en) 2018-12-13 2018-12-13 Temporary page data processing method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109800374A (en)
WO (1) WO2020119342A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457621A (en) * 2019-08-15 2019-11-15 腾讯科技(深圳)有限公司 A kind of page display method, device and the medium of mixing application
WO2020119342A1 (en) * 2018-12-13 2020-06-18 平安普惠企业管理有限公司 Temporary page data processing method and apparatus, computer device, and storage medium
CN115292625A (en) * 2022-06-26 2022-11-04 杭州美创科技有限公司 Single-page application persistent state management method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304766A1 (en) * 2013-04-03 2014-10-09 LetMobile LTD. Method and apparatus for protecting access to corporate applications from a mobile device
CN104270427A (en) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 Session control method and device
CN105100209A (en) * 2015-06-23 2015-11-25 小米科技有限责任公司 Method and device for realizing cross domain access
CN107070870A (en) * 2017-01-09 2017-08-18 阿里巴巴集团控股有限公司 A kind of data capture method and device
WO2017219524A1 (en) * 2016-06-23 2017-12-28 乐视控股(北京)有限公司 Page saving method and electronic device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886533A (en) * 2015-12-16 2017-06-23 五八同城信息技术有限公司 Mix the implementation method and device of application
US9804834B1 (en) * 2016-04-19 2017-10-31 Dropbox, Inc. Automatically updating a hybrid application
CN109800374A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Temporary page data processing method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304766A1 (en) * 2013-04-03 2014-10-09 LetMobile LTD. Method and apparatus for protecting access to corporate applications from a mobile device
CN104270427A (en) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 Session control method and device
CN105100209A (en) * 2015-06-23 2015-11-25 小米科技有限责任公司 Method and device for realizing cross domain access
WO2017219524A1 (en) * 2016-06-23 2017-12-28 乐视控股(北京)有限公司 Page saving method and electronic device
CN107070870A (en) * 2017-01-09 2017-08-18 阿里巴巴集团控股有限公司 A kind of data capture method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
神来芒果: "web存储使用详解", 《博客园》, pages 1 - 5 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119342A1 (en) * 2018-12-13 2020-06-18 平安普惠企业管理有限公司 Temporary page data processing method and apparatus, computer device, and storage medium
CN110457621A (en) * 2019-08-15 2019-11-15 腾讯科技(深圳)有限公司 A kind of page display method, device and the medium of mixing application
CN110457621B (en) * 2019-08-15 2023-09-15 腾讯科技(深圳)有限公司 Page display method, device and medium for hybrid application
CN115292625A (en) * 2022-06-26 2022-11-04 杭州美创科技有限公司 Single-page application persistent state management method and device, computer equipment and storage medium
CN115292625B (en) * 2022-06-26 2024-01-30 杭州美创科技股份有限公司 Single page application persistence state management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2020119342A1 (en) 2020-06-18

Similar Documents

Publication Publication Date Title
CN109800374A (en) Temporary page data processing method, device, computer equipment and storage medium
CN108683679B (en) Multi-account login method, device, equipment and storage medium of Web APP
CN102307220B (en) Cross-domain webpage information interaction method
CN102281311A (en) Method, system and device for implementing network service based on open application programming interface
CN104572263A (en) Page data interaction method, related device and system
CN109445733A (en) Across screen methods of exhibiting, device, calculate equipment and storage medium
CN110009404A (en) Advertisement demonstration method, device, computer equipment and storage medium
CN111212156B (en) Network connection method and device
CN109039751A (en) Configure method, apparatus, computer equipment and the storage medium of routing
CN109447780A (en) Information push method, device, computer equipment and storage medium
CN110661853A (en) Data proxy method, device, computer equipment and readable storage medium
CN104301289A (en) Apparatus for security information interaction
CN106973020A (en) The flow limitation method and system of network sharing terminal and network sharing
CN109413153A (en) Data crawling method, device, computer equipment and storage medium
CN105141632A (en) Method and device used for checking pages
CN110336812A (en) Resource intercepting processing method, device, computer equipment and storage medium
CN109195157A (en) application management method, device and terminal
CN103716400A (en) Method and system for achieving mobile working based on virtual machine
CN102907071A (en) Data transmission method, mobile terminal, proxy server
CN112016122A (en) Webpage data processing method and device, computer equipment and storage medium
CN102739619B (en) A kind of data communications method and device
CN105978929A (en) Method and system for data interaction between different mobile terminal platforms and back-end server
CN106162505A (en) Soft SIM communication means, device and terminal
CN109446762A (en) Cloud platform access method, device, computer equipment and storage medium
CN109615419A (en) A kind of method for building up, device, equipment and the storage medium of project cost template

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