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 interest và loseinterest, 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.sourceRead 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ụ.