README
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