📜  ios webview 缓存 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:27.101000             🧑  作者: Mango

代码示例1
// All kinds of data
var websiteDataTypes = WKWebsiteDataStore.allWebsiteDataTypes();
// Date from
dateFrom = NSDate.dateWithTimeIntervalSince1970(0);
// Execute
WKWebsiteDataStore.defaultDataStore().removeDataOfTypesModifiedSinceCompletionHandler( websiteDataTypes, dateFrom, ()=> {
    console.log("DONE!!!!!!!!!!!!!!!!!!!!!!")
});