ts event 类型
function fileSelected(e: Event) {
const target = e.target as HTMLInputElement
const file: File = (target.files as FileList)[0]
// ...
}
function fileSelected(e: Event) {
const target = e.target as HTMLInputElement
const file: File = (target.files as FileList)[0]
// ...
}