Exist stringByEvaluatingJavaScriptFromString for Android

前端 未结 2 1594
清酒与你
清酒与你 2021-01-20 02:07

Exist stringByEvaluatingJavaScriptFromString method in Android like Iphone?. Not with a simple code like this javascript:wave(). But with a complex Java Script function. Tha

2条回答
  •  星月不相逢
    2021-01-20 02:51

    You can use loadUrl instead,eg:

    webView.loadUrl("javascript:PerformSimpleCalculation()");
    

    It's effect similar to stringByEvaluatingJavaScriptFromString.The API description is not clear.

提交回复
热议问题