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.
我在我的应用程序中使用 WebView。我使用 WebView 加载一个 url。在加载页面时,它包含许多链接和按钮。我想处理页面特定按钮的点击。如何实现这一点。?
在 webview 中,如果您使用 loadUrl() 方法并在那里传递 url,那么 webview 将直接打开该 url。因此,如果您点击那里,您将获得该网址中存在的所有点击事件,然后您将被重定向到新意图。所以无需将您自己的点击事件放入 webview 数据中。
这背后有什么特别的原因吗。你能详细说明你想表演什么吗?
谢谢迪帕克