Unlock instant, AI-driven research and patent intelligence for your innovation.

A js interaction method between the web page and the mobile phone in the app

An interactive method and mobile terminal technology, applied in the computer field, can solve the problems of improving, defining method names, parameters, inconsistent return data, difficult maintenance and management, etc., to achieve the effect of reducing docking and joint debugging, shortening development cycle and saving time.

Active Publication Date: 2020-03-10
GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The names, parameters, and return data of this definition method are not uniform, which leads to the interaction between the APP end and the H5 end. It requires continuous notification and communication between personnel, and the names of the methods that are called each other cannot be changed randomly.
When there are a large number of intermodulation methods, multiple APPs, multiple H5s, and multiple developers, the communication cost, error rate, and development time are greatly increased, and it is difficult to maintain and manage

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
  • A js interaction method between the web page and the mobile phone in the app

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0020] see figure 1 , is a schematic flow chart of an embodiment of the JS interaction method between the web page end and the mobile phone end in the App provided by the present invention, and the method includes the following steps:

[0021] Step 101: The APP side obtains the name of the JS interactive calling method and the data type required by the JS interactive calling method; the data type includes: request parameter type, return parameter type and action ty...

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 JS interaction method of a webpage side and a mobile phone side in App. The method comprises the following steps: firstly acquiring a name of a JS interaction calling methodand the required data type, generating a corresponding JS interaction document; and then enabling the APP side to acquire a first request method of a H5 side, and determining the required request parameter and return parameter through the JS interaction document, calling back the first interaction data to the H5 side; and analyzing the first interaction data according to the JS interaction document and the action type of the interaction data after the H5 side receives the first interaction data, thereby accomplishing the data interaction between the H5 side and the APP side. By adopting the interaction method disclosed by the embodiment of the invention, the docking and debugging between the webpage side and the mobile phone side can be reduced, the project development period is shortened,and the error rate is reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a JS interaction method between a webpage terminal and a mobile terminal in an App. Background technique [0002] With the continuous popularization and optimization of HTML5 (hereinafter referred to as H5), more and more applications are developed on the mobile terminal. The development involves the JS interaction between the web page and the mobile phone, and the existing JS interaction is that each mobile APP defines various methods for calling the H5 end to perform JS interaction. Similarly, the H5 terminal calls the data of the mobile terminal, and also adopts a custom calling method. The name, parameters, and return data of this definition method are not uniform, which leads to the interaction between the APP end and the H5 end, requiring continuous notification and communication between personnel, and the names of the methods that are called each other cannot be changed...

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 Patents(China)
IPC IPC(8): G06F8/41G06F8/73
CPCG06F8/427G06F8/73
Inventor 谢萍叶智强陈春攀罗洪鹏
Owner GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD