Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data interaction method and device, storage medium and mobile terminal

A technology of data interaction and functional functions, applied in the field of data processing, can solve problems such as the main thread being stuck, the user cannot operate the interface, and the user experience is poor.

Inactive Publication Date: 2018-11-23
BEIJING 58 INFORMATION TTECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a data interaction method, device, storage medium, and mobile terminal to solve the following problems in the prior art: when existing Native interacts with JS, if the JS method performs time-consuming operations, the main thread will If it is stuck, the user will not be able to operate the interface, and the user experience will be poor

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
  • Data interaction method and device, storage medium and mobile terminal
  • Data interaction method and device, storage medium and mobile terminal
  • Data interaction method and device, storage medium and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to solve the following problems in the prior art: when existing Native interacts with JS, if the JS method executes time-consuming operations, the main thread will be stuck, the user will not be able to operate the interface, and the user experience is poor; the present invention provides a A data interaction method, device, storage medium and mobile terminal, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] The first embodiment of the present invention provides a data interaction method, which is applied to the application program developed based on the mixed development mode. The flow of the method is as follows figure 2 As shown, including steps S201 to S203:

[0024] S201. The native language component creates a sub-threa...

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 data interaction method and device, a storage medium and a mobile terminal, which are applied to an application developed on the basis of a hybrid development mode. The method comprises the steps that: a native language component creates a sub thread in a main thread in a preset multi-core programming mode; the native language component creates a scope interacting with afirst preset language component in the sub thread; and by the scope, the native language component calls a function written by a first preset language. According to the embodiment of the invention, the native language component firstly creates one sub thread in the main thread, and then creates the scope interacting with the first preset language component after creating the sub thread so as to carry out an interaction operation by the scope. The method is different from a construction mechanism in the prior art, and thus, a JS (JavaScript) method can operate in the sub thread, the main threadcannot be influenced, user operation cannot be influenced, and user experience is good.

Description

technical field [0001] The present invention relates to the field of data processing, in particular to a data interaction method, device, storage medium and mobile terminal. Background technique [0002] This solution is applied to the APP of the mobile terminal. In the APP of the mobile phone, dynamic updates and hot fixes have become the trend. On the iOS platform, JavaScriptCore (running environment) is mostly used to interact between JS and Native (native language components). , in the development process, it is inevitable to use multithreading to solve time-consuming tasks. [0003] With the continuous increase of business, the demand for multi-threading is increasing, and JS is single-threaded, and all JS methods can only be executed serially. Corresponding to JavaScriptCore, JSContext (scope) is also created in the main thread to realize Process such as figure 1 shown. Since JSContext is created in the main thread, the interaction between Native and JS is also in t...

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/54
CPCG06F9/54
Inventor 郭鹏
Owner BEIJING 58 INFORMATION TTECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products