$(document).bind('storage', function (e) {
if(!document.hasFocus() && localStorage.getItem("MapLoginStatus") == "false"){
//// action
}
});
This works in IE8 not in chrome.
$(window).bind('storage', function (e) {
if(!document.hasFocus() && localStorage.getItem("MapLoginStatus") == "false"){
//// action
}
});
This works in Chrome not in IE8
如何识别,哪一个有效? 是否有像localStorage.inside(窗口)这样的函数 - 或类似的东西?
感谢。