js交互app

 

 

function connectWebViewJavascriptBridge (callback) { if (window.WebViewJavascriptBridge) { callback(WebViewJavascriptBridge) } else { document.addEventListener( ‘WebViewJavascriptBridgeReady‘ , function() { callback(WebViewJavascriptBridge) }, false ); } }
connectWebViewJavascriptBridge (function(bridge) {
// bridge.registerHandler(‘JS Echo‘, function(data, responseCallback) { console.log("JS Echo called with:", data) responseCallback(data) })
bridge.callHandler(‘oliveness‘, {}, function responseCallback(responseData) { }) })

js交互app

上一篇:python3+cv2+andiord安卓摄像头


下一篇:移动端自动化测试-WTF Appium