CN110489681A - Data interactive method, system and storage medium between webpage based on APP - Google Patents

Data interactive method, system and storage medium between webpage based on APP Download PDF

Info

Publication number
CN110489681A
CN110489681A CN201910599455.2A CN201910599455A CN110489681A CN 110489681 A CN110489681 A CN 110489681A CN 201910599455 A CN201910599455 A CN 201910599455A CN 110489681 A CN110489681 A CN 110489681A
Authority
CN
China
Prior art keywords
webpage
app
data
target data
video
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
CN201910599455.2A
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.)
Tianmai Juyuan (hangzhou) Media Technology Co Ltd
Original Assignee
Tianmai Juyuan (hangzhou) Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianmai Juyuan (hangzhou) Media Technology Co Ltd filed Critical Tianmai Juyuan (hangzhou) Media Technology Co Ltd
Priority to CN201910599455.2A priority Critical patent/CN110489681A/en
Publication of CN110489681A publication Critical patent/CN110489681A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Abstract

The invention discloses data interactive method, system and storage medium between the webpage based on APP, method includes: first Webpage embedded by APP load;According to the command signal that the first Webpage obtains, js directive script is triggered;According to js directive script, the method for reseptance in APP is called to receive the js data that the first Webpage is sent;By APP by the js data conversion received at target data;Arouse the second Webpage inside APP by the get parameter mode of html;Target data is received by the second Webpage, and carries out parsing displaying.The present invention realizes that the data interaction between embedded Webpage communicates by APP, so that the build-in function of APP can be used in Webpage, practicability is high;In addition, the present invention improves the communication efficiency of data interaction, data communication technology field can be widely applied to.

Description

Data interactive method, system and storage medium between webpage based on APP
Technical field
The present invention relates to data communication technology field, it is based especially on data interactive method, system between the webpage of APP and deposits Storage media.
Background technique
With the development of portable terminal (such as smart phone, tablet computer) technology, terminal device is capable of handling And the information content of storage also increasingly increases, the quantity for the application program (APP, Application) that user installs at the terminal Increasing, the showing interface mode of each APP is all various.Being shown to the different interfaces of same APP can To be realized by corresponding displaying algorithm;Developer is pre- by displaying algorithm corresponding to existing different showing interfaces In the installation kit for first loading on APP, terminal user can be after being installed the corresponding installation kit of APP, according to their needs Existing displaying algorithm is selected to select the showing interface of APP.
But when a certain APP additionally increases a kind of showing interface mode, or update APP in data when, Yong Huxu Complete installation kit upgrading is carried out to the APP, will cause terminal user in this way and expend biggish data traffic;Moreover, carrying out The complete installation kit of upgrading is usually that unified exploitation and encapsulation are carried out by developer, increases the workload of developer, It also can not include the showing interface algorithm for meeting individual subscriber operating habit, so as to cause that can not provide a user personalization Showing interface also greatly affected the experience of user.
Therefore, some APP can show function in internal embedded web page at present, come to some updates by way of H5 webpage The higher interface of frequency carries out Dynamic Display, since the development difficulty of the development difficulty ratio APP functional module of Webpage is small, leads to The development amount of developer can be reduced by crossing this mode, meanwhile, the display form of webpage can provide individual character for user The displaying interface of change, can be improved user experience.
Currently, needing to pass through calling when realizing the page switching between different web pages for the webpage that APP is embedded The mode of browser carries out the data communication and page switching between webpage, the communication efficiency of this data interactive mode compared with It is low, and the function of current APP can not be applied on webpage, it is not practical enough.
Summary of the invention
In view of this, the embodiment of the present invention provides, a kind of interactive efficiency is high and practicability is high, number between the webpage based on APP According to exchange method, system and storage medium.
In a first aspect, the embodiment of the invention provides data interactive methods between the webpage based on APP, comprising the following steps:
Pass through the first embedded Webpage of APP load;
According to the command signal that the first Webpage obtains, js directive script is triggered;
According to js directive script, the method for reseptance in APP is called to receive the js data that the first Webpage is sent;
By APP by the js data conversion received at target data;
Arouse the second Webpage inside APP by the get parameter mode of html;
Target data is received by the second Webpage, and carries out parsing displaying.
Further, the step for js data conversion that will be received by APP is at target data, including following step It is rapid:
The js data received are decrypted by APP;
Processing is decoded to the result of decryption processing;
Data mart modeling processing is carried out to the result of decoding process, obtains target data.
Further, described the step for the second Webpage inside APP is aroused by the get parameter mode of html, packet Include following steps:
Target data is passed to the second Webpage by APP;
According to target data, arouse the second Webpage inside APP by the get parameter mode of html.
Further, further comprising the steps of:
Js data are transmitted to the second Webpage by the first Webpage, then carry out parsing displaying by the second Webpage.
Further, the target data is structural data.
Further, the structural data includes video playing address, video cover screenshot address, video title, video Speech recognition result in duration, video creation time, subordinate channel, the affiliated type of video program and video.
Second aspect, the embodiment of the invention provides data interaction systems between the webpage based on APP, comprising:
Loading module, for first Webpage embedded by APP load;
Instruction module, the command signal for being obtained according to the first Webpage trigger js directive script;
Calling module, for calling the method for reseptance in APP to receive what the first Webpage was sent according to js directive script Js data;
Conversion module, for passing through APP for the js data conversion received into target data;
Arouse module, arouses the second Webpage inside APP for the get parameter mode by html;
Display module for receiving target data by the second Webpage, and carries out parsing displaying.
Further, the conversion module includes:
Decryption unit, for the js data received to be decrypted by APP;
Decoding unit is decoded processing for the result to decryption processing;
Unit is processed, data mart modeling processing is carried out for the result to decoding process, obtains target data.
The third aspect, the embodiment of the invention provides data interaction systems between the webpage based on APP, comprising:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized Data interactive method between the webpage based on APP.
Fourth aspect, the embodiment of the invention also provides a kind of storage mediums, wherein being stored with the executable finger of processor It enables, the executable instruction of the processor is handed over for data between executing the webpage based on APP when executed by the processor Mutual method.
One or more technical solutions in the embodiments of the present invention have the advantages that the embodiment of the present invention passes through APP realizes the data interaction communication between embedded the first Webpage and the second Webpage, so that the first Webpage can To use the build-in function of APP, practicability height by acquisition instruction signal;In addition, the present invention is without calling external browser It realizes the data communication between webpage, improves the communication efficiency of data interaction.
Detailed description of the invention
Fig. 1 is the step flow chart of the embodiment of the present invention.
Specific embodiment
The present invention is further explained and is illustrated with specific embodiment with reference to the accompanying drawings of the specification.For of the invention real The step number in example is applied, is arranged only for the purposes of illustrating explanation, any restriction is not done to the sequence between step, is implemented The execution sequence of each step in example can be adaptively adjusted according to the understanding of those skilled in the art.
Referring to Fig.1, the embodiment of the invention provides data interactive methods between the webpage based on APP, comprising the following steps:
Pass through the first embedded Webpage of APP load;
According to the command signal that the first Webpage obtains, js directive script is triggered;
According to js directive script, the method for reseptance in APP is called to receive the js data that the first Webpage is sent;
By APP by the js data conversion received at target data;
Arouse the second Webpage inside APP by the get parameter mode of html;
Target data is received by the second Webpage, and carries out parsing displaying.
Be further used as preferred embodiment, the js data conversion that will be received by APP at target data this One step, comprising the following steps:
The js data received are decrypted by APP;
Processing is decoded to the result of decryption processing;
Data mart modeling processing is carried out to the result of decoding process, obtains target data.
It is further used as preferred embodiment, the get parameter mode by html arouses the second net inside APP The step for page page, comprising the following steps:
Target data is passed to the second Webpage by APP;
According to target data, arouse the second Webpage inside APP by the get parameter mode of html.
It is further used as preferred embodiment, further comprising the steps of:
Js data are transmitted to the second Webpage by the first Webpage, then carry out parsing displaying by the second Webpage.
It is further used as preferred embodiment, the target data is structural data.
It is further used as preferred embodiment, the structural data includes video playing address, video cover screenshot Voice in address, video title, video length, video creation time, subordinate channel, the affiliated type of video program and video Recognition result.
Corresponding with the method for Fig. 1, the embodiment of the invention provides data interaction systems between the webpage based on APP, comprising:
Loading module, for first Webpage embedded by APP load;
Instruction module, the command signal for being obtained according to the first Webpage trigger js directive script;
Calling module, for calling the method for reseptance in APP to receive what the first Webpage was sent according to js directive script Js data;
Conversion module, for passing through APP for the js data conversion received into target data;
Arouse module, arouses the second Webpage inside APP for the get parameter mode by html;
Display module for receiving target data by the second Webpage, and carries out parsing displaying.
It is further used as preferred embodiment, the conversion module includes:
Decryption unit, for the js data received to be decrypted by APP;
Decoding unit is decoded processing for the result to decryption processing;
Unit is processed, data mart modeling processing is carried out for the result to decoding process, obtains target data.
Corresponding with the method for Fig. 1, the embodiment of the invention provides data interaction systems between the webpage based on APP, comprising:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized Data interactive method between the webpage based on APP.
Corresponding with the method for Fig. 1, the embodiment of the invention also provides a kind of storage mediums, wherein being stored with processor can The instruction of execution, the executable instruction of the processor is when executed by the processor for executing the webpage based on APP Between data interactive method.
The specific implementation step of data interactive method between webpage the present invention is based on APP is described below in detail:
S1, pass through the first embedded Webpage of APP load;
S2, the command signal obtained according to the first Webpage, trigger js directive script;
S3, according to js directive script, call the method for reseptance in APP to receive the js data that the first Webpage is sent;
S4, by APP by the js data conversion received at target data;
Specifically, the step S4 the following steps are included:
S41, the js data received are decrypted by APP;
S42, processing is decoded to the result of decryption processing;
S43, data mart modeling processing is carried out to the result of decoding process, obtains target data.
S5, arouse the second Webpage inside APP by the get parameter mode of html;
Specifically, the step S5 the following steps are included:
S51, target data is passed to by the second Webpage by APP;
S52, according to target data, arouse the second Webpage inside APP by the get parameter mode of html.
S6, target data is received by the second Webpage, and carries out parsing displaying.
In conclusion the JavaScript that app and html/html5 are supported, which is utilized, in the present embodiment carries out data transmitting Method:
It is loaded first by app and shows that page-out A, page A carry out self load;
User click manually in page A such as certain button, trigger the work of js script, js is called directly in app and is used at this time The method M of js data is received, while the js data of page A being passed to the method M of app;
M receives data and a series of necessary processing such as is decrypted, decodes, processing;
M is construed to the identifiable data of app (i.e. target data) for content is transmitted;And according to business, data are carried out again Processing;
Directly arouse page B with the get parameter mode of html, while passing to page B for data as suction parameter;
Page B carries out parsing displaying etc..
In addition, if directly B can be aroused by A, and by parameter in a manner of get in two direct Transfer Parameters of the html page It is directly incoming, do not need other operations.The present embodiment is then the function by borrowing app, is simulated between two html pages The process of plain text transmit parameter between webpage, and ensure that the reprocessing form of data and reduce the number of network access with And risk.
The present embodiment with short-sighted frequency range data instance, include in the data structure of the target data video playing address, Video cover screenshot address, video title, video length, video creation time, subordinate channel, the affiliated type of video program, view Speech recognition result etc. in frequency.
In conclusion the present invention is based on data interactive method, system and storage mediums between the webpage of APP with following excellent Point:
The present invention realizes that the data interaction between embedded the first Webpage and the second Webpage is communicated by APP, Allow the first Webpage by acquisition instruction signal come using the build-in function of APP, practicability is high;In addition, of the invention The data communication between webpage is realized without calling external browser, improves the communication efficiency of data interaction.
In some selectable embodiments, the function/operation mentioned in a block diagram can not be mentioned according to operational illustrations The sequence arrived occurs.For example, depending on related function/operation, two boxes continuously shown can actually be by substantially On simultaneously execute or the box can be performed sometimes with reverse order.In addition, presented in flow chart of the invention and The embodiment of description is provided in an illustrative manner, and it is an object of the present invention to provide technology is more completely understood.Disclosed method is not It is limited to operation presented herein and logic flow.Selectable embodiment is it is contemplated that the wherein sequence quilt of various operations The sub-operation of a part for changing and being wherein described as larger operation is executed independently.
Although in addition, describe the present invention under the background of functional module, but it is to be understood that, unless otherwise opposite Illustrate, one or more of the function and/or feature can be integrated in single physical device and/or software module In or one or more functions and/or feature can be implemented in individual physical unit or software module.It can also manage Solution, the practical realization in relation to each module are discussed in detail for understanding that the present invention is unnecessary.More precisely, examining Consider in device disclosed herein in the case where the attribute of various functional modules, function and internal relations, engineer's It will understand that the practical realization of the module in routine techniques.Therefore, those skilled in the art can be in nothing with ordinary skill Need to realize the present invention illustrated in detail in the claims in the case where undue experimentation.It will also be appreciated that disclosed spy Determine concept to be merely illustrative, be not intended to limit the scope of the present invention, the scope of the present invention by the appended claims and The full scope of its equivalent program determines.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
It is to be illustrated to preferable implementation of the invention, but the present invention is not limited to the embodiment above, it is ripe Various equivalent deformation or replacement can also be made on the premise of without prejudice to spirit of the invention by knowing those skilled in the art, this Equivalent deformation or replacement are all included in the scope defined by the claims of the present application a bit.

Claims (10)

1. data interactive method between the webpage based on APP, it is characterised in that: the following steps are included:
Pass through the first embedded Webpage of APP load;
According to the command signal that the first Webpage obtains, js directive script is triggered;
According to js directive script, the method for reseptance in APP is called to receive the js data that the first Webpage is sent;
By APP by the js data conversion received at target data;
Arouse the second Webpage inside APP by the get parameter mode of html;
Target data is received by the second Webpage, and carries out parsing displaying.
2. data interactive method between the webpage according to claim 1 based on APP, it is characterised in that: described to be incited somebody to action by APP The step for js data conversion received is at target data, comprising the following steps:
The js data received are decrypted by APP;
Processing is decoded to the result of decryption processing;
Data mart modeling processing is carried out to the result of decoding process, obtains target data.
3. data interactive method between the webpage according to claim 1 based on APP, it is characterised in that: described to pass through html Get parameter mode the step for arousing the second Webpage inside APP, comprising the following steps:
Target data is passed to the second Webpage by APP;
According to target data, arouse the second Webpage inside APP by the get parameter mode of html.
4. data interactive method between the webpage according to claim 1 based on APP, it is characterised in that: further include following step It is rapid:
Js data are transmitted to the second Webpage by the first Webpage, then carry out parsing displaying by the second Webpage.
5. data interactive method between the webpage according to claim 1 based on APP, it is characterised in that: the target data For structural data.
6. data interactive method between the webpage according to claim 5 based on APP, it is characterised in that: the structuring number According to include video playing address, video cover screenshot address, video title, video length, the video creation time, subordinate channel, Speech recognition result in the affiliated type of video program and video.
7. data interaction system between the webpage based on APP, it is characterised in that: include:
Loading module, for first Webpage embedded by APP load;
Instruction module, the command signal for being obtained according to the first Webpage trigger js directive script;
Calling module, for calling the method for reseptance in APP to receive the js number that the first Webpage is sent according to js directive script According to;
Conversion module, for passing through APP for the js data conversion received into target data;
Arouse module, arouses the second Webpage inside APP for the get parameter mode by html;
Display module for receiving target data by the second Webpage, and carries out parsing displaying.
8. data interaction system between the webpage according to claim 7 based on APP, it is characterised in that: the conversion module Include:
Decryption unit, for the js data received to be decrypted by APP;
Decoding unit is decoded processing for the result to decryption processing;
Unit is processed, data mart modeling processing is carried out for the result to decoding process, obtains target data.
9. data interaction system between the webpage based on APP, it is characterised in that: include:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized as weighed Benefit requires data interactive method between the webpage described in any one of 1-6 based on APP.
10. a kind of storage medium, wherein being stored with the executable instruction of processor, it is characterised in that: the processor is executable Instruction when executed by the processor for executing data such as between the webpage of any of claims 1-6 based on APP Exchange method.
CN201910599455.2A 2019-07-04 2019-07-04 Data interactive method, system and storage medium between webpage based on APP Pending CN110489681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910599455.2A CN110489681A (en) 2019-07-04 2019-07-04 Data interactive method, system and storage medium between webpage based on APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910599455.2A CN110489681A (en) 2019-07-04 2019-07-04 Data interactive method, system and storage medium between webpage based on APP

Publications (1)

Publication Number Publication Date
CN110489681A true CN110489681A (en) 2019-11-22

Family

ID=68546771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910599455.2A Pending CN110489681A (en) 2019-07-04 2019-07-04 Data interactive method, system and storage medium between webpage based on APP

Country Status (1)

Country Link
CN (1) CN110489681A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911367A (en) * 2019-12-03 2021-06-04 腾讯科技(深圳)有限公司 Video playing interface processing method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911367A (en) * 2019-12-03 2021-06-04 腾讯科技(深圳)有限公司 Video playing interface processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20200118566A1 (en) Human-computer interaction processing system, method, storage medium, and electronic device
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN105549820B (en) A kind of method and terminal showing graphic user interface
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
CN109408685A (en) Mind map methods of exhibiting and device
CN107274186A (en) The method and apparatus that intelligent contract-defined interface is obtained in block chain
CN109933760A (en) List generation method, device, computer equipment and computer readable storage medium
CN105630461A (en) Managing method of android application interface
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN103365621B (en) Image processing method and device
CN108419089A (en) Module data processing method, device, equipment and storage medium
CN102541548A (en) Techniques to customize a user interface for different displays
CN104598107A (en) Generating method and system of interface control
CN104115143A (en) Multiple tab stack user interface
CN107679113A (en) Acquisition methods, equipment and the electronic equipment gently applied
CN108549568A (en) Using entrance processing method, apparatus, storage medium and electronic equipment
CN108170497A (en) A kind of method and device of page rendering
US10261968B2 (en) Method and apparatus for navigational searching of a website
CN107092475A (en) The call method and device of a kind of interactive controls
CN109947388A (en) The page broadcasts control method, device, electronic equipment and the storage medium of reading
CN106658142A (en) Interface configuration method and device
CN109271579A (en) A kind of application recommended method, electronic equipment and storage medium based on input information
CN106503111A (en) Webpage code-transferring method, device and client terminal
CN108880700A (en) Frequency hopping method, frequency hopping device and the mobile terminal of clock signal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191122

WD01 Invention patent application deemed withdrawn after publication