smart-javascript-bridge

1.0.58 • Public • Published

Overview

smart-javascript-bridge提供原生接口调用 (private)

Installation

First, install smart-javascript-bridge from npm:

$ npm install smart-javascript-bridge
or
$ npm update smart-javascript-bridge

Then use it:

// ES6 mudule
import iJsBridge from 'smart-javascript-bridge';


Vue.prototype.iJsBridge = iJsBridge

Usage

call any native expose javascript interface:

{
    method: String,
    postData: {} as Object,
    callback: {} as Function
}
this.iJsBridge.call({method: "XXX.YYY",postData: {},callback:fn});

API

Function Description Parameters Default
call
openWebapp
close
setRefreshable
setRefreshable

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i smart-javascript-bridge

Weekly Downloads

3

Version

1.0.58

License

ISC

Unpacked Size

281 kB

Total Files

10

Last publish

Collaborators

  • zhenghaiqiang
  • wilson78
  • luoliangtester