CustomStateSet: delete() 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 delete() của giao diện CustomStateSet xóa một giá trị đơn khỏi CustomStateSet.

Cú pháp

js
delete(value)

Tham số

value

Giá trị cần xóa khỏi CustomStateSet.

Giá trị trả về

Trả về true nếu value có trong CustomStateSet; ngược lại trả về false.

Thông số kỹ thuật

Specification
HTML
# custom-state-pseudo-class

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