设置完后之后js交互失效问题
SoberAndHumble opened this issue · 0 comments
SoberAndHumble commented
设置缓存后js交互失效了
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@OverRide
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
WebViewCacheInterceptorInst.getInstance().loadUrl(mWebView, request.getUrl().toString());
return super.shouldOverrideUrlLoading(view,request);
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
WebViewCacheInterceptorInst.getInstance().loadUrl(mWebView, url);
return super.shouldOverrideUrlLoading(view,url);
}
我把这两个方法的返回值修改成默认的了 请问缓存还能生效吗?