【发布时间】:2018-03-16 17:56:01
【问题描述】:
我正在使用
加载我的 androidWebView
mywebview.loadDataWithBaseURL("file:///android_asset/", new String(result), "text/html", "UTF-8", null);
HTML 在WebView 中成功呈现。现在我想使用按钮从该 HTML 打开另一个 HTML 文件,因为我在 HTML 中使用下面的代码。
<button onclick="location.href='data/1/quiz_adjective.html'" > Start</button>
但它不起作用。我的资产 html 文件目录是 - assets\data\1\htmlfile.html
【问题讨论】:
标签: android html android-studio webview