WebView code generating Uncaught TypeError and Uncaught ReferenceError errors on Android 4.4.2 (API 19) emulator

前端 未结 3 1775
误落风尘
误落风尘 2021-02-06 18:58

I\'m having a problem with my code when running on a Android 4.4.2 KitKat (API 19) emulator...

When I emulate my project on a Android 4.3 (API 18) emulator, it works nor

3条回答
  •  悲哀的现实
    2021-02-06 19:17

    webview.evaluateJavascript("javascript:document.getElementById('math').innerHTML='"+doubleEscapeTeX(questn)+"';",null);

    webview.loadUrl("javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);");

    This is the sollution for api 19 or above

提交回复
热议问题