/***
* 获取url 指定name的value;
* @param url
* @param name
* @return
*/
private String getValueByName(String url, String name) {
String result = "";
int index = url.indexOf("?");
String temp = url.substring(index + 1);
String[] keyValue = temp.split("&");
for (String str : keyValue) {
if (str.contains(name)) {
result = str.replace(name + "=", "");
break;
}
}
return result;
}
android webview加载网页获取对应url 参数值的方法
最新推荐文章于 2024-05-30 19:10:40 发布