我在我的 jsp 中使用 jquery jstorage
导入语句
<script type="text/javascript" src='<s:url value="/script/jstorage.min.js"/>'></script>
这是我在 jstorage 中设置的值 var customerId = $.jStorage.get("customerId", true);//行
i can see below errors in my console
SCRIPT5022: jQuery, MooTools or Prototype needs to be loaded before jStorage!
jstorage.min.js?ver=4.5.8, line 2 character 315
SCRIPT5007: Unable to get value of the property 'get': object is null or undefined
在第 1 行的 IE 中 $.jStorage 不知何故为空,但在 firefox/chrome 中却不是(因此适用于 firefox/chrome)。
最佳答案
人们得到了修复。需要导入 jquery.json-2.3.min.js 以使其在 IE 上运行
关于javascript - IE8 上的 Jquery jstorage 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14100445/