let dom = document.createElement('input')
dom.type = 'file'
dom.files 是什么类型 ?
dom.files[0] 是什么类型 ?
对于类型定义 只知道一些 string , Record<string, any>, Array<any>
其他好多类型是要从哪里看 有推荐网址吗?
dom.files 应该是数组 dom.files[0] 的话 得具体看你的 需求 可以是 对象 可以是 字符串
都是封装的 类型这些都是基于基本类型封装的interface