【第二周】基础语法学习

阅读 3

2024-06-28

{
  "webView": {
    "cacheMode": "no-cache"
  }
}

function clearCache() {
  if ('caches' in window) {
    caches.keys().then(function (keyList) {
      return Promise.all(keyList.map(function (key) {
        return caches.delete(key);
      }));
    }).then(function () {
      console.log('Cache cleared');
    });
  }
}

window.onload = clearCache;

精彩评论(0)

0 0 举报