【发布时间】:2016-07-13 09:00:56
【问题描述】:
这是我的代码:
private WebView mWebView;
String testValue="hello";
mWebView.loadUrl("http://192.168.64.13:8079/ctms-logistics/demo.html?test="+testValue);
我想从包含在demo.html中的demo.js中的url获取参数“test”的值(即变量testValue的值),如何?我知道在浏览器中我们可以使用 window.location.hash 来获取 url,但它在 webview 中不起作用。
【问题讨论】:
标签: javascript android html webview