在你的方法前面加上 @JavascriptInterface;因为4.4安全性要求更高了;
例:Uncaught TypeError: Object [object Object] has no method ‘showResult’;
你的方法:
public void showResult(String result)
{
//.......
}
改成:
@JavascriptInterface
public void showResult(String result)
{
//.......
}
就可以顺序通过;