WebView和js的互调
(创建于2017/5/20) 一个网页中有如下代码 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <script language="javascript"> /* This function is invoked by the activity */ function wave() { alert("Android调用Js啦"); } </script> <body> <!-- Js调用Android代码 --> <a onClick="window.demo.onCallback()">点我!</a> </body> </html> 安卓代码如下 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa...