网页sessionStorage的内容,python如何获取?
黄舟
黄舟 2017-04-17 15:52:46
0
1
370

本纯金渣男看到网络上写道:

添加事件监听器即可接收同源窗口的Storage事件:

     window.addEventListener(“stotage”,displayStorageEvent,true);

代码中事件类型参数是storage,表明我们感兴趣的是Storage事件,这样一来,只要有同源的Storage事件发生(包括SessionStorage和LocalStorage触发的事件),已注册的所有事件监听器作为事件处理程序就会接收到相应的Storage事件。

     StorageEvent接口
     interface StorageEvent:Event{
            readonly attribute DOMString key;
            readonly attribute any oldValue;
            readonly attribute any newValue;
            readonly attribute DOMString url;
            readonly attribute Storage storageArea;
     }

---------------------------------------
网页sessionStorage的内容是否可以像cookies那样可以捕获,如果可以怎么写,最好是python语言,渣男实在太渣

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!