我无法在网站 html 页面中使用本地应用程序 Assets (示例脚本、图像)文件
示例:(webview) 打开页面 http://website.com/sample.html
和这个 sample.html
`<html><head><title>Error Internet</title>
</head><body>
<img src="file:///android_asset/image.png">
<h2><strong>© 2014 -2015</strong></h2></body></html>
`
页面打开但本地文件打不开 file:///android_asset/image.png
最佳答案
只需删除 file:///android_asset/中的 html, src="pathOfImage/image.png" 会做的。如果您从 Assets 中加载该 html。
关于javascript - 网页/网站页面中的 Android webview 使用本地 Assets 文件(帮助),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24678193/