Native and JS interactive message processing method

A technology for message processing and processing methods, applied in electrical digital data processing, program control design, instruments, etc., can solve problems such as difficult to troubleshoot, complex message sending process, increase network bandwidth, etc., to reduce research and development time costs and bandwidth consumption. , Improve the efficiency of code operation and reduce the effect of calling process

Pending Publication Date: 2021-08-03
SUIRUI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of multi-language development, multi-language interaction is a very important part, but often technicians ignore the processing method during the interaction process, resulting in confusion in the structure level, messages sent multiple times or messages not received during the interaction process, etc. problem, and it is difficult to troubleshoot, thus failing to achieve the original intention of shortening R&D time and improving R&D efficiency. At this time, an interactive message processing method is urgently needed to solve this problem
[0003] As a multi-language development client, in the existing interaction mode, there are problems such as unsmooth interaction, complicated message sending process, and too many call levels, and the problem of different processing for the same message in different modules has high redundancy in the processing code. In turn, network bandwidth is increased, visual display and response speed are reduced, and equipment heats up. In terms of code management, redundant codes refer to each other and call each other, which is prone to circular references and even bad experience of application crashes.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Native and JS interactive message processing method
  • Native and JS interactive message processing method
  • Native and JS interactive message processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

[0017] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations thereof such as "includes" or "includes" and the like will be understood to include the stated elements or constituents, and not Other elements or other components are not excluded.

[0018] figure 1 It is a schematic flowchart of a message processing method for interaction between native and JS according to an embodiment of the present invention. Such as figure 1 As shown, in the first aspect, according to a preferred embodiment of the present invention, a message processing method for native interaction with JS is characterized in that it includes: S1, formulating a message mapping table L. S2. Crea...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a native and JS (JavaScript) interactive message processing method, which is characterized by comprising the following steps of: formulating a message mapping table L; creating a native management module N, and creating a first method and a second method; creating a sub-module M1, a sub-module M2 and a sub-module M3 for processing the message, respectively inheriting the sub-module M1, the sub-module M2 and the sub-module M3 from the native management module N, and internally implementing the second method; and enabling the JS message sending module to send the first message to the native management module N, enabling the native management module N to find the corresponding sub-module M1 in the message mapping table L according to the message name of the first message, and enabling the sub-module M1 to call a second method implemented by the sub-module M1 for processing. Therefore, the native and JS interactive message processing method can reduce calling processes, reduce code redundancy, can be reused and expanded, reduces research and development time cost and bandwidth loss, and improves code operation efficiency.

Description

technical field [0001] The invention relates to the technical field of multi-language joint development, in particular to a message processing method for interaction between native and JS. Background technique [0002] At present, using multi-language development is a common development method. Many applications are no longer developed in a single language, but use the strengths of each language to shorten development time and improve development efficiency. However, in the process of multi-language development, multi-language interaction is a very important part, but often technicians ignore the processing method during the interaction process, resulting in confusion in the structure level, messages sent multiple times or messages not received during the interaction process, etc. problem, and it is difficult to troubleshoot, thus failing to achieve the original intention of shortening R&D time and improving R&D efficiency. At this time, an interactive message processing met...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448
CPCG06F9/449G06F9/4492
Inventor 姚尧冯文澜
Owner SUIRUI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products