[go: up one dir, main page]

CN111722935B - Page end and original end communication method and device, electronic equipment and readable medium - Google Patents

Page end and original end communication method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN111722935B
CN111722935B CN201910212797.4A CN201910212797A CN111722935B CN 111722935 B CN111722935 B CN 111722935B CN 201910212797 A CN201910212797 A CN 201910212797A CN 111722935 B CN111722935 B CN 111722935B
Authority
CN
China
Prior art keywords
function
module
page
calling
function call
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.)
Active
Application number
CN201910212797.4A
Other languages
Chinese (zh)
Other versions
CN111722935A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910212797.4A priority Critical patent/CN111722935B/en
Publication of CN111722935A publication Critical patent/CN111722935A/en
Application granted granted Critical
Publication of CN111722935B publication Critical patent/CN111722935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a communication method and device of a page end and a primary end, electronic equipment and a computer readable medium. Wherein the method comprises the following steps: determining first function calling information of a first service triggering event generated at the page end; and sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the original terminal. The embodiment of the application can provide a general method for facilitating communication between the page end and the native end.

Description

Page end and original end communication method and device, electronic equipment and readable medium
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a communication method and device of a page end and a primary end, electronic equipment and a computer readable medium.
Background
Along with the development of mobile internet technology and the popularization of intelligent mobile terminals, the importance of the mobile internet in life is more and more obvious, the development of application programs of the mobile terminal is more and more important, and currently, the application programs of the mobile terminal mainly adopt a hybrid development mode, namely, are written by adopting a webpage language and a program language at the same time, and the application programs which are required to be installed by users are distributed by differentiating operating systems through application stores. The application programs developed in a mixed mode have good user experience and lower development cost, and are more and more favored by developers.
Currently, on android devices, communication between script code and native code in an application program needs to be implemented through a network view. Specifically, the application program interface is called first to enable the network view to support functions in the script code, and then the application program interface is called to register a method class which can be called by the script code to the network view so as to be used for enhancing the functions of the script code. However, the system version before android4.2 has no restrictions on the invocation of class methods, resulting in an attacker can invoke any other class method that is unregistered with the reflection mechanism, ultimately resulting in an unlimited enhancement of the capabilities of the script code. An attacker may be willing to exploit the vulnerability based on client capabilities. Thus, communication of script code in an application with native code requires compatibility of the system version of the native code. Thus, the communication of script code and native code in an application is limited by the version or platform of the native end code.
Disclosure of Invention
The application aims to provide a communication method, a device, electronic equipment and a computer readable medium of a page end and a native end, which are used for solving the problem of how to facilitate the communication between the page end and the native end in the prior art.
According to a first aspect of an embodiment of the present application, a method for communicating a page end with a native end is provided. The method comprises the following steps: determining first function calling information of a first service triggering event generated at the page end; and sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the original terminal.
According to a second aspect of the embodiment of the application, a communication method between a page end and a native end is provided. The method comprises the following steps: receiving a function call message sent by the page end through calling an object for interacting with a page code; analyzing the function call message to obtain first function call information carried by the function call message; calling a first function module indicated by the first function calling information; and callback the function execution result of the first function module to the page end.
According to a third aspect of the embodiment of the present application, a communication device between a page end and a native end is provided. The device comprises: the determining module is used for determining first function calling information of a first service triggering event generated at the page end; and the sending module is used for sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call the first function module indicated by the first function call information in the original terminal.
According to a fourth aspect of the embodiment of the present application, a communication device between a page end and a native end is provided. The device comprises: the first receiving module is used for receiving a function call message sent by the page end through calling an object for interacting with the page code; the first analyzing module is used for analyzing the function call message to obtain first function call information carried by the function call message; the calling module is used for calling the first function module indicated by the first function calling information; and the first callback module is used for callback the function execution result of the first function module to the page end.
According to a fifth aspect of an embodiment of the present application, there is provided an electronic apparatus including: one or more processors; a computer readable medium configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of communicating a page side with a raw side as described in the first or second aspect of the embodiments above.
According to a sixth aspect of embodiments of the present application, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements a method of communicating a page side with a originating side as described in the first or second aspect of the above embodiments.
According to the technical scheme provided by the embodiment of the application, the first function calling information of the first service triggering event generated at the page end is determined, and the function calling information carrying the first function calling information is sent to the original end by calling the object for interacting with the page code, so that the first function module indicated by the first function calling information is called in the original end.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart showing the steps of a method for communicating a page port with a native port according to a first embodiment of the present application;
FIG. 2 is a flow chart showing the steps of a method for communicating a page port with a home port in accordance with the second embodiment of the present application;
FIG. 3 is a flow chart illustrating steps of a method for communicating a page port with a native port according to a third embodiment of the present application;
FIG. 4 is a flowchart illustrating a communication method between a page and a native terminal according to a fourth embodiment of the present application;
Fig. 5 is a schematic structural diagram of a communication device between a page end and a native end in a fifth embodiment of the present application;
Fig. 6 is a schematic structural diagram of a communication device between a page end and a native end in a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication device between a page end and a native end in a seventh embodiment of the present application;
Fig. 8 is a schematic structural diagram of a communication device between a page end and a native end in an eighth embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application;
fig. 10 is a hardware structure of an electronic device according to a tenth embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely configured to illustrate the related application, and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1, a step flow diagram of a method for communicating a page end with a native end according to a first embodiment of the present application is shown.
The embodiment describes a communication method between a page end and a native end provided by the embodiment of the application from the perspective of the page end. Specifically, the communication method between the page end and the original end in this embodiment includes the following steps:
in step S101, first function call information of a first service trigger event generated at the page end is determined.
In the embodiment of the application, the page end can be understood as the collective term of script codes of the page of the application program developed by adopting a JavaScript script language, and the native end can be understood as the collective term of native codes of the IOS system application program developed by adopting an Objective-C language or the collective term of native codes of the Android system application program developed by adopting a Java language. In the same application, there may be some functions developed by JavaScript script language and some functions developed by Java language or Objective-C language. Thus, the native end and the page end may exist in the same application. The Android system where the application program is located provides an interface for interaction between the native terminal and the page terminal, and the IOS system where the application program is located also provides an interface for interaction between the native terminal and the page terminal. The communication devices between the page end and the original end can be page ends, browser applications, audio and video player applications, instant messaging applications, shopping applications and the like. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In the embodiment of the application, the first service triggering event can be that a user clicks a specific button, opens a local folder, enables a gyroscope, enables air pressure sensing, enables hardware such as a camera and a microphone, enables a primary end to open a certain page, or invokes a recorder function of the primary end to record, and the like. The first function call information includes at least one of: the name of the first function module, the parameter of the first function module and the function callback function for callback the function execution result of the first function module. The first functional module may be a functional module for executing a file opening method, a functional module for executing a file moving method, a functional module for executing a file copying method, a functional module for executing a file pasting method, a functional module for executing a file deleting method, etc. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some optional embodiments, when determining the first function call information of the first service trigger event generated at the page end, the first function call information of the first service trigger event is transmitted to the page end through a service function corresponding to the first service trigger event, so as to determine the first function call information of the first service trigger event generated at the page end. Specifically, under the triggering of a first service triggering event, the first function calling information of the first service triggering event is transmitted to a preset function of the page end by calling a service function corresponding to the first service triggering event, so that the first function calling information of the first service triggering event generated at the page end is determined. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S102, by calling an object for interacting with the page code, a function calling message carrying the first function calling information is sent to the native terminal, so as to call, in the native terminal, a first function module indicated by the first function calling information.
In an embodiment of the present application, the object for interacting with the page code includes a console function, for example, a control log (), a control info (), a control error (), a control return (), and so on. When the icon () is used for outputting information, a red fork is added at the forefront to represent an error, and a stack in which the error occurs is displayed. The control. Wave () is used to output warning information. The function call message carrying the first function call information is sent to the original terminal by calling the console function, because the original console channel can be reused, and the communication between the page terminal and the original terminal is not limited by the version or the platform of the original terminal, thereby being convenient for the communication between the page terminal and the original terminal. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some optional embodiments, when sending a function call message carrying the first function call information to the native terminal by calling an object for interacting with page code, performing structural processing on the first function call information to obtain structural data which is convenient for the native terminal to parse out the first function call information; generating a function call message carrying the structured data; and sending the function call message carrying the structured data to the original terminal by calling the object for interacting with the page code. By means of the method, the first function call information can be conveniently analyzed by the native terminal through the structured data carried by the function call information. Of course, the embodiment of the present application is not limited thereto, and the embodiment of the present application does not limit the function call message carrying the first function call information by directly generating the function call message carrying the first function call information and then sending the function call message carrying the first function call information to the native terminal by calling the object for interacting with the page code.
In a specific example, when the structured data includes a page link address, the structuring the first function call information includes: and generating a page link address based on the name and parameters of the first function module in the first function call information. Specifically, the character string in the protocol field, the character string of the name of the first function module and the character string of the parameter of the first function module are hashed to generate a page link address in the form of a link address similar to the src field of the iframe tag, or a page link address in the form of a link address similar to the window. Location. Href, or a page link address in the form of a link address similar to the window. Open, or a page link address in the form of a link address similar to the self. Href. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, a function callback function for callback to a function execution result of a first function module may be stored in a container, identification information of the function callback function generated by the container is obtained, and a page link address is generated based on a name and a parameter of the first function module and the identification information of the function callback function. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when the structured data includes JSON data carrying the first function call information, the structuring the first function call information includes: and generating the JSON data based on the name and the parameter of the first function module in the first function call information. Specifically, a name of the first function module in the first function call information is stored in a method field in the JSON data, and a parameter of the first function module in the first function call information is stored in a parameter field in the JSON data, so that the JSON data carrying the first function call information is generated. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, the native terminal analyzes the received function call message to obtain the first function call information carried by the function call message, and then calls the first function module indicated by the first function call information. Therefore, the page end transmits the first function call information of the first service triggering event to the original end through the function call information, and the first function call information is not limited by the version or the platform of the original end, so that the communication between the page end and the original end is facilitated. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some alternative embodiments, the method further comprises: receiving a function execution result of the first function module transmitted back by the native terminal; and calling back the received function execution result to the service function corresponding to the first service triggering event through the function calling back function of the first service triggering event. Therefore, the function callback function of the first service triggering event is used for callback the received function execution result, and the service function of the first service triggering event generated by the page end can obtain the corresponding function execution result. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, the page end receives the function execution result of the first function module, which is returned by the native end through the script code injection mode. And the page end recalls the received function execution result through executing the callback function of the function callback function of the first service triggering event. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some alternative embodiments, the method further comprises: receiving second function calling information of a second service triggering event transmitted by the original terminal; invoking a second function module indicated by the second function invocation information; and callback the function execution result of the second function module to the originating terminal. Therefore, the function module indicated by the function calling information can be called at the page end through the function calling information of the service triggering event transmitted by the original end, and a corresponding function executing result can be obtained. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when receiving the second function call information of the second service trigger event transmitted by the native terminal, the page terminal receives the second function call information of the second service trigger event transmitted by the native terminal through the script code injection mode. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when the second function module indicated by the second function call information is called, the second function module indicated by the second function call information is called by a function used for calculating a character string in the script code and executing the script code corresponding to the character string. The function for calculating the character string and executing the script code corresponding to the character string may be an eval () function in a JavaScript script language. The second function module indicated by the second function call information is called through the eval () function, so that the use is more flexible. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when the function execution result of the second function module is called back to the original end, the object for interacting with the page code is called, and a result callback message carrying the function execution result of the second function module is sent to the original end, so that the function execution result of the second function module is called back to the original end. Thus, the function execution result of the function module can be recalled to the original end by calling the object for interacting with the page code. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when a result callback message carrying the function execution result of the second function module is sent to the native terminal by calling an object for interacting with the page code, the function execution result of the second function module is subjected to structuring processing so as to obtain structured data which is convenient for the native terminal to analyze the function execution result of the second function module; generating a result callback message carrying the structured data; and sending the result callback message carrying the structured data to the original terminal by calling the object for interacting with the page code. By means of the method, the function execution result of the second function module can be conveniently analyzed by the native terminal through the structured data carried by the result callback message. Of course, the embodiment of the present application is not limited thereto, and the result callback message carrying the function execution result of the second function module may be directly generated, and then the result callback message carrying the function execution result of the second function module may be sent to the native terminal by calling the object for interacting with the page code.
In a specific example, when the structured data includes a page link address, the structuring the function execution result of the second functional module includes: and generating a page link address based on the function execution result of the second function module. Specifically, the character string in the protocol field and the character string of the function execution result of the second function module are spliced to generate a page link address in the form of a link address similar to the src field of the iframe tag, or a page link address in the form of a link address similar to window. Location. Href, or a page link address in the form of a link address similar to window. Open, or a page link address in the form of a link address similar to self. Location. Href. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, when the structured data includes JSON data carrying a function execution result of the second functional module, the structuring the function execution result of the second functional module includes: and generating the JSON data based on the function execution result of the second function module. Specifically, the function execution result of the second function module is stored in a function execution result field in the JSON data, so as to generate the JSON data carrying the function execution result of the second function module. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
According to the communication method between the page terminal and the native terminal, which is provided by the embodiment of the application, the first function calling information of the first service triggering event generated at the page terminal is determined, and the function calling information carrying the first function calling information is sent to the native terminal by calling the object for interacting with the page code, so that the first function module indicated by the first function calling information is called in the native terminal.
The method of communicating between the page side and the originating side of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming machines, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus Rift, hololens, gear VR), and the like.
Referring to fig. 2, a step flow diagram of a method for communicating a page end with a native end according to a second embodiment of the present application is shown.
The embodiment describes a communication method between a page end and a home end provided by the embodiment of the application from the perspective of the home end. Specifically, the communication method between the page end and the original end in this embodiment includes the following steps:
in step S201, a function call message sent by the page terminal by calling an object for interacting with the page code is received.
In an embodiment of the present application, the object for interacting with the page code includes a console function. When the page end sends a function call message carrying the first function call information to the native end by calling the console function, the native end receives the function call message sent by the page end by adopting a native method. For example, when the page end sends a function call message carrying the first function call information to the native end by calling a control log () function, a control info () function, a control error () function or a control wave () function, the native end receives the function call message sent by the page end by adopting a relevant native method (such as onConsoleMessage methods). It follows that the call of the console function at the page end is executed by the system (e.g., android system, or IOS system) where the application is located to the corresponding native method at the native end. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S202, the function call message is parsed to obtain first function call information carried by the function call message.
In the embodiment of the application, when the function call message directly carries the first function call information, the native terminal directly analyzes the function call message to obtain the first function call information carried by the function call message. When the function call message carries a page link address, the native terminal analyzes the page link address according to a preset rule to obtain first function call information carried by the function call message. Wherein, the preset rule may include a schema protocol rule. Specifically, the schema protocol defines that the content beginning of the page link address is jsbridge://, the page link address whose content beginning is jsbridge:// is resolved, and if defined as abs:// is also possible, as long as the page end and the native end negotiate the content beginning of the link address. In other words, if it is detected that the content start of the page link address carried by the function call message meets the content start of the link address specified by the schema protocol, the page link address is parsed. After detecting that the page link address carried by the function call message meets a preset rule, the native terminal analyzes the content of the page link address carried by the function call message to obtain first function call information carried by the function call message. When the function call message carries json data, the native terminal analyzes the json data according to fields in the json data to obtain first function call information carried by the function call message. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S203, a first function module indicated by the first function call information is called.
In some alternative embodiments, when the first function module indicated by the first function call information is called, the first function module indicated by the first function call information is called in a reflection mode. Thus, the function module indicated by the reflection calling function calling information is more flexible to use. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S204, the function execution result of the first function module is recalled to the page end.
In some optional embodiments, when the function execution result of the first function module is recalled to the page end, the function execution result of the first function module is transmitted to the page end by means of script code injection. The script code injection mode may be understood as a mode that a function module in a native terminal calls a page terminal to load a section of script code, for example, loadurl ("javascript: abs ()") calls a function module with a function module name abs. Therefore, the function execution result of the function module can be transmitted to the page end by the way of script code injection. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some alternative embodiments, the method further comprises: receiving a result callback message sent by the page end through calling the object for interacting with the page code; analyzing the result callback message to obtain a function execution result of the second function module carried by the result callback message; and calling back the received function execution result to a service method corresponding to the service triggering event through a function calling back interface of the service triggering event corresponding to the second function module. The specific implementation manner of receiving the callback message sent by the page end through calling the object for interacting with the page code is similar to the specific implementation manner of receiving the function call message sent by the page end through calling the object for interacting with the page code, and will not be described herein. The embodiment of parsing the result callback message is similar to the embodiment of parsing the function call message described above, and will not be described herein. Therefore, the function execution result received by the function callback interface callback of the service triggering event corresponding to the second function module can be obtained through the service method corresponding to the service triggering event generated by the original terminal. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In a specific example, the native terminal recalls the received function execution result of the second functional module by executing the function of the function callback interface of the service triggering event corresponding to the second functional module. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
According to the communication method between the page terminal and the original terminal, which is provided by the embodiment of the application, the function call information sent by the page terminal through calling the object for interacting with the page code is received, the function call information is analyzed to obtain the first function call information carried by the function call information, the first function module indicated by the first function call information is called, and the function execution result of the first function module is called back to the page terminal.
The method of communicating between the page side and the originating side of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming machines, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus Rift, hololens, gear VR), and the like.
Referring to fig. 3, a step flow diagram of a method for communicating between a page end and a native end according to a third embodiment of the present application is shown.
The embodiment describes the communication method between the page end and the native end provided by the embodiment of the application from the angle of interaction between the page end and the native end. Specifically, the communication method between the page end and the original end in this embodiment includes the following steps:
In step S301, first function call information of a first service trigger event generated at the page end is determined.
Since the specific embodiment of the step S301 is similar to the specific embodiment of the step S101, the description thereof will not be repeated here.
In step S302, by calling an object for interacting with a page code, a function calling message carrying the first function calling information is sent to the native terminal, so as to call, in the native terminal, a first function module indicated by the first function calling information.
Since the specific embodiment of the step S302 is similar to the specific embodiment of the step S102, the description thereof is omitted herein.
In step S303, a function call message sent by the page end through calling an object for interacting with the page code is received.
Since the embodiment of the step S303 is similar to the embodiment of the step S201, the description thereof will not be repeated here.
In step S304, the function call message is parsed to obtain the first function call information carried by the function call message.
Since the specific embodiment of the step S304 is similar to the specific embodiment of the step S202, the description thereof will not be repeated here.
In step S305, a first function module indicated by the first function call information is called.
Since the embodiment of the step S305 is similar to the embodiment of the step S203, the description thereof will not be repeated here.
In step S306, the function execution result of the first function module is recalled to the page end.
Since the embodiment of the step S306 is similar to the embodiment of the step S204, the description thereof is omitted herein.
According to the communication method between the page end and the native end, which is provided by the embodiment of the application, the page end determines the first function call information of the first service trigger event generated at the page end, and sends the function call information carrying the first function call information to the native end by calling the object for interacting with the page code so as to call the first function module indicated by the first function call information in the native end; the method comprises the steps that a native terminal receives a function call message sent by an object for interacting with a page code through calling, analyzes the function call message to obtain first function call information carried by the function call message, calls a first function module indicated by the first function call information, and recalls a function execution result of the first function module to the page terminal.
The method of communicating between the page side and the originating side of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming machines, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus Rift, hololens, gear VR), and the like.
Referring to fig. 4, a step flow diagram of a method for communicating between a page end and a native end according to a fourth embodiment of the present application is shown.
The embodiment describes the communication method between the page end and the native end provided by the embodiment of the application from the angle of interaction between the page end and the native end. Specifically, the communication method between the page end and the original end in this embodiment includes the following steps:
in step S401, second function call information of a second service trigger event generated at the native terminal is determined.
In the embodiment of the application, the second service triggering event may be a click operation of the user in the native page, a call of a function existing in the page end, the native page needs to inform the H5 page that a certain control needs to update a style, or the native page lets the H5 page perform partial content refresh, etc. The second function call information includes at least one of: the name of the second function module, the parameter of the second function module and the function callback interface for callback the function execution result of the second function module. The second functional module may be a functional module for acquiring H5 page information, and the like. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In some alternative embodiments, when determining the second function call information of the second service trigger event generated at the native terminal, the second function call information of the second service trigger event is transmitted to the native terminal through a service method corresponding to the second service trigger event, so as to determine the second function call information of the second service trigger event generated at the native terminal. Specifically, under the triggering of a second service triggering event, the second function calling information of the second service triggering event is transmitted to the preset function of the page end by calling a service method corresponding to the second service triggering event, so that the second function calling information of the second service triggering event generated at the original end is determined. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S402, the second function call information is transferred into the page end, so as to call the second function module indicated by the second function call information in the page end.
In some alternative embodiments, when the second function call information is transferred to the page end, the second function call information is transferred to the page end by means of script code injection. Therefore, the native terminal transmits the second function call information of the second service triggering event to the page terminal in a script code injection mode, and the second function call information is not limited by the version or the platform of the native terminal, so that the communication between the page terminal and the native terminal is facilitated. The manner of injecting the script code is similar to that described above, and will not be described herein. It will be appreciated that the above description is exemplary only, and that the embodiments of the application are not limited in any way.
In step S403, second function call information of a second service trigger event that is input by the native terminal is received.
Since the specific embodiment of this step S403 is similar to the specific embodiment described above, the description thereof will not be repeated here.
In step S404, a second function module indicated by the second function call information is called.
Since the specific embodiment of the step S404 is similar to the specific embodiment described above, the description thereof will not be repeated here.
In step S405, the function execution result of the second function module is recalled to the originating terminal.
Since the specific embodiment of this step S405 is similar to the specific embodiment described above, the description thereof will not be repeated here.
According to the communication method between the page terminal and the original terminal, the original terminal determines the second function calling information of the second service triggering event generated at the original terminal, and transmits the second function calling information to the page terminal so as to call the second function module indicated by the second function calling information in the page terminal, the page terminal receives the second function calling information of the second service triggering event transmitted by the original terminal, calls the second function module indicated by the second function calling information, and then calls the function executing result of the second function module back to the original terminal.
The method of communicating between the page side and the originating side of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming machines, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus Rift, hololens, gear VR), and the like.
Referring to fig. 5, a schematic structural diagram of a communication device between a page end and a native end in a fifth embodiment of the present application is shown.
The communication device between the page end and the original end in this embodiment includes: a determining module 501, configured to determine first function call information of a first service triggering event generated at the page end; and the sending module 502 is configured to send a function call message carrying the first function call information to the native terminal by calling an object for interacting with the page code, so as to call the first function module indicated by the first function call information in the native terminal.
The communication device between the page end and the originating end in this embodiment is used to implement the communication method between the page end and the originating end corresponding to the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 6, a schematic structural diagram of a communication device between a page end and a native end in a sixth embodiment of the present application is shown.
The communication device between the page end and the original end in this embodiment includes: a determining module 604, configured to determine first function call information of a first service triggering event generated at the page end; and the sending module 605 is configured to send a function call message carrying the first function call information to the native terminal by calling an object for interacting with the page code, so as to call the first function module indicated by the first function call information in the native terminal.
Optionally, the determining module 604 includes: and an incoming module 6041, configured to, through a service function corresponding to the first service triggering event, incoming first function call information of the first service triggering event to the page end, so as to determine first function call information of the first service triggering event generated at the page end.
Optionally, the apparatus further comprises: a first receiving module 606, configured to receive a function execution result of the first function module returned by the native terminal; and the first callback module 607 is configured to callback the received function execution result to the service function corresponding to the first service triggering event through the function callback function of the first service triggering event.
Optionally, the apparatus further comprises: a second receiving module 601, configured to receive second function call information of a second service trigger event that is transmitted from the native terminal; a calling module 602, configured to call a second function module indicated by the second function call information; and the second callback module 603 is configured to callback a function execution result of the second function module to the originating terminal.
Optionally, the calling module 602 is specifically configured to: and calling a second function module indicated by the second function calling information through a function used for calculating the character string in the script code and executing the script code corresponding to the character string.
Optionally, the second callback module 603 is specifically configured to: and sending a result callback message carrying the function execution result of the second function module to the original terminal by calling the object for interacting with the page code, so as to callback the function execution result of the second function module to the original terminal.
Optionally, the object for interacting with the page code comprises a console function.
Optionally, the first function call information includes at least one of: the name of the first function module, the parameter of the first function module and the function callback function for callback the function execution result of the first function module.
The communication device between the page end and the originating end in this embodiment is used to implement the communication method between the page end and the originating end corresponding to the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 7, a schematic structural diagram of a communication device between a page end and a native end in a seventh embodiment of the present application is shown.
The communication device between the page end and the original end in this embodiment includes: a first receiving module 701, configured to receive a function call message sent by the page end by calling an object for interacting with a page code; a first parsing module 702, configured to parse the function call message to obtain first function call information carried by the function call message; a calling module 703, configured to call the first function module indicated by the first function call information; and the first callback module 704 is configured to callback the function execution result of the first function module to the page end.
The communication device between the page end and the originating end in this embodiment is used to implement the communication method between the page end and the originating end corresponding to the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 8, a schematic structural diagram of a communication device between a page end and a native end in an eighth embodiment of the present application is shown.
The communication device between the page end and the original end in this embodiment includes: a first receiving module 801, configured to receive a function call message sent by the page end by calling an object for interacting with a page code; a first parsing module 802, configured to parse the function call message to obtain first function call information carried by the function call message; a calling module 803, configured to call the first function module indicated by the first function call information; and the first callback module 804 is configured to callback the function execution result of the first function module to the page end.
Optionally, the calling module 803 is specifically configured to: and reflecting and calling the first function module indicated by the first function calling information.
Optionally, the first callback module 804 is specifically configured to: and transmitting the function execution result of the first function module into the page end in a script code injection mode.
Optionally, the apparatus further comprises: a second receiving module 805, configured to receive a result callback message sent by the page end by calling the object for interacting with the page code; a second parsing module 806, configured to parse the result callback message to obtain a function execution result of the second function module carried by the result callback message; and the second callback module 807 is configured to callback the received function execution result to a service method corresponding to the service triggering event through a function callback interface of the service triggering event corresponding to the second function module.
The communication device between the page end and the originating end in this embodiment is used to implement the communication method between the page end and the originating end corresponding to the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Fig. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application; the electronic device may include:
One or more processors 901;
The computer readable medium 902, which may be configured to store one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors implement the method for communicating a page end with a native end as described in the foregoing embodiment one, embodiment two, embodiment three, or embodiment four.
Fig. 10 is a hardware structure of an electronic device according to a tenth embodiment of the present application; as shown in fig. 10, the hardware structure of the electronic device may include: a processor 1001, a communication interface 1002, a computer readable medium 1003, and a communication bus 1004;
wherein the processor 1001, the communication interface 1002, and the computer readable medium 1003 communicate with each other via a communication bus 1004;
Alternatively, the communication interface 1002 may be an interface of a communication module, such as an interface of a GSM module;
The processor 1001 may be specifically configured to: determining first function calling information of a first service triggering event generated at the page end; and sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the original terminal. Furthermore, it may be configured that: receiving a function call message sent by the page end through calling an object for interacting with a page code; analyzing the function call message to obtain first function call information carried by the function call message; calling a first function module indicated by the first function calling information; and callback the function execution result of the first function module to the page end.
The processor 1001 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The computer readable medium 1003 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code configured to perform the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU). The computer readable medium according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage media element, a magnetic storage media element, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected via any kind of network: including a Local Area Network (LAN) or a Wide Area Network (WAN), to connect to the user's computer, or may be connected to external computers (e.g., by way of the internet using an internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured to implement the specified logical function(s). The specific relationships in the embodiments described above are merely exemplary, and fewer, more, or an adjusted order of execution of the steps may be possible in a specific implementation. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a determination module, a transmission module. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, the determining module may also be described as "a module that determines the first function call information of the first service trigger event generated at the page side".
As another aspect, the present application also provides a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method for communicating a page end with a native end as described in the above-described embodiment one, embodiment two, embodiment three or embodiment four.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: determining first function calling information of a first service triggering event generated at the page end; and sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the original terminal. Furthermore, the apparatus is caused to: receiving a function call message sent by the page end through calling an object for interacting with a page code; analyzing the function call message to obtain first function call information carried by the function call message; calling a first function module indicated by the first function calling information; and callback the function execution result of the first function module to the page end.
The terms "first," "second," "the first," or "the second," as used in various embodiments of the present disclosure, may modify various components without regard to order and/or importance, but these terms do not limit the corresponding components. The above description is only configured for the purpose of distinguishing an element from other elements. For example, the first user device and the second user device represent different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure.
When an element (e.g., a first element) is referred to as being "coupled" (operatively or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the one element is directly connected to the other element or the one element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it will be understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), then no element (e.g., a third element) is interposed therebetween.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (22)

1. A method for communicating a page end with a native end, the method comprising:
determining first function calling information of a first service triggering event generated at the page end;
sending a function call message carrying the first function call information to the native terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the native terminal, wherein the object for interacting with the page code comprises a console function;
Receiving a function execution result of the first function module, which is returned by the native terminal through a script code injection mode;
The method for sending the function call message carrying the first function call information to the native terminal by calling the object for interacting with the page code comprises the following steps: carrying out structural processing on the first function call information to obtain structural data which is convenient for the native terminal to analyze the first function call information; generating a function call message carrying the structured data; sending the function call message carrying the structured data to the native terminal by calling the object for interacting with the page code;
when the structured data includes a page link address, the structuring the first function call information includes: and generating the page link address based on the name and the parameter of the first function module in the first function call information.
2. The method according to claim 1, wherein the determining the first function call information of the first service trigger event generated at the page side includes:
And transmitting first function calling information of the first service triggering event to the page end through a service function corresponding to the first service triggering event so as to determine the first function calling information of the first service triggering event generated at the page end.
3. The method according to claim 1, wherein the method further comprises:
receiving a function execution result of the first function module transmitted back by the native terminal;
And calling back the received function execution result to the service function corresponding to the first service triggering event through the function calling back function of the first service triggering event.
4. The method according to claim 1, wherein the method further comprises:
receiving second function calling information of a second service triggering event transmitted by the original terminal;
invoking a second function module indicated by the second function invocation information;
and callback the function execution result of the second function module to the originating terminal.
5. The method of claim 4, wherein the invoking the second function module indicated by the second function invocation information comprises:
And calling a second function module indicated by the second function calling information through a function used for calculating the character string in the script code and executing the script code corresponding to the character string.
6. The method of claim 4, wherein callback of the function execution result of the second function module to the native terminal comprises:
And sending a result callback message carrying the function execution result of the second function module to the original terminal by calling the object for interacting with the page code, so as to callback the function execution result of the second function module to the original terminal.
7. The method of any of claims 1-6, wherein the first function call information comprises at least one of:
the name of the first function module, the parameter of the first function module and the function callback function for callback the function execution result of the first function module.
8. A method for communicating a page end with a native end, the method comprising:
receiving a function call message sent by the page end through calling an object for interacting with a page code, wherein the object for interacting with the page code comprises a console function;
Analyzing the function call message, and when the function call message carries a page link address, analyzing the page link address according to a preset rule to obtain first function call information carried by the function call message; calling a first function module indicated by the first function calling information;
the function execution result of the first function module is recalled to the page end in a script code injection mode;
the function call message is generated by carrying out structural processing on the first function call information through the page end, the function call message carries structural data, and when the structural data comprises the page link address, the step of carrying out structural processing on the first function call information comprises the following steps: and generating the page link address based on the name and the parameter of the first function module in the first function call information.
9. The method of claim 8, wherein the invoking the first function module indicated by the first function invocation information comprises:
And reflecting and calling the first function module indicated by the first function calling information.
10. The method of claim 8, wherein the method further comprises:
receiving a result callback message sent by the page end through calling the object for interacting with the page code;
analyzing the result callback message to obtain a function execution result of the second function module carried by the result callback message;
And calling back the received function execution result to a service method corresponding to the service triggering event through a function calling back interface of the service triggering event corresponding to the second function module.
11. A device for communicating between a page side and a native side, the device comprising:
The determining module is used for determining first function calling information of a first service triggering event generated at the page end;
the sending module is used for sending a function call message carrying the first function call information to the original terminal by calling an object for interacting with the page code so as to call a first function module indicated by the first function call information in the original terminal, wherein the object for interacting with the page code comprises a console function;
the first callback module is used for transmitting the function execution result of the first function module to the page end in a script code injection mode;
The sending module sends a function call message carrying the first function call information to the native terminal by calling an object for interacting with a page code, and the sending module comprises the following steps: carrying out structural processing on the first function call information to obtain structural data which is convenient for the native terminal to analyze the first function call information; generating a function call message carrying the structured data; sending the function call message carrying the structured data to the native terminal by calling the object for interacting with the page code; when the structured data includes a page link address, the structuring the first function call information includes: and generating the page link address based on the name and the parameter of the first function module in the first function call information.
12. The apparatus of claim 11, wherein the determining module comprises:
And the incoming module is used for incoming the first function call information of the first service trigger event to the page end through the service function corresponding to the first service trigger event so as to determine the first function call information of the first service trigger event generated at the page end.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the first receiving module is used for receiving the function execution result of the first function module returned by the original terminal;
and the first callback module is used for callback the received function execution result to the service function corresponding to the first service triggering event through the function callback function of the first service triggering event.
14. The apparatus of claim 11, wherein the apparatus further comprises:
The second receiving module is used for receiving second function calling information of a second service triggering event transmitted by the original terminal;
The calling module is used for calling a second function module indicated by the second function calling information;
and the second callback module is used for callback the function execution result of the second function module to the originating terminal.
15. The apparatus of claim 14, wherein the calling module is specifically configured to:
And calling a second function module indicated by the second function calling information through a function used for calculating the character string in the script code and executing the script code corresponding to the character string.
16. The apparatus of claim 14, wherein the second callback module is specifically configured to:
And sending a result callback message carrying the function execution result of the second function module to the original terminal by calling the object for interacting with the page code, so as to callback the function execution result of the second function module to the original terminal.
17. The apparatus according to any of claims 11-16, wherein the first function call information comprises at least one of:
the name of the first function module, the parameter of the first function module and the function callback function for callback the function execution result of the first function module.
18. A device for communicating between a page side and a native side, the device comprising:
the first receiving module is used for receiving a function call message sent by the page end through calling an object for interacting with the page code, wherein the object for interacting with the page code comprises a console function;
The first analyzing module is used for analyzing the function call message, and when the function call message carries a page link address, the page link address is analyzed according to a preset rule to obtain first function call information carried by the function call message;
the calling module is used for calling the first function module indicated by the first function calling information;
The first callback module is used for callback the function execution result of the first function module to the page end in a script code injection mode;
the function call message is generated by carrying out structural processing on the first function call information through the page end, the function call message carries structural data, and when the structural data comprises the page link address, the step of carrying out structural processing on the first function call information comprises the following steps: and generating the page link address based on the name and the parameter of the first function module in the first function call information.
19. The apparatus of claim 18, wherein the calling module is specifically configured to:
And reflecting and calling the first function module indicated by the first function calling information.
20. The apparatus of claim 18, wherein the apparatus further comprises:
the second receiving module is used for receiving a result callback message sent by the page end through calling the object for interacting with the page code;
the second analysis module is used for analyzing the result callback message to obtain a function execution result of the second function module carried by the result callback message;
and the second callback module is used for callback the received function execution result to the service method corresponding to the service triggering event through the function callback interface of the service triggering event corresponding to the second function module.
21. An electronic device, comprising:
One or more processors;
A computer readable medium configured to store one or more programs,
When executed by the one or more processors, the one or more programs cause the one or more processors to implement the method of communicating a page end with a home end as claimed in any one of claims 1-7, or the method of communicating a page end with a home end as claimed in any one of claims 8-10.
22. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of communicating a page side with a native side according to any one of claims 1-7, or a method of communicating a page side with a native side according to any one of claims 8-10.
CN201910212797.4A 2019-03-20 2019-03-20 Page end and original end communication method and device, electronic equipment and readable medium Active CN111722935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910212797.4A CN111722935B (en) 2019-03-20 2019-03-20 Page end and original end communication method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910212797.4A CN111722935B (en) 2019-03-20 2019-03-20 Page end and original end communication method and device, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN111722935A CN111722935A (en) 2020-09-29
CN111722935B true CN111722935B (en) 2024-09-13

Family

ID=72562478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910212797.4A Active CN111722935B (en) 2019-03-20 2019-03-20 Page end and original end communication method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN111722935B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667482B (en) * 2020-12-31 2023-08-18 成都新希望金融信息有限公司 Service function calling method, mobile terminal and storage medium
CN113778566A (en) * 2021-01-29 2021-12-10 北京京东拓先科技有限公司 Native application calling method, apparatus, electronic device and computer readable medium
CN112860230A (en) * 2021-02-18 2021-05-28 爱驰汽车有限公司 Service implementation method, device, equipment and storage medium for hybrid application
CN113254057B (en) * 2021-04-30 2024-12-10 南京爱福路汽车科技有限公司 A method for enhancing database management platform based on code injection
CN113342447B (en) * 2021-06-28 2024-04-02 平安国际融资租赁有限公司 Page generation method, device, equipment and storage medium based on Flutter
CN114003412A (en) * 2021-12-27 2022-02-01 支付宝(杭州)信息技术有限公司 Method and device for communicating small program and host program
CN114282131B (en) * 2021-12-27 2025-06-06 掌阅科技股份有限公司 Page switching method, electronic device and storage medium
CN114564322A (en) * 2022-03-01 2022-05-31 上海中通吉网络技术有限公司 Native and JS interactive system
CN115758026A (en) * 2022-11-23 2023-03-07 中国建设银行股份有限公司 Interaction method and device of application program and network page

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101228A (en) * 2018-08-10 2018-12-28 百度在线网络技术(北京)有限公司 The execution method and apparatus of application program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090259934A1 (en) * 2008-04-11 2009-10-15 Go Hazel Llc System and method for rendering dynamic web pages with automatic ajax capabilities
ITRM20100175A1 (en) * 2010-04-13 2011-10-14 Andrea Buratti MODULAR DYNAMIC WEB APPLICATIONS PERSISTENT WITH COMPLEX INTERFACES
US9946581B2 (en) * 2010-12-17 2018-04-17 Microsoft Technology Licensing, Llc Exposing server functions to browser code
CN106708557B (en) * 2016-07-29 2020-04-03 腾讯科技(深圳)有限公司 Update processing method and device for terminal application
CN107608801B (en) * 2017-09-05 2020-09-29 北京京东尚科信息技术有限公司 Native page and HTML5 page communication method, device, medium and equipment
CN108563477B (en) * 2018-03-02 2022-04-26 北京奇艺世纪科技有限公司 Page event response method and device
CN108762956B (en) * 2018-05-31 2023-03-21 康键信息技术(深圳)有限公司 Method for acquiring Native local data, server, mobile terminal and storage medium
CN109271213B (en) * 2018-08-20 2023-03-28 平安普惠企业管理有限公司 HTML5 page loading method and device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101228A (en) * 2018-08-10 2018-12-28 百度在线网络技术(北京)有限公司 The execution method and apparatus of application program

Also Published As

Publication number Publication date
CN111722935A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN111722935B (en) Page end and original end communication method and device, electronic equipment and readable medium
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN111459685A (en) Communication method, device, equipment and readable medium of page end and native end
CN110069308B (en) Page launching method, apparatus, electronic device and storage medium
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
US11861381B2 (en) Icon updating method and apparatus, and electronic device
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN111722936B (en) Page end and original end communication method and device, electronic equipment and readable medium
CN112558933B (en) Component rendering method and device, readable medium and electronic equipment
CN110245030A (en) A kind of data service providing method, device, medium and electronic equipment
CN115113898A (en) Dynamic update method, device, computer equipment and storage medium of micro-application
CN107450946B (en) Chrome webpage and terminal software communication method, equipment and storage medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN117807601A (en) Vulnerability detection method, device, medium and equipment for application program
CN111984888A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113296762B (en) Page embedding method, device, storage medium and electronic equipment
CN111027281B (en) Word segmentation method, device, equipment and storage medium
CN112306469B (en) A barrier-free component construction method, device, equipment and storage medium
CN109670152B (en) HL7V3 analysis method, storage medium, electronic equipment and system
CN111083145A (en) Message sending method and device and electronic equipment
CN113296771B (en) Page display method, device, equipment and computer readable medium
CN117880008A (en) Gateway-based service request processing method, device, equipment 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
GR01 Patent grant
GR01 Patent grant