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/cdp/api-ref/component.md.
Lynx
  • 简体中文
  • Component

    本页面介绍 Lynx DevTool 支持的 Component CDP domain。

    实验性参考

    此生成的参考文档仍在完善中。

    • CDP events 尚未包含。
    • 部分 Lynx 扩展已列出,但尚未提供详细文档。
    • 方法说明尚未根据实现自动校验,可能不完整或不准确。

    在依赖本参考前,请根据实现及所链接的 upstream CDP reference 验证实际行为。

    概览

    • 作用域:global-and-instance
    • CDP domain:Lynx 专有

    Lynx 扩展

    Component.uselessUpdate

    Echoes a Component.uselessUpdate message with the request params.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_component_agent.cc
    参数
    NameTypeRequiredDescription
    paramsobjectNoOpaque payload copied from the request params field into the outgoing Component.uselessUpdate message.
    返回字段

    无返回字段。

    事件
    • Component.uselessUpdate
    备注
    • The handler does not send a normal CDP response with id and result fields.
    • The outgoing CDP message has method Component.uselessUpdate and params copied from the request.
    • The native implementation does not inspect or validate the params payload.
    示例

    Echo a component update payload

    Request:

    {
      "id": 1,
      "method": "Component.uselessUpdate",
      "params": {
        "componentId": "comp-1",
        "reason": "debug"
      }
    }

    Response:

    {
      "method": "Component.uselessUpdate",
      "params": {
        "componentId": "comp-1",
        "reason": "debug"
      }
    }
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。