search

Home  >  Q&A  >  body text

Android webview 加载远程网页如何调用本地(asset)js文件

高洛峰高洛峰2772 days ago939

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 17:18:36

    You can implement return htmlString格式的内容,再调用loadDataWithBaseURLloading first.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:18:36

    Try this directly

    <script type="text/javascript" src="jquery.js"></script>

    Source http://stackoverflow.com/questions/6533207/android-webview-load-local-javascript

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:18:36

    Has the poster solved this problem now

    reply
    0
  • Cancelreply