HTMLEmbedElement: phương thức getSVGDocument()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Phương thức getSVGDocument() của giao diện HTMLEmbedElement trả về đối tượng Document của SVG được nhúng.

Cú pháp

js
getSVGDocument()

Tham số

Không có.

Giá trị trả về

Một Document.

Ví dụ

js
const svg = document.getElementById("el").getSVGDocument();

Thông số kỹ thuật

Thông số kỹ thuật
HTML
# dom-media-getsvgdocument-dev

Tương thích trình duyệt

Xem thêm