siro-jsbridge
v1.0.27
Published
移动JSBridge
Readme
siro-jsbridge
Introduce
This project is based on the JS part of dsbridge, which is rewritten after engineering.I hope it's useful for you。
Project setup
npm installCompiles and hot-reloads for development
npm startCompiles and minifies for production
npm run buildHow to use
In VUE main.js
import {SRJSBridge} from 'siro-jsbridge'
Vue.prototype.SRJSBridge = window.SRJSBridge;
then
SRJSBridge.invoke('getBluetoothDevice','getBluetoothDevice',(v)=>{
console.log(v);
});