【发布时间】:2014-12-20 17:54:09
【问题描述】:
似乎shouldInterceptRequest()、onPageStarted() 和shouldOverrideUrlLoading() 等WebViewClient 方法只侦听导致WebView 加载新页面的URL 更改。有没有办法在 WebView 上检测片段 ID(即 index.html#fragment_id)的 URL 更改?
【问题讨论】:
-
在javascript中使用webview和window hashChange事件的JavascriptInterface
标签: android android-webview webviewclient