For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-api/lynx/lynx-unsubscribe-session-storage.md.
Lynx
  • 简体中文
  • lynx: unsubscribeSessionStorage() static method

    lynx.unsubscribeSessionStorage 方法用于取消通过 lynx.subscribeSessionStorage 在当前 WhiteBoard 中注册的数据变化监听。取消监听不会删除缓存数据。

    共享范围、原生配置和生命周期管理详见 跨 LynxView 共享数据。

    语法

    lynx.unsubscribeSessionStorage(key, id);

    参数

    key

    缓存数据 key,通过该 key 来获取缓存数据以及监听数据变化。

    id

    监听数据变化的 id,通过 lynx.subscribeSessionStorage 方法返回的 id 来取消监听。

    返回值

    无(undefined)。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。