首页 > 网页sessionStorage的内容,python如何获取?

网页sessionStorage的内容,python如何获取?

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

添加事件监听器即可接收同源窗口的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语言,渣男实在太渣


sessionStorage和python有什么关系?不在一个纬度好吧?
sessionStorage的操作主要是在浏览器中,基于javascript操作。
在这里科普一下sessionStorage:

https://developer.mozilla.org/zh-CN/docs/Web/API/Window/sessionStorage

python只是处理传递过来的数据而已。

【热门文章】
【热门文章】