问题
In Internet Explorer 11, I turn on IE7 Mode and test sessionStorage. I do
sessionStorage.put("someObject",someObject);
and then do
if(sessionStorage != null) {
console.log(sessionStorage.get("someObject"));
}
console.log(sessionStorage.get("someObject"));
It actually prints the value of the object out. Why is this?
来源:https://stackoverflow.com/questions/28022370/why-do-html5-features-like-localstorage-and-sessionstorage-work-in-ie7-emulator