再退出之前做清除操作 不然会因为上一个js的缓存 导致加载不出来
mWebView.clearHistory();
mWebView.clearFormData();
mWebView.clearCache(true);
//webView.destroy();
CookieSyncManager cookieSyncManager = CookieSyncManager.createInstance(mWebView.getContext());
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
cookieManager.removeSessionCookie();
cookieManager.removeAllCookie();
网友评论