CreateMonitor: sự kiện downloadprogress

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

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Sự kiện downloadprogress của giao diện CreateMonitor được kích hoạt khi tiến trình tải xuống mô hình AI có thay đổi.

Cú pháp

Dùng tên sự kiện trong các phương thức như addEventListener(), hoặc thiết lập một thuộc tính xử lý sự kiện.

js
addEventListener("downloadprogress", (event) => { })

ondownloadprogress = (event) => { }

Kiểu sự kiện

Một ProgressEvent. Kế thừa từ Event.

Event ProgressEvent

Ví dụ

Xem trang chính CreateMonitor để biết ví dụ.

Thông số kỹ thuật

Specification
Writing Assistance APIs
# dom-createmonitor-ondownloadprogress

Khả năng tương thích với trình duyệt

Xem thêm