如何清除IE10&中的localStorage;来自开发人员工具的IE11? [英] How to clear localStorage in IE10 & IE11 from developer tool?
问题描述
我打开了IE11
开发人员工具,它具有很多选项,但是我找不到如何清除localStorage
数据的方法. ?
I opened IE11
developer tool it has lot of options , but i cant find how can I the clear localStorage
data. ?
在IE11中有类似的东西吗?
is there something like this in IE11 ?
清除高速缓存数据不会清除localStorage
或sessionStorage
数据吗?
Will clear cache data does not clear localStorage
or sessionStorage
data ?
推荐答案
尝试在JavaScript控制台中键入
Try to type this in the JavaScript console
localStorage.clear();
sessionStorage.clear();
我认为这是最简单的方法.我在开发人员工具中看不到任何会显着影响localStorage和/或sessionStorage的选项(至少没有什么看起来像Chrome开发工具中的Resources视图).
I think this is the most straightforward way to do this. I don't see any option that explicitly affects localStorage and/or sessionStorage in developer tools (at least nothing that looks like the Resources view in Dev Tools in Chrome).
EDIT2 在Microsoft Edge中,有一种方法可以通过GUI查看/清除localStorage
,sessionStorage
和cookies
.
EDIT2 In Microsoft Edge, there is a way to see/clear localStorage
, sessionStorage
and cookies
through the GUI.
- 打开开发工具(F12)
- 转到调试器视图
- 打开
localStorage
选项卡(单击文件夹图标或Ctrl+O
,选择localStorage
) - 全选并删除(通过右键单击或
Ctrl-A
+Del
)
- Open the Dev Tools (F12)
- Go to Debugger View
- Open the
localStorage
tab (click the folder icon orCtrl+O
, selectlocalStorage
) - Select all and delete (through right clicking, or
Ctrl-A
+Del
)
这篇关于如何清除IE10&中的localStorage;来自开发人员工具的IE11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!