📅  最后修改于: 2022-03-11 15:03:13.828000             🧑  作者: Mango
const inputElement = document.getElementById("input");
inputElement.addEventListener("change", handleFiles, false);
function handleFiles() {
const fileList = this.files; /* now you can work with the file list */
}