当我在自动创建的 javascript 垃圾值中创建 localstorage 时

当我创建本地存储时

await localStorage.setItem(item_id,JSON.stringify(products));

我有垃圾值 debugbar-time,debugbar-time-new

我像这种情况一样处理这些垃圾值

if (x != 'debugbar-time-new' && x != 'debugbar-time' && x != '__mycart' && x!= 'favorite_tables')

但有时这些值会发生变化,例如 _mycartfavorite_tables 并且我没有在我的项目中使用这些词。我该如何处理这些垃圾值?

hg999520 回答:当我在自动创建的 javascript 垃圾值中创建 localstorage 时

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1045354.html

大家都在问