HTML5 / JS storage event handler

前端 未结 4 815
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 17:26

I\'m using Safari webkit\'s engine together with HTML5 and JS to create an offline application now I\'m using the sessionStorage array to store status of my app

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 18:20

    the 'storage' event occurred by the other tab in the browser. When you change the storage in one page and addEventLister also in this page , the window can not catch the message.

    for example

    You have two page, pageOne change the storage , pageTwo will catch the 'storage' message and handle this, but pageOne couldn't catch the message.

提交回复
热议问题