FontFaceSet: phương thức has()

Baseline Widely available

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

Note: This feature is available in Web Workers.

Phương thức has() của giao diện FontFaceSet trả về Boolean khẳng định xem phần tử có giá trị đã cho có tồn tại không.

Cú pháp

js
has(value)

Tham số

value

Giá trị cần kiểm tra trong đối tượng FontFaceSet.

Giá trị trả về

Boolean, true nếu value tồn tại trong FontFaceSet.

Thông số kỹ thuật

This feature does not appear to be defined in any specification.

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