在javascript中清除localStorage? [英] Clearing localStorage in javascript?
本文介绍了在javascript中清除localStorage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在javascript中重置/清除浏览器的localStorage?
Is there any way to reset/clear browser's localStorage in javascript?
推荐答案
用它来清除localStorage:
Use this to clear localStorage:
localStorage.clear();
这篇关于在javascript中清除localStorage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文