を不発、のlocalStorage実装が予期せずに(ここでは偉大なスレッド:Bug with Chrome's localStorage implementation?を)イベントを発生IEのlocalStorageイベントは、Internet Explorer 9 & 10内
誰が変更を開始したタブに発射からstorage
イベントを停止する方法を知っていますインターネットエクスプローラ内で?
追加ボタンをクリックしたときにたとえば、次のように警告を表示しないはずですが、それはIEで行います。
フィドル:http://jsfiddle.net/MKFLs/
<!DOCTYPE html>
<html>
<head>
<title>Chrome localStorage Test</title>
<script type="text/javascript" >
var handle_storage = function() {
alert('storage event');
};
window.addEventListener("storage", handle_storage, false);
</script>
</head>
<body>
<button id="add" onclick="localStorage.setItem('a','test')">Add</button>
<button id="clear" onclick="localStorage.clear()">Clear</button>
</body>
</html>
はEDIT: サイドノートで、私は、ここMSにバグがありました。以下のスクリプトを変更するhttps://connect.microsoft.com/IE/feedback/details/798684/ie-localstorage-event-misfired
多分それが閉じ得ることはありません.....
を:) – Jesse