1.0.0 • Published 7 years ago
smart-ivue v1.0.0
Overview
smart-javascript-bridge提供原生接口调用 (private)
Installation
First, install smart-javascript-bridge from npm:
$ npm install smart-javascript-bridge
or
$ npm update smart-javascript-bridgeThen use it:
// ES6 mudule
import iJsBridge from 'smart-javascript-bridge';
Vue.prototype.iJsBridge = iJsBridgeUsage
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
1.0.0
7 years ago