// String cacheDirPath = context.getFilesDir().getAbsolutePath()+"cache/";
// getSettings().setAppCachePath(cacheDirPath);// 1. 设置缓存路径
// getSettings().setAppCacheMaxSize(500*1024*1024);// 2. 设置缓存大小
// getSettings().setAppCacheEnabled(true);// 3. 开启Application Cache存储机制
Android使用webview缓存
发布时间 2023-09-25 17:55:36作者: 邢帅杰