如何清除Internet Explorer 8中的本地存储值 [英] How to clear local storage values in Internet Explorer 8

查看:118
本文介绍了如何清除Internet Explorer 8中的本地存储值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IE8和jstorage库来存储数据来代替cookie。这一切都很好,直到我想清除存储的值。在Chrome中,可以通过导航到内容设置页面来实现。但是在IE8中它只提供了一个清除cookie的选项,它不会清除我存储在本地存储中的值。

I'm using IE8 and the jstorage library to store data in place of cookies. This is all good until i want to clear the stored values. In chrome this is possible by navigating to the content settings page. However in IE8 it only provides an option to clear cookies which doesn't clear the values I've stored in local storage.

我有什么想法可以清除这些数据?我不想显示清除缓存按钮

Any ideas how i can clear this data? I don't want to display a "clear cache" button

推荐答案

这是IE8中本地存储支持的问题。缓存不会删除本地存储,因此需要从开发人员工具控制台调用以下内容

This was an issue with local storage support in IE8. The cache does not remove local storage so instead need to call the following from the developer tools console

$。jStorage.flush()

$.jStorage.flush()

这篇关于如何清除Internet Explorer 8中的本地存储值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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