📜  javascript 输入文件回调 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:13.828000             🧑  作者: Mango

代码示例1
const inputElement = document.getElementById("input");
inputElement.addEventListener("change", handleFiles, false);
function handleFiles() {
  const fileList = this.files; /* now you can work with the file list */
}