Skip to content

liming881227/dm-jsbridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Examples

install

import jsbridge from 'dm-jsbridge'
window.dmJSBridge.registerHandler('testH5Func', function(data, callback) {
  alert('测试函数接收到数据:' + JSON.stringify(data));
  callback && callback('测试回传数据...');
});

window.dmJSBridge.callHandler('testNativeFunc', data, function(res) {
  alert('receive data,' + JSON.stringify(res));
  callback && callback(res);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published