ImageDecoder: thuộc tính type

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Note: This feature is available in Dedicated Web Workers.

Thuộc tính chỉ đọc type của giao diện ImageDecoder phản ánh kiểu MIME được cấu hình trong quá trình khởi tạo.

Giá trị

Một chuỗi chứa kiểu MIME đã được cấu hình.

Ví dụ

Ví dụ sau đây in giá trị của type ra console.

js
console.log(imageDecoder.type);

Thông số kỹ thuật

Specification
WebCodecs
# dom-imagedecoder-type

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