CustomStateSet: entries() method

Baseline 2024
Newly available

Since May 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Phương thức entries của giao diện CustomStateSet trả về một đối tượng iterator mới, chứa mảng [value,value] cho mỗi phần tử trong CustomStateSet.

Cú pháp

js
entries()

Tham số

Không có.

Giá trị trả về

Một đối tượng iterator mới chứa mảng [value, value] cho mỗi phần tử trong CustomStateSet, theo thứ tự chèn vào.

Thông số kỹ thuật

Specification
HTML
# custom-state-pseudo-class

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