Android WebView uses Java to call JavaScript methods and get the return value

Open a web page with WebView on the Android Tablet, call the JavaScript method inside, and pass parameters to each other at the same time. Very few examples on the Internet, basically can not get the return value, paste a final debugging of their own code as follows: Java:

Write another inner class:

Javascript code:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>