Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: Android 中对 WebView 的 HTTP POST 响应
在我的 Android 应用程序中,我想在 HTML、CSS 中使用 Web View 中的 View 部分。是否可以在这个 webview API 中使用 jquery ajax 进行 http 发布。
你可以这样做
WebView webview = findviewbyid(R.id.webview); byte[] post = EncodingUtils.getBytes("postvar=value", "BASE64"); webview.postUrl("http://www.mysite.com/post", post);