如何清除IE10&中的localStorage;来自开发人员工具的IE11? [英] How to clear localStorage in IE10 & IE11 from developer tool?

查看:713
本文介绍了如何清除IE10&中的localStorage;来自开发人员工具的IE11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开了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 ?

清除高速缓存数据不会清除localStoragesessionStorage数据吗?

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查看/清除localStoragesessionStoragecookies.

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 or Ctrl+O, select localStorage)
  • Select all and delete (through right clicking, or Ctrl-A + Del)

这篇关于如何清除IE10&中的localStorage;来自开发人员工具的IE11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆