NDEFRecord: thuộc tính encoding

Khả dụng hạn chế

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.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Thuộc tính encoding của giao diện NDEFRecord trả về mã hóa của tải trọng văn bản, hoặc null nếu không phải.

Giá trị

Một chuỗi có thể là một trong các giá trị sau: "utf-8", "utf-16", "utf-16le" hoặc "utf-16be".

Thông số kỹ thuật

Thông số kỹ thuật
Web NFC
# dom-ndefrecord-encoding

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