HTML DOM
HTMLEmbedElement 接口的 getSVGDocument() 方法返回嵌入的 SVG 的 Document 对象。
值
Document。
示例
const svg = document.getElementById("el").getSVGDocument();
规范
浏览器兼容性
参见
- HTMLIFrameElement.getSVGDocument
- HTMLObjectElement.getSVGDocument
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
