Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 html5 会话存储在会话中存储一些数据。但问题是它只将数据保留到当前选项卡中。当我打开一个新选项卡时,那里的数据不再可用。那我们怎么能说这是一个会话???是否有可能所有选项卡都可以访问数据
会话存储只能在存储数据的窗口内接受。在这里阅读
如果您希望数据通过多个窗口/选项卡持久存在,我建议您使用本地存储。