smart-javascript-bridge提供原生接口调用 (private)
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
call any native expose javascript interface:
{
method: String,
postData: {} as Object,
callback: {} as Function
}
this.iJsBridge.call({method: "XXX.YYY",postData: {},callback:fn});
Function | Description | Parameters | Default |
---|---|---|---|
call | |||
openWebapp | |||
close | |||
setRefreshable | |||
setRefreshable |
MIT