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-reload.md.
Lynx
  • 简体中文
  • lynx: reload() static method

    刷新当前页面,就像点击刷新按钮一样。

    语法

    reload(value: object, callback: () => void): void;

    参数

    value

    重新加载页面使用的新初始数据。

    callback

    重新加载页面以后触发的回调函数。

    返回值

    无(undefined)。

    注意事项

    1. lynx.reload() 方法不会触发前端 DataProcessor 函数;
    2. __globalPropsSystemInfo、JS 全局变量会保持不变;
    3. lynx.reload() 会触发当前所有前端组件的 componentWillUnmount/onDetach 回调;并重新创建新的前端自定义组件。

    兼容性

    LCD tables only load in the browser

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