Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异步回调接口内带啊没不执行 #8

Open
tghjnjvg opened this issue Mar 26, 2020 · 1 comment
Open

异步回调接口内带啊没不执行 #8

tghjnjvg opened this issue Mar 26, 2020 · 1 comment

Comments

@tghjnjvg
Copy link

window.WebViewJavascriptBridge.callHandler(
'getdata' //桥注册的名称ID
, {'msg': '中文测试'} //传递给原生的参数
, function(responseData) { //异步回调接口
alert('native return->'+responseData);
}
);

@hjhrq1991
Copy link
Owner

不生效的话多注意一下JavaScript的声明方法,很容易因为js问题导致桥连接初始化失败

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants