InterestEvent

Khả dụng hạn chế

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

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

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Giao diện InterestEvent đại diện cho một sự kiện kích hoạt khi có sự quan tâm hoặc mất quan tâm trên một interest invoker.

Đây là đối tượng sự kiện cho các sự kiện interestloseinterest, lần lượt kích hoạt trên phần tử đích khi có sự quan tâm hoặc mất quan tâm.

Hàm khởi tạo

InterestEvent() Thử nghiệm Không chuẩn

Tạo một đối tượng InterestEvent.

Thuộc tính phiên bản

Giao diện này kế thừa các thuộc tính từ thực thể cha, Event.

InterestEvent.source Read only Thử nghiệm Không chuẩn

Một đối tượng Element đại diện cho phần tử interest invoker mà sự quan tâm hoặc mất quan tâm đã kích hoạt sự kiện.

Ví dụ

Xem hướng dẫn Using interest invokers và trang tham chiếu sự kiện interest để xem ví dụ.

Thông số kỹ thuật

Tính năng này dường như chưa được định nghĩa trong bất kỳ thông số kỹ thuật nào.

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

Xem thêm