search

Home  >  Q&A  >  body text

android - 有安卓渲染离线html js的例子吗?

我想在把大的js、css、静态html放在安卓apk包里,然后能展示指定的html、执行html里离线的js,有例子吗?

大家讲道理大家讲道理2894 days ago633

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-18 09:16:17

    It can be displayed, you just need to use webview to load the local url

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:16:17

    Yes, you can put the file in the asset folder, and then set up a WebView in the Activity with the URL pointing to the stored file. Hybrid development is to write the HTML page, then obtain the data from the background, and then fill the data into the prepared HTML through JSBridge.

    reply
    0
  • Cancelreply