我已经找到了我需要的东西。如果我在 html 表单中设置 action='FORM" ,那么我可以通过以下方式拦截该操作:
public void onLoadResource (WebView view, String url){
int index = url.indexOf("FORM?");
if (index != -1){
String d = URLDecoder.decode(url.substring(index+5));
}
}
Run Code Online (Sandbox Code Playgroud)
名称/值对位于字符串 d 中。
| 归档时间: |
|
| 查看次数: |
12800 次 |
| 最近记录: |