📜  javascript代码示例中的本地存储和会话存储是什么

📅  最后修改于: 2022-03-11 15:01:26.191000             🧑  作者: Mango

代码示例1
//localStorage - stores data with no expiration date. window. sessionStorage - stores data for one session (data is lost when the browser tab is closed)