如何在Chrome中撤消持久存储?

时间:2018-05-18 22:35:58

标签: javascript google-chrome local-storage navigator

要使用this

来实现chrome持久化存储
if (navigator.storage && navigator.storage.persist) navigator.storage.persist()
.then(granted => {
    if (granted) console.log("Storage will not be cleared except by explicit user action");
    else console.log("Storage may be cleared by the UA under storage pressure.");
});

但是如何以编程方式删除PERSISTANCE?

0 个答案:

没有答案