CN109471739A - Data transmission method and device between local application and webpage kernel - Google Patents

Data transmission method and device between local application and webpage kernel Download PDF

Info

Publication number
CN109471739A
CN109471739A CN201811241862.8A CN201811241862A CN109471739A CN 109471739 A CN109471739 A CN 109471739A CN 201811241862 A CN201811241862 A CN 201811241862A CN 109471739 A CN109471739 A CN 109471739A
Authority
CN
China
Prior art keywords
data
webpage
kernel
local application
application
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
CN201811241862.8A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811241862.8A priority Critical patent/CN109471739A/en
Publication of CN109471739A publication Critical patent/CN109471739A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

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

Abstract

The application proposes the data transmission method and device between a kind of local application and webpage kernel, wherein method includes: the data for receiving transmitting terminal and sending, wherein transmitting terminal is one in local application and webpage kernel;Judge whether data are coded data;And if data are not coded data, data are encoded and are sent to receiving end, wherein receiving end be local application and webpage kernel in another, and receiving end coded data is decoded after load.This method can be realized during data transmission, guarantee the integrality and correctness of data, and can be adapted for the transmission of the data under different scenes, promote the applicability of this method.

Description

Data transmission method and device between local application and webpage kernel
Technical field
This application involves the data biographies between field of communication technology more particularly to a kind of local application and webpage kernel Transmission method and device.
Background technique
Currently, in application program (Application, abbreviation APP) exploitation, for the ease of user in APP page editing Dispatch, the abundant page displaying pattern, and for the iteratively faster of APP, needed in APP built-in H5 (abbreviation of HTML5, wherein HTML5 is the 5th material alteration using hypertext markup language (HyperText Markup Language)) page, from And facilitate the iteration and publication of APP new function.
In the related technology, between the application program on mobile terminal (hereinafter referred to local application) and webpage kernel When carrying out data transmission, directly acquire initial data and transmitted, alternatively, by initial data be converted into the data of json format into Row transmission.
Under this mode, if directly acquisition initial data is transmitted, the data transmission of simple types can only be carried out, Applicability is not high, and if the data that initial data is converted into json format transmitted, it during transmission, may The case where causing loss of data generation, to not can guarantee the integrality and correctness of data.
Summary of the invention
The application proposes the data transmission method and device between a kind of local application and webpage kernel, is existed with realizing During data are transmitted, guarantee the integrality and correctness of data, and can be adapted for the transmission of the data under different scenes, Promoted this method applicability, for solve in the prior art data transmit during, not can guarantee the integrality of data And the technical problem that correctness and applicability be not high.
The application one side embodiment proposes the data transmission method between a kind of local application and webpage kernel, Include:
Receive the data that transmitting terminal is sent, wherein the transmitting terminal is one in local application and webpage kernel;
Judge whether the data are coded data;And
If the data are not coded data, the data are encoded and are sent to receiving end, wherein is described Receiving end be the local application and the webpage kernel in another, and the receiving end to the coded data into It is loaded after row decoding.
Data transmission method between the local application and webpage kernel of the embodiment of the present application, by receiving transmitting terminal The data of transmission, and judge whether data are coded data, if it is not, then being encoded to data and being sent to receiving end, wherein Transmitting terminal is one in local application and webpage kernel, and receiving end is another, and receiving end carries out coded data It is loaded after decoding.In the application, by carrying out coded treatment to data, it may be implemented to guarantee number during data are transmitted According to integrality and correctness, and can be adapted for the data under different scenes transmission, promote the applicability of this method.
The another aspect embodiment of the application proposes the data transmission between a kind of local application and webpage kernel and fills It sets, comprising:
Receiving module, for receiving the data of transmitting terminal transmission, wherein the transmitting terminal is local application and webpage One in kernel;
Judgment module, for judging whether the data are coded data;And
Processing module is encoded and is sent to the data and connect if not being coded data for the data Receiving end, wherein the receiving end is another in the local application and the webpage kernel, and the receiving end pair The coded data loads after being decoded.
Data transmission device between the local application and webpage kernel of the embodiment of the present application, by receiving transmitting terminal The data of transmission, and judge whether data are coded data, if it is not, then being encoded to data and being sent to receiving end, wherein Transmitting terminal is one in local application and webpage kernel, and receiving end is another, and receiving end carries out coded data It is loaded after decoding.In the application, by carrying out coded treatment to data, it may be implemented to guarantee number during data are transmitted According to integrality and correctness, and can be adapted for the data under different scenes transmission, promoted applicability.
The another aspect embodiment of the application proposes a kind of calculating equipment, comprising: memory, processor and is stored in storage On device and the computer program that can run on a processor, when the processor executes described program, realize as the application is aforementioned The data transmission method between local application and webpage kernel that embodiment proposes.
The another aspect embodiment of the application proposes a kind of non-transitorycomputer readable storage medium, is stored thereon with meter Calculation machine program, which is characterized in that realize that such as the application previous embodiment proposes locally applied when the program is executed by processor Data transmission method between program and webpage kernel.
The another aspect embodiment of the application proposes a kind of computer program product, when in the computer program product When instruction is executed by processor, the number between the local application and webpage kernel proposed such as the application previous embodiment is executed According to transmission method.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram that current local application and webpage kernel carry out data transmission;
Fig. 2 is the data transmission method provided by the embodiment of the present application one between local application and webpage kernel Flow diagram;
Fig. 3 is the display interface schematic diagram one of local application;
Fig. 4 is the display interface schematic diagram two of local application;
Fig. 5 is the data transmission method provided by the embodiment of the present application two between local application and webpage kernel Flow diagram;
Fig. 6 is the flow diagram one that local application and webpage kernel carry out data transmission in the embodiment of the present application;
Fig. 7 is the data transmission method provided by the embodiment of the present application three between local application and webpage kernel Flow diagram;
Fig. 8 is the flow diagram two that local application and webpage kernel carry out data transmission in the embodiment of the present application;
Fig. 9 is the data transmission device provided by the embodiment of the present application four between local application and webpage kernel Structural schematic diagram;
Figure 10 is the data transmission device provided by the embodiment of the present application five between local application and webpage kernel Structural schematic diagram;
Figure 11 shows the block diagram for being suitable for the exemplary computer device for being used to realize the application embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
In the prior art, it when carrying out data transmission between local application and webpage kernel, can directly acquire original Data are transmitted, alternatively, the data that initial data is converted into json format are transmitted.It is mesh for example, with reference to Fig. 1, Fig. 1 The flow diagram that preceding local application and webpage kernel carry out data transmission.Wherein, JSBridge is primary (Native) The communication bridge of code and JavaScript (JS) code, i.e., between the primary interface and the interface H5 of connection local application Bridge.
However, during data transmission, for showing that the component (WebView) of web page contents can solve data Code processing, if in data including spcial character, it may occur however that can not identify or the case where decoding error, thus in webpage The data that core receives be not local application send initial data, then may cause webpage occur interface display mistake, The problems such as loss of data, exception.Also, directly acquisition initial data is transmitted, and cannot achieve big data transmission, adaptability is not It is high.
The application is mainly for the integrality that during data are transmitted, not can guarantee data in the prior art and correctly Property and the not high technical problem of applicability propose the data transmission method between a kind of local application and webpage kernel.
Data transmission method between the local application and webpage kernel of the embodiment of the present application, by receiving transmitting terminal The data of transmission, and judge whether data are coded data, if it is not, then being encoded to data and being sent to receiving end, wherein Transmitting terminal is one in local application and webpage kernel, and receiving end is another, and receiving end carries out coded data It is loaded after decoding.In the application, by carrying out coded treatment to data, it may be implemented to guarantee number during data are transmitted According to integrality and correctness, and can be adapted for the data under different scenes transmission, promote the applicability of this method.
Below with reference to the accompanying drawings transmission side data between the local application of the embodiment of the present application and webpage kernel is described Method and device.Before specifically describing the embodiment of the present invention, in order to make it easy to understand, common technology word is introduced first:
Iframe is html tag, is the function realized in a webpage comprising other multiple webpages in html language Energy.
URL, uniform resource locator (Uniform Universal Resource Locator).
Fig. 2 is the data transmission method provided by the embodiment of the present application one between local application and webpage kernel Flow diagram.
The embodiment of the present application is configured in local with the data transmission method between the local application and webpage kernel Come in data transmission device between application program and webpage kernel for example, between the local application and webpage kernel Data transmission device can be configured in any calculating equipment, local application and net can be executed with the calculating equipment Data-transformation facility between page kernel.
Wherein, local application, which refers to, may operate in the software program calculated in equipment, and it can be a for calculating equipment People's computer (Personal Computer, abbreviation PC), cloud device, mobile device, mobile unit etc., mobile device for example may be used Think that mobile phone, tablet computer, personal digital assistant, wearable device etc. have various operating systems, touch screen and/or display screen Hardware device.
As shown in Fig. 2, data transmission method between the local application and webpage kernel the following steps are included:
Step 101, the data that transmitting terminal is sent are received, wherein transmitting terminal is in local application and webpage kernel One.
In the embodiment of the present application, transmitting terminal can be local application, alternatively, transmitting terminal may be webpage kernel, Wherein, webpage kernel can be H5 and the webpage kernel of the above version.For convenience of description, the following embodiment of the application is to send It holds to be illustrated for local application.
It,, can be with before transmitting terminal sends data in order to guarantee the original property and correctness of data in the embodiment of the present application Coded treatment is carried out to data.Specifically, transmitting terminal can obtain data from server, then carry out at coding to data Reason.For example, existing encryption algorithm can be used, coded treatment is carried out to data, alternatively, customized coding can also be used Algorithm carries out coded treatment to data, and the application is without limitation.
After transmitting terminal carries out coded treatment to data, coded data can be sent in local application and webpage Data transmission device between core, correspondingly, the data transmission device between local application and webpage kernel can receive The coded data that transmitting terminal is sent.
Step 102, judge whether data are coded data.
It is alternatively possible to which using related algorithm in the related technology data are identified with determine whether data are coding Data are not repeated herein.
Step 103, if data are not coded data, data is encoded and are sent to receiving end, wherein received End be local application and webpage kernel in another, and receiving end coded data is decoded after load.
It should be noted that due to during data are transmitted, for showing component (WebView) meeting of web page contents Processing is decoded to data, if in data including spcial character, it may occur however that can not identify or the feelings of decoding error Condition.For example, after showing that the component of web page contents is decoded it, will become when in URL link including character "+" Space " ", for another example when include in URL link space " ", the English single quotation marks occurred in character string " ' " etc. whens, for showing It after the component of web page contents is decoded it, will be unable to identify it, or identification mistake.To which webpage kernel receives To data be not initial data that local application is sent, then may cause that interface display mistake occurs in webpage, data are lost The problems such as losing, be abnormal.
It as an example, is the display interface schematic diagram one of local application referring to Fig. 3, Fig. 3.Pass through shifting in user During dynamic terminal transmission picture, if in image link including character "+", carried out in local application and webpage kernel During data are transmitted, the character "+" in link can be turned into space " ", at this point, will be unable to display picture, that is, interface occur Show abnormal situation.
Therefore, in the application, in order to guarantee the original property and correctness of data, when local application and webpage kernel it Between data transmission device when to determine data not be coded data, data can be encoded, coded data is saved And it is sent to receiving end.And when determining data is coded data, which can be saved, and directly will coding Data are sent to receiving end.
Specifically, when data are not coded data, the spcial character among data can be extracted, after extraction Spcial character carry out coded treatment, coded data is then sent to receiving end, correspondingly, receiving end is receiving coded number According to rear, decoding algorithm corresponding with encryption algorithm can be used, be loaded after being decoded to coded data, thus, it is possible to guarantee The consistency and correctness for the data that the data and transmitting terminal of receiving end load are sent.
As an example, referring to fig. 4, Fig. 4 is the display interface schematic diagram two of local application.No matter image link In whether include spcial character, can normally show, greatly promoted user usage experience.
It should be noted that the above embodiments of the present application are using transmitting terminal as local application, receiving end is in webpage The explanation carried out for core in actual use can also be using receiving end as local application, and transmitting terminal is webpage kernel, With no restriction to this.
Data transmission method between the local application and webpage kernel of the embodiment of the present application, by receiving transmitting terminal The data of transmission, and judge whether data are coded data, if it is not, then being encoded to data and being sent to receiving end, wherein Transmitting terminal is one in local application and webpage kernel, and receiving end is another, and receiving end carries out coded data It is loaded after decoding.In the application, by carrying out coded treatment to data, it may be implemented to guarantee number during data are transmitted According to integrality and correctness, and can be adapted for the data under different scenes transmission, promote the applicability of this method.
It should be noted that, although interface presentation can be done without using webpage kernel by local application, to solve In the prior art during data are transmitted, the integrality and correctness and the not high skill of applicability of data not can guarantee Art problem, still, this mode shield the performance that webpage kernel dynamic updates, and it is mixed equally to shield the picture and text in editing process The displaying advantage of row, seriously reduces the usage experience of user.
Therefore, in the application, it may also reach up the performance of the dynamic and real-time update by webpage kernel, to locally applied The content that program interface is shown carries out real-time update, and may be implemented that graceful picture and text mixing circle is presented in local application Face, the greatly technical effect of the usage experience of promotion user.
For an embodiment in clear explanation, referring to Fig. 5, the embodiment of the present application connects using transmitting terminal as local application Receiving end be webpage kernel for be described in detail.
Fig. 5 is the data transmission method provided by the embodiment of the present application two between local application and webpage kernel Flow diagram.
The embodiment of the present application is using the data transmission device between local application and webpage kernel as intermediate module example.
As shown in figure 5, the data transmission method between the local application and webpage kernel may comprise steps of:
Step 201, local application obtains data from server and encodes to data.
Step 202, the data after coding are sent to intermediate module by local application.
Step 203, intermediate module judges whether data are coded data, if it is not, step 204-206 is executed, if so, executing Step 206.
Step 204, the spcial character among data is extracted.
As a kind of possible implementation, the spy among data can be identified according to the spcial character library pre-established Different character can extract the spcial character identified after identifying each spcial character among data, easy to operate and be easy to It realizes.
It wherein, may include common spcial character, such as character "+", space " ", English single quotation marks in spcial character library " ' " etc..It should be noted that above-mentioned spcial character is default merely for exemplary purpose, the embodiment of the present application is not limited to this.
Specifically, each character in data can be matched with spcial character library, if the predetermined word in data Symbol belongs to spcial character library, it is determined that the preset characters are spcial character, at this point it is possible to extract the preset characters.
Further, which can also be updated, so as to the special word in spcial character library Symbol carries out Dynamic Maintenance, guarantees abundant, the correct and real-time of spcial character.
Step 205, the spcial character among data is encoded.
It is alternatively possible to coded treatment is carried out to the spcial character among data using existing encryption algorithm, alternatively, Customized encryption algorithm can also be used, coded treatment is carried out to the spcial character among data, the application does not limit this System.
Step 206, coded data is sent to webpage kernel.
Step 207, verification coded data loads after being decoded in webpage.
It as an example, is that local application is counted with webpage kernel in the embodiment of the present application referring to Fig. 6, Fig. 6 According to the flow diagram one of transmission.Wherein, by being arranged between the component in local application and for showing web page contents Intermediate module carries out coded treatment to the data that local application is sent, for the component of display web page contents exists After being decoded processing to coded data, it is ensured that the original property and correctness of data.
Data transmission method between the local application and webpage kernel of the embodiment of the present application, among to data Spcial character carry out coded treatment, may be implemented data transmit during, guarantee the integrality and correctness of data, and And can be adapted for the transmission of the data under different scenes, promote applicability.
For an embodiment in clear explanation, referring to Fig. 7, the embodiment of the present application is using receiving end as local application, hair Sending end be webpage kernel for be described in detail.
Fig. 7 is the data transmission method provided by the embodiment of the present application three between local application and webpage kernel Flow diagram.
The embodiment of the present application is using the data transmission device between local application and webpage kernel as intermediate module example.
As shown in figure 5, the data transmission method between the local application and webpage kernel may comprise steps of:
Step 301, webpage kernel obtains data from server, and is sent to intermediate module.
Step 302, intermediate module judges whether data are coded data, if it is not, step 303 is executed, if so, executing step 305。
Step 303, intermediate module extracts the spcial character among data.
Step 304, the spcial character among data is encoded.
Step 305, coded data is sent to local application.
Step 306, it is loaded after local application is decoded coded data.
It as an example, is that local application is counted with webpage kernel in the embodiment of the present application referring to Fig. 8, Fig. 8 According to the flow diagram two of transmission.Wherein, by the way that intermediate module is arranged between webpage kernel and local application, to net The data that page kernel is sent carry out coded treatment, thus after local application is decoded processing to coded data, Ke Yibao Demonstrate,prove the original property and correctness of data.
Data transmission method between the local application and webpage kernel of the embodiment of the present application, among to data Spcial character carry out coded treatment, may be implemented data transmit during, guarantee the integrality and correctness of data, and And can be adapted for the transmission of the data under different scenes, promote the applicability of this method.
In order to realize above-described embodiment, the application also proposes that the data between a kind of local application and webpage kernel pass Defeated device.
Fig. 9 is the data transmission device provided by the embodiment of the present application four between local application and webpage kernel Structural schematic diagram.
As shown in figure 9, the data transmission device between the local application and webpage kernel include: receiving module 110, Judgment module 120 and processing module 130.
Wherein, receiving module 110, for receiving the data of transmitting terminal transmission, wherein the transmitting terminal is locally applied journey One in sequence and webpage kernel.
Judgment module 120, for judging whether the data are coded data.
Processing module 130 is encoded and is sent to the data if not being coded data for the data Receiving end, wherein the receiving end is another in the local application and the webpage kernel, and the receiving end It is loaded after being decoded to the coded data.
Further, in a kind of possible implementation of the embodiment of the present application, referring to Figure 10, implementation shown in Fig. 9 On the basis of example, the data transmission device between the local application and webpage kernel can also include: coding module 140.
Coding module 140, for before the data that the reception transmitting terminal is sent, the transmitting terminal to be obtained from server The data, and the data are encoded.
As a kind of possible implementation, webpage kernel is the webpage kernel of H5 and the above version.
As a kind of possible implementation, the processing module 130 is specifically used for: extracting the spy among the data Different character;Spcial character among the data is encoded.
As alternatively possible implementation, the processing module 130 is also used to: according to the special word pre-established Fu Ku identifies the spcial character among the data, and extracts spcial character.
It should be noted that the aforementioned solution to the data transmission method embodiment between local application and webpage kernel The data transmission device that explanation is also applied between the local application of the embodiment and webpage kernel is released, it is no longer superfluous herein It states.
Data transmission device between the local application and webpage kernel of the embodiment of the present application, by receiving transmitting terminal The data of transmission, and judge whether data are coded data, if it is not, then being encoded to data and being sent to receiving end, wherein Transmitting terminal is one in local application and webpage kernel, and receiving end is another, and receiving end carries out coded data It is loaded after decoding.In the application, by carrying out coded treatment to data, it may be implemented to guarantee number during data are transmitted According to integrality and correctness, and can be adapted for the data under different scenes transmission, promote the applicability of this method.
In order to realize above-described embodiment, the application also proposes a kind of calculating equipment, comprising: memory, processor and storage On a memory and the computer program that can run on a processor, when the processor executes described program, such as this Shen is realized Please previous embodiment propose local application and webpage kernel between data transmission method.
In order to realize above-described embodiment, the application also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Contain computer program, which is characterized in that the sheet proposed such as the application previous embodiment is realized when the program is executed by processor Data transmission method between ground application program and webpage kernel.
In order to realize above-described embodiment, the application also proposes a kind of computer program product, when the computer program produces When instruction in product is executed by processor, execute as the application previous embodiment propose local application and webpage kernel it Between data transmission method.
Figure 11 shows the block diagram for being suitable for the exemplary computer device for being used to realize the application embodiment.What Figure 11 was shown Calculating equipment 12 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in figure 11, equipment 12 is calculated to show in the form of universal computing device.The component for calculating equipment 12 can wrap Include but be not limited to: one or more processor or processing unit 16, system storage 28 connect different system component (packets Include system storage 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component Interconnection;Hereinafter referred to as: PCI) bus.
It calculates equipment 12 and typically comprises a variety of computer system readable media.These media can be and any can be counted Calculate the usable medium that equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 28 may include the computer system readable media of form of volatile memory, such as random access memory Device (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Calculating equipment 12 can be into One step includes other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, it deposits Storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Figure 11 do not show, commonly referred to as " hard drive Device ").Although being not shown in Figure 11, the disk for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided Driver, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiments described herein.
Calculating equipment 12 can also be with one or more external equipment 14 (such as keyboard, sensing equipment, display 24 etc.) Communication, can also be enabled a user to one or more equipment interact with the calculating equipment 12 communicate, and/or with make the meter Calculate any equipment (such as network interface card, modem etc.) that equipment 12 can be communicated with one or more of the other calculating equipment Communication.This communication can be carried out by input/output (I/O) interface 22.Also, calculating equipment 12 can also be suitable by network Orchestration 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as: LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.As shown, network is suitable Orchestration 20 is communicated by bus 18 with the other modules for calculating equipment 12.It should be understood that although not shown in the drawings, can be in conjunction with meter It calculates equipment 12 and uses other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing are single Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the data transmission method in previous embodiment between the local application referred to and webpage kernel.
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 contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
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 is the electricity of one or more wirings Interconnecting piece (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 application 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.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

Claims (13)

1. the data transmission method between a kind of local application and webpage kernel, which is characterized in that the described method includes:
Receive the data that transmitting terminal is sent, wherein the transmitting terminal is one in local application and webpage kernel;
Judge whether the data are coded data;And
If the data are not coded data, the data are encoded and are sent to receiving end, wherein the reception End is another in the local application and the webpage kernel, and the receiving end solves the coded data It is loaded after code.
2. the data transmission method between local application as described in claim 1 and webpage kernel, which is characterized in that Before the data for receiving transmitting terminal transmission, further includes:
The transmitting terminal obtains the data from server, and encodes to the data.
3. the data transmission method between local application as described in claim 1 and webpage kernel, which is characterized in that institute State the webpage kernel that webpage kernel is H5 and the above version.
4. the data transmission method between local application as described in claim 1 and webpage kernel, which is characterized in that institute It states and the data is encoded, comprising:
Extract the spcial character among the data;
Spcial character among the data is encoded.
5. the data transmission method between local application as claimed in claim 4 and webpage kernel, which is characterized in that institute State the spcial character extracted among the data, comprising:
According to the spcial character library pre-established, the spcial character among the data is identified, and extract spcial character.
6. the data transmission device between a kind of local application and webpage kernel, which is characterized in that described device includes:
Receiving module, for receiving the data of transmitting terminal transmission, wherein the transmitting terminal is local application and webpage kernel In one;
Judgment module, for judging whether the data are coded data;And
Processing module is encoded to the data and is sent to receiving end if not being coded data for the data, Wherein, the receiving end is another in the local application and the webpage kernel, and the receiving end is to described Coded data loads after being decoded.
7. the data transmission device between local application as claimed in claim 6 and webpage kernel, which is characterized in that institute State device further include:
Coding module, for before the data that the reception transmitting terminal is sent, the transmitting terminal to obtain the number from server According to, and the data are encoded.
8. the data transmission device between local application as claimed in claim 6 and webpage kernel, which is characterized in that institute State the webpage kernel that webpage kernel is H5 and the above version.
9. the data transmission device between local application as claimed in claim 6 and webpage kernel, which is characterized in that institute Processing module is stated, is specifically used for:
Extract the spcial character among the data;
Spcial character among the data is encoded.
10. the data transmission device between local application as claimed in claim 9 and webpage kernel, which is characterized in that The processing module, is also used to:
According to the spcial character library pre-established, the spcial character among the data is identified, and extract spcial character.
11. a kind of calculating equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage The computer program of upper operation when the processor executes described program, realizes such as local as claimed in any one of claims 1 to 5 Data transmission method between application program and webpage kernel.
12. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program Realize that the data between local application as claimed in any one of claims 1 to 5 and webpage kernel such as pass when being executed by processor Transmission method.
13. a kind of computer program product, which is characterized in that when the instruction in the computer program product is executed by processor When, it executes such as the data transmission method between local application as claimed in any one of claims 1 to 5 and webpage kernel.
CN201811241862.8A 2018-10-24 2018-10-24 Data transmission method and device between local application and webpage kernel Pending CN109471739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811241862.8A CN109471739A (en) 2018-10-24 2018-10-24 Data transmission method and device between local application and webpage kernel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811241862.8A CN109471739A (en) 2018-10-24 2018-10-24 Data transmission method and device between local application and webpage kernel

Publications (1)

Publication Number Publication Date
CN109471739A true CN109471739A (en) 2019-03-15

Family

ID=65664423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811241862.8A Pending CN109471739A (en) 2018-10-24 2018-10-24 Data transmission method and device between local application and webpage kernel

Country Status (1)

Country Link
CN (1) CN109471739A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103177015A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Method and system for webpage image presentation
US20130173684A1 (en) * 2011-12-28 2013-07-04 International Business Machines Corporation Web applications having end-user data isolated in the local domain
CN103207877A (en) * 2012-01-17 2013-07-17 阿里巴巴集团控股有限公司 Decoding method and device
CN104468698A (en) * 2014-10-11 2015-03-25 杭州盈高科技有限公司 Cross-browser webpage communication system and method
CN104462220A (en) * 2014-11-07 2015-03-25 广东威创视讯科技股份有限公司 Method and device for web page screen shot and code transmission
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN106790007A (en) * 2016-12-13 2017-05-31 武汉虹旭信息技术有限责任公司 Web attack defending systems and its method based on XSS and CSRF
CN107102904A (en) * 2017-03-29 2017-08-29 腾讯科技(深圳)有限公司 Exchange method and device based on mixed application

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177015A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Method and system for webpage image presentation
US20130173684A1 (en) * 2011-12-28 2013-07-04 International Business Machines Corporation Web applications having end-user data isolated in the local domain
CN103207877A (en) * 2012-01-17 2013-07-17 阿里巴巴集团控股有限公司 Decoding method and device
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN104468698A (en) * 2014-10-11 2015-03-25 杭州盈高科技有限公司 Cross-browser webpage communication system and method
CN104462220A (en) * 2014-11-07 2015-03-25 广东威创视讯科技股份有限公司 Method and device for web page screen shot and code transmission
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN106790007A (en) * 2016-12-13 2017-05-31 武汉虹旭信息技术有限责任公司 Web attack defending systems and its method based on XSS and CSRF
CN107102904A (en) * 2017-03-29 2017-08-29 腾讯科技(深圳)有限公司 Exchange method and device based on mixed application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
宋亦芳: "《社区数字化学习支持服务体系研究》", 30 September 2016, 上海科学技术出版 *
郑广成: "《PHP+MySQL程序设计及项目开发》", 30 June 2017, 北京理工大学出版社 *

Similar Documents

Publication Publication Date Title
US11562099B1 (en) Sanitization of content displayed by web-based applications
US8707164B2 (en) Integrated document viewer
CN102929867A (en) Technology used for automatically translating a document
US9959269B1 (en) Method and system for implementing a website builder
US8910036B1 (en) Web based copy protection
US8903710B2 (en) Synchro translation verification test for software applications
US9276758B2 (en) Analyzing and repairing documents
CN110187913A (en) Publication, operation method and the device of small routine
CN110912803B (en) IM message transmission method and terminal
US9195653B2 (en) Identification of in-context resources that are not fully localized
CN101384983A (en) Text box numbering and linking visual aids
CN102246157A (en) Isolating applications hosted by plug-in code
CN109634579B (en) Code generation method, device, computer device and storage medium
CN107423894A (en) The task measures and procedures for the examination and approval, device and computer equipment
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN107341388A (en) Access right control method and device
CN109101228A (en) The execution method and apparatus of application program
CN104142975A (en) Microblog information promotion method, device and system
CN104881298A (en) Method and device for displaying documents on line
CN108874934A (en) Page body extracting method and device
US20150161160A1 (en) Application Localization
CN107341005A (en) Chart generation method and its device
CN106897066A (en) Network application operation method and device based on POS payment terminal
CN111737621B (en) WASM-based OFD rendering method, system and device
CN109753644A (en) A kind of RichText Edition method, apparatus, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190315

RJ01 Rejection of invention patent application after publication