数据存储在sessionstorage
时间: 2024-02-27 19:20:38 浏览: 74
storeon-sessionstorage:storeon的模块,用于将数据从状态持久存储到会话存储
sessionStorage是一种在客户端存储数据的方法,它可以在一个session中保存数据。当用户关闭窗口或标签页后,存储在sessionStorage中的数据会被删除。sessionStorage特别适用于单页面应用,可以方便地在不同界面之间传递值。\[1\]\[3\]
#### 引用[.reference_title]
- *1* *3* [sessionStorage存储数据(对象、数组、字符串)](https://blog.csdn.net/chongchong1325/article/details/78121405)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [数据存储(二)WebStorage 之 sessionStorage、globalStorage、localStorage](https://blog.csdn.net/weixin_44137575/article/details/128022030)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文