1.0.0 • Published 6 years ago

smart-ivue v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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

FunctionDescriptionParametersDefault
call
openWebapp
close
setRefreshable
setRefreshable

License

MIT