let sw = navigator.serviceWorker; sw.getRegistrations ? sw.getRegistrations().then(function(sws) { sws.forEach(function(s) { s.unregister(); }); }) : sw.getRegistration && sw.getRegistration().then(function(s) { s && s.unregister(); });
GoogleChrome 团队推出的一套 Web App 静态资源和请求结果的本地存储的解决方案,该解决方案包含一些 Js 库和构建工具ios