For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/elements/built-in/svg-API.md.
Lynx
  • 简体中文
  • 属性

    content

    Android
    iOS
    Desktop
    Harmony
    content?: string;

    SVG XML 内容

    src

    Android
    iOS
    Desktop
    Harmony
    src?: string;

    SVG 资源 URL

    事件

    前端可以绑定相应的事件回调来监听元素的运行时行为,如下所示。

    bindload

    Android
    iOS
    Desktop
    Harmony
    bindload = (e: BaseEvent) => {};

    SVG 已加载

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