Method, device, electronic device and storage medium for calling local native program

By generating distribution functions, the call content is sent to the local native program, which solves the accuracy of call content distribution in communication between front-end applications and background platforms, and realizes the effective call and processing of local native programs.

CN113220380BActive Publication Date: 2025-02-18BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110569506.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2025-02-18
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

During the communication process between front-end applications and back-end platforms, how to accurately distribute the call content to local native native programs is a technical problem that needs to be solved urgently.

Method used

By receiving the call request, a distribution function is generated based on the address of the local native program, and the call content is sent to the local native program through the distribution function.

Benefits of technology

It realizes that the call content in the call request is accurately sent to the local native program, so that the local native program can perform subsequent processing based on the obtained call content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220380B_ABST
    Figure CN113220380B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, electronic device and storage medium for calling a local native program. The method includes: after receiving a call request, generating a distribution function in combination with the address of the local native program in the call request, and accurately sending the call content to the local native program through the distribution function. Thus, through the generated distribution function, the call content in the call request is accurately sent to the local native program, so as to facilitate the local native program to perform subsequent processing based on the acquired call content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for calling a local native program. Background Art

[0002] In the related technology, in the process of communication between the front-end application and the back-end platform, in the process of the front-end application calling the local native program in the back-end platform, how to accurately distribute the calling content to the local native program is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the present disclosure proposes the following technical solutions:

[0005] The first aspect of the present disclosure proposes a method for calling a local native program, the method comprising: receiving a calling request, wherein the calling request contains calling content and an address of the local native program; generating a distribution function according to the address of the local native program; and sending the calling content to the local native program according to the distribution function.

[0006] In one embodiment of the present disclosure, generating a distribution function according to the address of the local native program includes: obtaining a template of the distribution function; obtaining parameter information of the distribution function according to the address of the local native program; and generating the distribution function according to the parameter information and the template.

[0007] In one embodiment of the present disclosure, generating a distribution function according to the address of the local native program includes: obtaining a corresponding assembly language file according to the address of the local native program, wherein the assembly language file includes an index number and a template of the distribution function; obtaining parameter information of the distribution function according to the index number; and generating the distribution function according to the parameter information and the template of the distribution function.

[0008] In one embodiment of the present disclosure, acquiring parameter information of the distribution function according to the index number includes: acquiring parameter information of the distribution function corresponding to the index number from a preset parameter table.

[0009] In one embodiment of the present disclosure, generating a distribution function according to the address of the local native program includes: obtaining a template creation instruction of the distribution function from a preset memory address; executing the template creation instruction to obtain a template of the distribution function; obtaining parameter information of the distribution function according to the address of the local native program; and generating the distribution function according to the template and the parameter information.

[0010] The second aspect of the present disclosure proposes a device for calling a local native program, the device comprising: a receiving module for receiving a calling request, wherein the calling request includes a calling content and an address of a local native program; a generating module for generating a distribution function according to the address of the local native program; and a sending module for sending the calling content to the local native program according to the distribution function.

[0011] In one embodiment of the present disclosure, the generation module includes: a first acquisition unit, used to obtain a template of the distribution function; a second acquisition unit, used to obtain parameter information of the distribution function according to the address of the local native program; and a first generation unit, used to generate the distribution function according to the parameter information and the template.

[0012] In one embodiment of the present disclosure, the generation module is specifically used to: obtain, according to the address of the local native program, a distribution function corresponding to the address of the local native program from a preset distribution function library.

[0013] In one embodiment of the present disclosure, the generation module includes: a third acquisition unit, used to obtain the corresponding assembly language file according to the address of the local native program, wherein the assembly language file includes the index number and template of the distribution function; a fourth acquisition unit, used to obtain parameter information of the distribution function according to the index number; and a second generation unit, used to generate the distribution function according to the parameter information and template of the distribution function.

[0014] In one embodiment of the present disclosure, the generation module includes: a fifth acquisition unit, used to obtain a template creation instruction of the distribution function from a preset memory address; an execution unit, used to execute the template creation instruction to obtain a template of the distribution function; a sixth acquisition unit, used to obtain parameter information of the distribution function according to the address of the local native program; and a third generation unit, used to generate the distribution function according to the template and the parameter information.

[0015] An embodiment of the third aspect of the present disclosure proposes an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute the executable instructions stored in the memory to implement the calling method of the local native program proposed in the embodiment of the first aspect of the present disclosure.

[0016] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the calling method of the local native program proposed in the first aspect embodiment of the present disclosure.

[0017] The fifth aspect of the present disclosure provides a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can execute the calling method of the local native program provided in the first aspect of the present disclosure.

[0018] The technical solution disclosed in the present invention generates a distribution function in combination with the address of the local native program in the call request after receiving the call request, and accurately sends the call content to the local native program through the distribution function. Thus, the call content in the call request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired call content.

[0019] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 is a flowchart of a method for calling a local native program according to an embodiment of the present disclosure;

[0022] Figure 2 is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure;

[0023] Figure 3 is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure;

[0024] Figure 4 is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure

[0025] Figure 5 is a structural block diagram of a device for calling a local native program according to an embodiment of the present disclosure;

[0026] Figure 6is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0028] The following describes the calling method, device, electronic device and storage medium of the local native program of the embodiments of the present disclosure with reference to the accompanying drawings.

[0029] Figure 1 It is a flowchart of a method for calling a local native program according to an embodiment of the present disclosure. It should be noted that the execution subject of the method for calling a local native program provided in this embodiment is a calling device for a local native program, and the calling device for the local native program can be implemented by software and / or hardware. In this embodiment, the calling device for the local native program can be configured in a background platform corresponding to the front-end application. For example, the front-end application is developed based on the JS (JavaScript) scripting language. Correspondingly, the calling device for the local native program can be configured in a JS engine, wherein the JS engine can be various types of JS engines, for example, the JS engine can be a JS core engine.

[0030] like Figure 1 As shown, the calling method of the local native program includes:

[0031] Step 101, receiving a call request, wherein the call request includes call content and an address of a local native program.

[0032] In some embodiments, the above-mentioned calling content may include a calling object and function information corresponding to the calling object.

[0033] Step 102: Generate a distribution function according to the address of the local native program.

[0034] Step 103: Send the call content to the local native program according to the distribution function.

[0035] The calling method of the local native program of the embodiment of the present disclosure generates a distribution function in combination with the address of the local native program in the calling request after receiving the calling request, and accurately sends the calling content to the local native program through the distribution function. Thus, the calling content in the calling request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired calling content.

[0036] Figure 2 It is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure. Among them, the execution subject of the method for calling a local native program provided in this embodiment is a calling device for a local native program, and the calling device for the local native program can be implemented by software and / or hardware. In this embodiment, the calling device for the local native program can be configured in a background platform corresponding to the front-end application. For example, the front-end application is developed based on the JS (JavaScript) scripting language. Correspondingly, the calling device for the local native program can be configured in a JS engine, wherein the JS engine can be various types of JS engines, for example, the JS engine can be a JS core engine.

[0037] like Figure 2 As shown, the calling method of the local native program includes:

[0038] Step 201: receiving a call request, wherein the call request includes call content and an address of a local native program.

[0039] Step 202: Obtain a template of the distribution function.

[0040] In some embodiments, a template of a dispatch function written in C++ may be obtained.

[0041] Step 203: Obtain parameter information of the distribution function according to the address of the local native program.

[0042] In some embodiments, parameter information of the distribution function corresponding to the address of the local native program may be obtained according to a preset parameter list.

[0043] The parameter information of the distribution function may include one parameter or multiple parameters, which is not specifically limited in this embodiment.

[0044] Step 204: Generate a distribution function based on the parameter information and the template.

[0045] In some embodiments, parameter information may be added to the template to obtain the distribution function.

[0046] Step 205: Send the call content to the local native program according to the distribution function.

[0047] The calling method of the local native program of the embodiment of the present disclosure obtains the template of the distribution function after receiving the calling request, obtains the parameter information of the distribution function based on the address of the local native program, generates the distribution function based on the template of the distribution function and the parameter information of the distribution function, and accurately sends the calling content to the local native program through the distribution function. Thus, the calling content in the calling request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired calling content.

[0048] Figure 3 It is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure. Among them, the execution subject of the method for calling a local native program provided in this embodiment is a calling device for a local native program, and the calling device for the local native program can be implemented by software and / or hardware. In this embodiment, the calling device for the local native program can be configured in a background platform corresponding to the front-end application. For example, the front-end application is developed based on the JS (JavaScript) scripting language. Correspondingly, the calling device for the local native program can be configured in a JS engine, wherein the JS engine can be various types of JS engines, for example, the JS engine can be a JS core engine.

[0049] like Figure 3 As shown, the calling method of the local native program includes:

[0050] Step 301: receiving a call request, wherein the call request includes call content and an address of a local native program.

[0051] Step 302: Obtain a corresponding assembly language file according to the address of the local native program, wherein the assembly language file includes an index number and a template of the distribution function.

[0052] In some embodiments, the assembly language file is a file pre-written in assembly language, and the template of the distribution function and the index number of the distribution function can be defined in the assembly file in the form of macro functions.

[0053] Step 303: Obtain parameter information of the distribution function according to the index number.

[0054] In some embodiments, after obtaining the corresponding assembly language file, the assembly language file may be compiled to obtain an executable file, and the executable file may be run.

[0055] In some embodiments, during the execution of an executable file, a piece of information corresponding to the index number in the macro function can be obtained from a preset parameter table, and parameter information of the distribution function can be obtained from the piece of information.

[0056] In some embodiments, after the parameter information of the distribution function is obtained, the parameter information of the distribution function may be stored in a register to facilitate subsequent reading of the parameter information of the distribution function from the register.

[0057] Step 304: Generate a distribution function according to the parameter information and template of the distribution function.

[0058] Step 305: Send the call content to the local native program according to the distribution function.

[0059] The calling method of the local native program of the embodiment of the present disclosure obtains the template of the distribution function after receiving the calling request, obtains the corresponding assembly language file according to the address of the local native program, obtains the parameter information of the distribution function according to the index number, generates the distribution function based on the parameter information of the distribution function, and accurately sends the calling content to the local native program through the distribution function. Thus, the calling content in the calling request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired calling content.

[0060] Figure 4 It is a flowchart of a method for calling a local native program according to another embodiment of the present disclosure. Among them, the execution subject of the method for calling a local native program provided in this embodiment is a calling device for a local native program, and the calling device for the local native program can be implemented by software and / or hardware. In this embodiment, the calling device for the local native program can be configured in a background platform corresponding to the front-end application. For example, the front-end application is developed based on the JS (JavaScript) scripting language. Correspondingly, the calling device for the local native program can be configured in a JS engine, wherein the JS engine can be various types of JS engines, for example, the JS engine can be a JS core engine.

[0061] like Figure 4 As shown, the calling method of the local native program includes:

[0062] Step 401, receiving a call request, wherein the call request includes call content and an address of a local native program.

[0063] Step 402: Obtain a template creation instruction for the distribution function from a preset memory address.

[0064] The template creation instruction is obtained by compiling a pre-written template creation source file for generating a distribution function.

[0065] In some embodiments, the template creation file may be written in assembly language and the written template creation file may be compiled to obtain the template creation file.

[0066] Step 403: execute the template creation instruction to obtain the template of the distribution function.

[0067] Step 404: Obtain parameter information of the distribution function according to the address of the local native program.

[0068] In some embodiments, in some embodiments, parameter information of the distribution function corresponding to the address of the local native program may be obtained according to a preset parameter list.

[0069] The parameter information of the distribution function may include one parameter or multiple parameters, which is not specifically limited in this embodiment.

[0070] Step 405: Generate a distribution function according to the template and parameter information.

[0071] Step 406: Send the call content to the local native program according to the distribution function.

[0072] From the above, it can be seen that in this embodiment, a distribution function template is generated dynamically, and a distribution function is dynamically generated based on the distribution function template, and the call content is sent to the local native program based on the generated distribution function. Thus, the call content in the call request is accurately sent to the local native program through the generated distribution function, thereby avoiding the situation where the distribution function cannot be called due to the absence of parameter information of the distribution function, and the call content cannot be sent to the local native program through the distribution function.

[0073] The calling method of the local native program of the embodiment of the present disclosure, after receiving the calling request, obtains the template creation instruction of the distribution function from the preset memory address, executes the template creation instruction to obtain the template of the distribution function, and obtains the parameter information of the distribution function according to the address of the local native program. Thus, based on the address of the local native program, the parameter information of the distribution function is obtained, the template of the distribution function is generated in a dynamic manner, and based on the generated template and the obtained parameters of the distribution function, the distribution function is dynamically generated, and the call content in the call request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the obtained call content. Obtain a calling task request for the local native program.

[0074] The disclosed embodiment also provides a device for calling a local native program.

[0075] Figure 5 It is a structural block diagram of a device for calling a local native program according to an embodiment of the present disclosure.

[0076] like Figure 5As shown, the calling device 500 of the local native program includes: a receiving module 501, a generating module 502 and a sending module 503, wherein:

[0077] The receiving module 501 is used to receive a call request, wherein the call request contains call content and the address of a local native program.

[0078] The generation module 502 is used to generate a distribution function according to the address of the local native program.

[0079] The sending module 503 is used to send the calling content to the local native program according to the distribution function.

[0080] In one embodiment of the present disclosure, the generation module 502 may include:

[0081] The first acquisition unit is used to acquire a template of the distribution function.

[0082] The second acquisition unit is used to acquire parameter information of the distribution function according to the address of the local native program.

[0083] The first generating unit is used to generate a distribution function according to the parameter information and the template.

[0084] In another embodiment of the present disclosure, the generation module 502 may include:

[0085] The third acquisition unit is used to acquire a corresponding assembly language file according to the address of the local native program, wherein the assembly language file includes an index number and a template of the distribution function.

[0086] A fourth acquisition unit is used to acquire parameter information of the distribution function according to the index number.

[0087] The second generating unit is used to generate the distribution function according to the parameter information and template of the distribution function.

[0088] In one embodiment of the present disclosure, the fourth acquisition unit is specifically used to: acquire parameter information of the distribution function corresponding to the index number from a preset parameter table.

[0089] In one embodiment of the present disclosure, the generation module 502 may include:

[0090] The fifth acquisition unit is used to acquire the template creation instruction of the distribution function from a preset memory address.

[0091] An execution unit is used to execute the template creation instruction to obtain the template of the distribution function.

[0092] The sixth acquisition unit is used to acquire parameter information of the distribution function according to the address of the local native program.

[0093] The third generating unit is used to generate the distribution function according to the template and the parameter information.

[0094] It should be noted that the aforementioned explanation of the embodiment of the method for calling a local native program is also applicable to the device for calling a local native program of this embodiment, and will not be repeated here.

[0095] The calling device of the local native program of the embodiment of the present disclosure generates a distribution function in combination with the address of the local native program in the calling request after receiving the calling request, and accurately sends the calling content to the local native program through the distribution function. Thus, the calling content in the calling request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired calling content.

[0096] Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.

[0097] like Figure 6 As shown, the electronic device 200 includes: a memory 210 and a processor 220, and a bus 230 connecting different components (including the memory 210 and the processor 220).

[0098] Among them, the memory 210 is used to store executable instructions of the processor 220; the processor 220 is configured to call and execute the executable instructions stored in the memory 210 to implement the calling method of the local native program proposed in the above embodiment of the present disclosure.

[0099] Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0100] The electronic device 200 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 200, including volatile and non-volatile media, removable and non-removable media.

[0101] The memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. The electronic device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 260 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 230 via one or more data medium interfaces. The memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0102] A program / utility 280 having a set (at least one) of program modules 270 may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 270 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0103] The electronic device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device 200, and / or communicate with any device that enables the electronic device 200 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be carried out through an input / output (I / O) interface 292. In addition, the electronic device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 293. As shown in the figure, the network adapter 293 communicates with other modules of the electronic device 200 through a bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 200, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive, and data backup storage system, etc.

[0104] The processor 220 executes various functional applications and data processing by running the programs stored in the memory 210 .

[0105] It should be noted that the implementation process of the electronic device of the embodiment of the present disclosure refers to the aforementioned explanation of the calling method of the local native program of the embodiment of the present disclosure, which will not be repeated here.

[0106] In order to implement the above embodiment, the embodiment of the present disclosure also proposes a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the calling method of the local native program as mentioned above.

[0107] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can execute the calling method of the local native program as described above.

[0108] The technical solution disclosed in the present invention generates a distribution function in combination with the address of the local native program in the call request after receiving the call request, and accurately sends the call content to the local native program through the distribution function. Thus, the call content in the call request is accurately sent to the local native program through the generated distribution function, so as to facilitate the local native program to perform subsequent processing based on the acquired call content.

[0109] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0110] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for calling a local native program, wherein the execution subject of the method is a calling device of the local native program, characterized in that: include: Receiving a call request, wherein the call request includes call content and an address of a local native program, and the call request is sent by a front-end application; Generate a distribution function according to the address of the local native program; Sending the calling content to the local native program according to the distribution function; The generating a distribution function according to the address of the local native program includes: Obtaining a template of the distribution function; According to the address of the local native program, obtaining parameter information of the distribution function; Generate the distribution function according to the parameter information and the template; or, According to the address of the local native program, obtaining a corresponding assembly language file, wherein the assembly language file includes an index number and a template of the distribution function; According to the index number, obtaining parameter information of the distribution function; The distribution function is generated according to the parameter information and template of the distribution function.

2. The method according to claim 1, characterized in that The acquiring parameter information of the distribution function according to the index number includes: From a preset parameter table, obtain parameter information of the distribution function corresponding to the index number.

3. The method according to claim 1, characterized in that The generating a distribution function according to the address of the local native program includes: Obtaining a template creation instruction of the distribution function from a preset memory address; Executing the template creation instruction to obtain the template of the distribution function; According to the address of the local native program, obtaining parameter information of the distribution function; The distribution function is generated according to the template and the parameter information.

4. A device for calling a local native program, characterized in that: include: A receiving module, used for receiving a call request, wherein the call request contains call content and an address of a local native program, and the call request is sent by a front-end application; A generation module, used to generate a distribution function according to the address of the local native program; A sending module, used for sending the calling content to the local native program according to the distribution function; The generating module comprises: A first acquisition unit, used to acquire a template of the distribution function; A second acquisition unit, configured to acquire parameter information of the distribution function according to the address of the local native program; A first generating unit is configured to generate the distribution function according to the parameter information and the template, or The generating module comprises: A third acquisition unit, configured to acquire a corresponding assembly language file according to the address of the local native program, wherein the assembly language file includes an index number and a template of the distribution function; A fourth acquisition unit, used to acquire parameter information of the distribution function according to the index number; The second generating unit is used to generate the distribution function according to the parameter information and template of the distribution function.

5. The device according to claim 4, characterized in that The fourth acquisition unit is specifically used for: From a preset parameter table, obtain parameter information of the distribution function corresponding to the index number.

6. The device according to claim 4, characterized in that The generating module comprises: A fifth acquisition unit, used to acquire a template creation instruction of the distribution function from a preset memory address; An execution unit, configured to execute the template creation instruction to obtain a template of the distribution function; A sixth acquisition unit, configured to acquire parameter information of the distribution function according to the address of the local native program; The third generating unit is used to generate the distribution function according to the template and the parameter information.

7. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to call and execute executable instructions stored in the memory to implement the method according to any one of claims 1 to 3.

8. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Running method of Web application program and mobile terminal

    CN103106102A