We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
只能js调用java代码而java设置不了js吗 比如java发送消息给webview
The text was updated successfully, but these errors were encountered:
可以啊,java调用 webview 方法只需要注入js 就好,loadUrl 或者 evaluateJavascript 都是可以的,比如你想执行网页的刷新,可以使用
loadUrl
evaluateJavascript
webview.evaluateJavascript("location.reload()", null)
也就是说只要注入js的执行路径就好,自定义的方法也是这么执行的哈
Sorry, something went wrong.
No branches or pull requests
只能js调用java代码而java设置不了js吗 比如java发送消息给webview
The text was updated successfully, but these errors were encountered: