LaunchParams: files property
Limited availability
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.
Thuộc tính chỉ đọc files của giao diện LaunchParams trả về một mảng các đối tượng FileSystemHandle đại diện cho các tệp được truyền cùng với điều hướng khởi chạy qua phương thức POST.
Giá trị
Một mảng chỉ đọc các đối tượng FileSystemHandle.
Ví dụ
js
if ("launchQueue" in window) {
window.launchQueue.setConsumer((launchParams) => {
if (launchParams.files) {
const files = launchParams.files;
for (file in files) {
// Do stuff with file handles
}
}
});
}
Thông số kỹ thuật
| Specification |
|---|
| Web App Launch Handler API> # dom-launchparams-files> |