[英]Alternative to use localtorage in IE8
I am getting following error on my JSP page when I use localstorage 使用localstorage时,我的JSP页面上出现以下错误
localstorage is undefined 本地存储未定义
Following is the sample JSP code 以下是示例JSP代码
if(localstorage['ScriptActivityHelpSectionHidden']!='undefined')
{
helpSectionHidden=localstorage['ScriptActivityHelpSectionHidden'];
if(helpSectionHidden=='true')
{
setEditorWidthForActivity(helpId);
}else
{
$("#helpId").show();
}
}
您拼写错误,情况很重要: localStorage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.